commit: 5a7afe890df46923157d5f158ba8a3d6810ac8cd Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Fri Sep 26 12:19:35 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Sep 30 08:24:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a7afe89
app-forensics/chkrootkit: fix c23 not reported (no ML or repo) Closes: https://bugs.gentoo.org/943851 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43965 Signed-off-by: Sam James <sam <AT> gentoo.org> app-forensics/chkrootkit/chkrootkit-0.58b.ebuild | 1 + .../files/chkrootkit-0.58b-fix_c23.patch | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/app-forensics/chkrootkit/chkrootkit-0.58b.ebuild b/app-forensics/chkrootkit/chkrootkit-0.58b.ebuild index 7f6beb82f7d4..9f1a87c6e81d 100644 --- a/app-forensics/chkrootkit/chkrootkit-0.58b.ebuild +++ b/app-forensics/chkrootkit/chkrootkit-0.58b.ebuild @@ -23,6 +23,7 @@ PATCHES=( "${WORKDIR}/${P}-gentoo.patch" "${FILESDIR}/${PN}-0.55-fcntl_h.patch" "${FILESDIR}/${PN}-0.55-limits_h.patch" + "${FILESDIR}/${PN}-0.58b-fix_c23.patch" ) src_prepare() { diff --git a/app-forensics/chkrootkit/files/chkrootkit-0.58b-fix_c23.patch b/app-forensics/chkrootkit/files/chkrootkit-0.58b-fix_c23.patch new file mode 100644 index 000000000000..9b3cac5bb4ed --- /dev/null +++ b/app-forensics/chkrootkit/files/chkrootkit-0.58b-fix_c23.patch @@ -0,0 +1,35 @@ +fix c23, see https://bugs.gentoo.org/943851 +https://src.fedoraproject.org/rpms/chkrootkit/raw/rawhide/f/chkrootkit-0.57-sighandler-type.patch + remove old style definition +--- a/chklastlog.c ++++ b/chklastlog.c +@@ -77,7 +77,7 @@ + long total_wtmp_bytes_read=0; + size_t wtmp_file_size; + uid_t *uid; +-void read_status(); ++void read_status(int signum); + + struct s_localpwd { + int numentries; +@@ -213,7 +213,7 @@ + } + #endif + +-void read_status() { ++void read_status(int signum) { + double remaining_time; + static long last_total_bytes_read=0; + int diff; +--- a/chkwtmp.c ++++ b/chkwtmp.c +@@ -43,9 +43,7 @@ int main () { return 0; } + #endif + #endif + +-void printit(counter, start, end) +-int counter; +-long start,end; ++void printit(int counter, long start, long end) + { + char buffer[30]; +
