summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-scanners/rootkits/chkrootkit_0.58b.bb5
-rw-r--r--recipes-scanners/rootkits/files/0001-Fix-building-with-gcc-15.patch39
2 files changed, 42 insertions, 2 deletions
diff --git a/recipes-scanners/rootkits/chkrootkit_0.58b.bb b/recipes-scanners/rootkits/chkrootkit_0.58b.bb
index 0fcc55d..e5912fe 100644
--- a/recipes-scanners/rootkits/chkrootkit_0.58b.bb
+++ b/recipes-scanners/rootkits/chkrootkit_0.58b.bb
@@ -6,8 +6,9 @@ LICENSE = "BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6db4d77fb8f0cc84d175e7a1211e4c13" 6LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6db4d77fb8f0cc84d175e7a1211e4c13"
7 7
8SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ 8SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \
9 file://musl_fix.patch" 9 file://musl_fix.patch \
10 10 file://0001-Fix-building-with-gcc-15.patch \
11"
11SRC_URI[sha256sum] = "75ed2ace81f0fa3e9c3fb64dab0e8857ed59247ea755f5898416feb2c66807b9" 12SRC_URI[sha256sum] = "75ed2ace81f0fa3e9c3fb64dab0e8857ed59247ea755f5898416feb2c66807b9"
12 13
13inherit autotools-brokensep 14inherit autotools-brokensep
diff --git a/recipes-scanners/rootkits/files/0001-Fix-building-with-gcc-15.patch b/recipes-scanners/rootkits/files/0001-Fix-building-with-gcc-15.patch
new file mode 100644
index 0000000..8c2a111
--- /dev/null
+++ b/recipes-scanners/rootkits/files/0001-Fix-building-with-gcc-15.patch
@@ -0,0 +1,39 @@
1From 9834ad9f0b8a10de22512772222a9c51014c750d Mon Sep 17 00:00:00 2001
2From: Scott Murray <scott.murray@konsulko.com>
3Date: Thu, 3 Jul 2025 18:11:24 -0400
4Subject: [PATCH] Fix building with gcc 15
5
6Fix read_status signature to avoid incompatible function pointer
7error with gcc 15.
8
9Upstream-Status: Inactive-Upstream [lastrelease: July 5, 2024]
10Signed-off-by: Scott Murray <scott.murray@konsulko.com>
11---
12 chklastlog.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/chklastlog.c b/chklastlog.c
16index 2fffd9e..1566c76 100644
17--- a/chklastlog.c
18+++ b/chklastlog.c
19@@ -78,7 +78,7 @@ int main () { return 0; }
20 long total_wtmp_bytes_read=0;
21 size_t wtmp_file_size;
22 uid_t *uid;
23-void read_status();
24+void read_status(int signum);
25
26 struct s_localpwd {
27 int numentries;
28@@ -214,7 +214,7 @@ int nonuser(struct utmp utmp_ent)
29 }
30 #endif
31
32-void read_status() {
33+void read_status(int signum) {
34 double remaining_time;
35 static long last_total_bytes_read=0;
36 int diff;
37--
382.50.0
39