diff options
| author | Scott Murray <scott.murray@konsulko.com> | 2025-07-04 09:49:51 -0400 |
|---|---|---|
| committer | Scott Murray <scott.murray@konsulko.com> | 2025-07-04 12:41:20 -0400 |
| commit | 8a266d6df5118fc3be230931d2aa4534bfc9f8b2 (patch) | |
| tree | 701fd349101c4d1043c242b5832d0e8599d827e6 | |
| parent | c16cc136d82c80618ed10b4354326b792cf88574 (diff) | |
| download | meta-security-8a266d6df5118fc3be230931d2aa4534bfc9f8b2.tar.gz | |
chkrootkit: fix building with gcc 15
Add a patch to fix building chkrootkit with gcc 15.
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
| -rw-r--r-- | recipes-scanners/rootkits/chkrootkit_0.58b.bb | 5 | ||||
| -rw-r--r-- | recipes-scanners/rootkits/files/0001-Fix-building-with-gcc-15.patch | 39 |
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" | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6db4d77fb8f0cc84d175e7a1211e4c13" | 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6db4d77fb8f0cc84d175e7a1211e4c13" |
| 7 | 7 | ||
| 8 | SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ | 8 | SRC_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 | " | ||
| 11 | SRC_URI[sha256sum] = "75ed2ace81f0fa3e9c3fb64dab0e8857ed59247ea755f5898416feb2c66807b9" | 12 | SRC_URI[sha256sum] = "75ed2ace81f0fa3e9c3fb64dab0e8857ed59247ea755f5898416feb2c66807b9" |
| 12 | 13 | ||
| 13 | inherit autotools-brokensep | 14 | inherit 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 @@ | |||
| 1 | From 9834ad9f0b8a10de22512772222a9c51014c750d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Scott Murray <scott.murray@konsulko.com> | ||
| 3 | Date: Thu, 3 Jul 2025 18:11:24 -0400 | ||
| 4 | Subject: [PATCH] Fix building with gcc 15 | ||
| 5 | |||
| 6 | Fix read_status signature to avoid incompatible function pointer | ||
| 7 | error with gcc 15. | ||
| 8 | |||
| 9 | Upstream-Status: Inactive-Upstream [lastrelease: July 5, 2024] | ||
| 10 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | ||
| 11 | --- | ||
| 12 | chklastlog.c | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/chklastlog.c b/chklastlog.c | ||
| 16 | index 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 | -- | ||
| 38 | 2.50.0 | ||
| 39 | |||
