public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artur Frenszek-Iwicki <fedora@svgames.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/fetchlog] rawhide: Update to v1.6 (rhbz#2307554)
Date: Tue, 03 Nov 2026 00:10:17 GMT [thread overview]
Message-ID: <179366461769.1.3527701013554672244.rpms-fetchlog-d049d770b9d2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fetchlog
Branch : rawhide
Commit : d049d770b9d2a5a7a9c89cb7ea31b84b7265e68d
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date : 2026-10-26T21:21:21+01:00
Stats : +24/-173 in 9 file(s)
URL : https://src.fedoraproject.org/rpms/fetchlog/c/d049d770b9d2a5a7a9c89cb7ea31b84b7265e68d?branch=rawhide
Log:
Update to v1.6 (rhbz#2307554)
---
diff --git a/.gitignore b/.gitignore
index 78f1569..f1a2e15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ fetchlog-1.0.tar.gz
fetchlog-build.patch
fetchlog-1.2.tar.gz
/fetchlog-1.4.tar.gz
+/fetchlog-1.6.tar.gz
diff --git a/fetchlog-1.4-printf.patch b/fetchlog-1.4-printf.patch
deleted file mode 100644
index af8447e..0000000
--- a/fetchlog-1.4-printf.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -Naur fetchlog-1.4-orig/fetchlog.c fetchlog-1.4/fetchlog.c
---- fetchlog-1.4-orig/fetchlog.c 2018-07-11 14:00:03.328216490 -0400
-+++ fetchlog-1.4/fetchlog.c 2018-07-11 14:08:31.814172473 -0400
-@@ -155,7 +155,7 @@
- msg[fetchlen_G-2] = '~';
- len = fetchlen_G + 1;
- }
-- fprintf(stdout, msg);
-+ fputs(msg, stdout);
- free( msg );
- }
-
-@@ -295,7 +295,7 @@
- /* something changed meanwhile ? */
- if( obm.mtime==nbm.mtime && obm.inode==nbm.inode && obm.last==nbm.last ) {
- if( conv_G & CONV_OKMSG )
-- fprintf(stdout, OK_MESSAGE "\n");
-+ fputs(OK_MESSAGE "\n", stdout);
- close( fd );
- return RET_OK;
- }
-@@ -484,7 +484,7 @@
- ((conv_G & CONV_NAGIOS3)!= 0 && fetchlen_G-opos==4 ) ) ) ) {
-
- if( conv_G & CONV_OKMSG ) {
-- fprintf(stdout,OK_MESSAGE);
-+ fputs(OK_MESSAGE, stdout);
- }
- i = RET_OK;
- }else{
diff --git a/fetchlog-1.4-tests.patch b/fetchlog-1.4-tests.patch
deleted file mode 100644
index ad9c3c1..0000000
--- a/fetchlog-1.4-tests.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -Naur fetchlog-1.4-orig/test-all fetchlog-1.4/test-all
---- fetchlog-1.4-orig/test-all 2010-07-02 06:10:08.000000000 -0400
-+++ fetchlog-1.4/test-all 2012-07-03 21:02:55.213650680 -0400
-@@ -220,7 +220,7 @@
-
- expect "param column range 3" \
- 3 \
-- "ERROR: fetchlog: out of range: firstcol, lastco~" \
-+ "ERROR: fetchlog: out of range: firstcol, lastco~ or len" \
- ./fetchlog -f 1:50:49: ${logfile} ${bm}
-
- expect "param column range 3 ok" \
-@@ -1061,7 +1061,7 @@
-
- expect "fetching fetchlen errormsg 1" \
- 3 \
-- "ERROR: fetchlog: out of range: firstcol, lastcol~" \
-+ "ERROR: fetchlog: out of range: firstcol, lastcol~ r len" \
- ./fetchlog -f 1:999:50: ${logfile} ${bm}
-
- expect "fetching fetchlen 1" \
diff --git a/fetchlog-1.4-write.patch b/fetchlog-1.4-write.patch
deleted file mode 100644
index 9224850..0000000
--- a/fetchlog-1.4-write.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- fetchlog.c-old 2012-04-05 14:48:22.999438037 -0400
-+++ fetchlog.c 2012-04-05 14:52:56.469292696 -0400
-@@ -55,7 +55,7 @@
- #define MIN_FETCHLEN 50 /* Min length of fetched data */
- #define MAX_FETCHLEN 20000 /* Max length of fetched data */
-
--#define OK_MESSAGE "OK: no messages"
-+#define OK_MESSAGE "OK: no messages\n"
- #define ERR_MESSAGE "ERROR: fetchlog: "
-
- /* suffix for temp bookmarkfile: mkstemp() template */
-@@ -155,7 +155,7 @@
- msg[fetchlen_G-2] = '~';
- len = fetchlen_G + 1;
- }
-- (void)write( STDOUT_FILENO, msg, len-1 );
-+ fprintf(stdout, msg);
- free( msg );
- }
-
-@@ -295,7 +295,7 @@
- /* something changed meanwhile ? */
- if( obm.mtime==nbm.mtime && obm.inode==nbm.inode && obm.last==nbm.last ) {
- if( conv_G & CONV_OKMSG )
-- (void)write( STDOUT_FILENO, OK_MESSAGE "\n", sizeof( OK_MESSAGE ));
-+ fprintf(stdout, OK_MESSAGE "\n");
- close( fd );
- return RET_OK;
- }
-@@ -484,11 +484,11 @@
- ((conv_G & CONV_NAGIOS3)!= 0 && fetchlen_G-opos==4 ) ) ) ) {
-
- if( conv_G & CONV_OKMSG ) {
-- (void)write( STDOUT_FILENO, OK_MESSAGE "\n", sizeof( OK_MESSAGE ) );
-+ fprintf(stdout,OK_MESSAGE);
- }
- i = RET_OK;
- }else{
-- (void)write( STDOUT_FILENO, obuf+opos,fetchlen_G-opos);
-+ fprintf(stdout, "%s",obuf+opos);
- i = RET_NEWMSG;
- }
-
diff --git a/fetchlog-1.6-test-version.patch b/fetchlog-1.6-test-version.patch
new file mode 100644
index 0000000..07c9b9c
--- /dev/null
+++ b/fetchlog-1.6-test-version.patch
@@ -0,0 +1,13 @@
+--- fetchlog-1.6/test-all.orig 2024-08-23 14:01:44.000000000 +0200
++++ fetchlog-1.6/test-all 2026-10-26 21:21:11.751014780 +0100
+@@ -14,9 +14,9 @@
+ set -e # -e : stop on error
+
+ logfile=/tmp/logfile-path-length-is-40-chars.log # logfile
+ bm=/tmp/fetchlog.bm # bookmarkfile
+-version=1.5 # fetchlog version
++version=1.6 # fetchlog version
+
+ usage_msg="fetchlog - fetch the last new log messages - version ${version} usage 1: fetchlog -f firstcol:lastcol:len:conv logfile bmfile"
+ ###############################################################################
+ # ecpect testname expected-exitcode expected-message command + options
diff --git a/fetchlog-build.patch b/fetchlog-build.patch
deleted file mode 100644
index 6be3570..0000000
--- a/fetchlog-build.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile~ 2004-03-26 21:47:58.000000000 +0200
-+++ Makefile 2006-02-05 23:06:15.000000000 +0200
-@@ -24,7 +24,7 @@
-
- ### gcc
- CC=gcc
--CFLAGS= -O -Werror -Wall -Wcast-qual -Wstrict-prototypes \
-+CFLAGS= $(RPM_OPT_FLAGS) -Wall -Wcast-qual -Wstrict-prototypes \
- -Wmissing-prototypes -Wmissing-declarations -Winline -Wcast-align
- ### cc
- #CC=cc
diff --git a/fetchlog-unusedvar.patch b/fetchlog-unusedvar.patch
deleted file mode 100644
index 82712b3..0000000
--- a/fetchlog-unusedvar.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- fetchlog-1.4/fetchlog.c 2010-07-02 06:10:08.000000000 -0400
-+++ fetchlog-1.4/fetchlog.c.new 2011-12-18 16:00:13.108131721 -0500
-@@ -129,7 +129,6 @@
- void perr( char *msg1, char *msg2, int err ) {
- char *msg = NULL;
- int len = 0;
-- int r;
-
- if( !msg1 ) return;
-
-@@ -156,7 +155,7 @@
- msg[fetchlen_G-2] = '~';
- len = fetchlen_G + 1;
- }
-- r = write( STDOUT_FILENO, msg, len-1 );
-+ (void)write( STDOUT_FILENO, msg, len-1 );
- free( msg );
- }
-
-@@ -270,8 +269,6 @@
- int lastlinepos = 0; /* pos of beginning of lastline in obuf */
- int lastlinelen = 0; /* len of lastline, excl. trailing '\' 'n' */
-
-- int r; /* write's returncode */
--
- int i;
- int fd = -1;
- struct stat sb;
-@@ -298,7 +295,7 @@
- /* something changed meanwhile ? */
- if( obm.mtime==nbm.mtime && obm.inode==nbm.inode && obm.last==nbm.last ) {
- if( conv_G & CONV_OKMSG )
-- r = write( STDOUT_FILENO, OK_MESSAGE "\n", sizeof( OK_MESSAGE ) );
-+ (void)write( STDOUT_FILENO, OK_MESSAGE "\n", sizeof( OK_MESSAGE ));
- close( fd );
- return RET_OK;
- }
-@@ -487,11 +484,11 @@
- ((conv_G & CONV_NAGIOS3)!= 0 && fetchlen_G-opos==4 ) ) ) ) {
-
- if( conv_G & CONV_OKMSG ) {
-- r = write( STDOUT_FILENO, OK_MESSAGE "\n", sizeof( OK_MESSAGE ) );
-+ (void)write( STDOUT_FILENO, OK_MESSAGE "\n", sizeof( OK_MESSAGE ) );
- }
- i = RET_OK;
- }else{
-- r = write( STDOUT_FILENO, obuf+opos,fetchlen_G-opos);
-+ (void)write( STDOUT_FILENO, obuf+opos,fetchlen_G-opos);
- i = RET_NEWMSG;
- }
-
diff --git a/fetchlog.spec b/fetchlog.spec
index 097c74c..dd1005d 100644
--- a/fetchlog.spec
+++ b/fetchlog.spec
@@ -1,20 +1,16 @@
Summary: Utility to display new messages of a logfile since last run
Name: fetchlog
-Version: 1.4
-Release: 32%{?dist}
+Version: 1.6
+Release: 1%{?dist}
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
Url: http://sourceforge.net/projects/fetchlog
-Source: http://dl.sf.net/sourceforge/fetchlog/fetchlog-%{version}.tar.gz
+Source: http://downloads.sourceforge.net/sourceforge/fetchlog/fetchlog-%{version}.tar.gz
Buildrequires: gcc
BuildRequires: make
-Patch0: fetchlog-build.patch
-Patch1: fetchlog-unusedvar.patch
-Patch2: fetchlog-1.4-write.patch
-Patch3: fetchlog-1.4-tests.patch
-Patch4: fetchlog-1.4-printf.patch
+Patch0: fetchlog-1.6-test-version.patch
%description
The fetchlog utility displays the last new messages of a logfile. It is
@@ -23,18 +19,12 @@ formatting. To show only the new messages appeared since the last call
fetchlog uses a bookmark to remember which messages have been fetched.
%prep
-%setup -q
-%patch -P0
-%patch -P1 -p1
-%patch -P2 -p0
-%patch -P3 -p1
-%patch -P4 -p1
+%autosetup -p1
%build
-make %{?_smp_mflags}
+%make_build
%install
-rm -rf %{buildroot}
install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_mandir}/man1
install -m755 %{name} %{buildroot}/%{_bindir}
@@ -50,6 +40,9 @@ make testall
%{_mandir}/*/*
%changelog
+* Mon Oct 26 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 1.6-1
+- Update to v1.6 (rhbz#2307554)
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index 819f058..c45d2bf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-287b0dfee38639f8c01765c558d8c77c fetchlog-1.4.tar.gz
+SHA512 (fetchlog-1.6.tar.gz) = 334d1dfba148faf56805838c8101625460e02ffe98e4dc07676cfff9b2d65914f6148a066c539847eb106dcb2e74f511e15fb4537560e8eb601309cfdd22776d
reply other threads:[~2026-11-03 0:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179366461769.1.3527701013554672244.rpms-fetchlog-d049d770b9d2@fedoraproject.org \
--to=fedora@svgames.pl \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox