Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/chkrootkit/files/, app-forensics/chkrootkit/
Date: Mon, 03 Jan 2022 04:01:05
Message-Id: 1641182451.07737b95af2452c0055e1ed0660590c1487befdb.anarchy@gentoo
1 commit: 07737b95af2452c0055e1ed0660590c1487befdb
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 3 04:00:37 2022 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 3 04:00:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07737b95
7
8 app-forensics/chkrootkit: Fix missing includes for musl
9
10 Closes: https://bugs.gentoo.org/show_bug.cgi?id=715552
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
13
14 app-forensics/chkrootkit/chkrootkit-0.55.ebuild | 4 ++-
15 .../chkrootkit/files/chkrootkit-0.55-fcntl_h.patch | 30 ++++++++++++++++++++++
16 .../files/chkrootkit-0.55-limits_h.patch | 10 ++++++++
17 3 files changed, 43 insertions(+), 1 deletion(-)
18
19 diff --git a/app-forensics/chkrootkit/chkrootkit-0.55.ebuild b/app-forensics/chkrootkit/chkrootkit-0.55.ebuild
20 index a81de87dc1c1..2e00fa511121 100644
21 --- a/app-forensics/chkrootkit/chkrootkit-0.55.ebuild
22 +++ b/app-forensics/chkrootkit/chkrootkit-0.55.ebuild
23 @@ -1,4 +1,4 @@
24 -# Copyright 1999-2021 Gentoo Authors
25 +# Copyright 1999-2022 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29 @@ -21,6 +21,8 @@ RDEPEND="cron? ( virtual/cron )"
30
31 PATCHES=(
32 "${WORKDIR}/${GENTOO_PATCH}"
33 + "${FILESDIR}/${P}-fcntl_h.patch"
34 + "${FILESDIR}/${P}-limits_h.patch"
35 )
36
37 src_prepare() {
38
39 diff --git a/app-forensics/chkrootkit/files/chkrootkit-0.55-fcntl_h.patch b/app-forensics/chkrootkit/files/chkrootkit-0.55-fcntl_h.patch
40 new file mode 100644
41 index 000000000000..26ab42c0e437
42 --- /dev/null
43 +++ b/app-forensics/chkrootkit/files/chkrootkit-0.55-fcntl_h.patch
44 @@ -0,0 +1,30 @@
45 +--- a/chklastlog.c
46 ++++ b/chklastlog.c
47 +@@ -41,6 +41,7 @@ int main () { return 0; }
48 + #include <stdlib.h>
49 + #endif
50 + #include <sys/stat.h>
51 ++#include <fcntl.h>
52 + #include <unistd.h>
53 + #include <string.h>
54 + #include <signal.h>
55 +--- a/chkproc.c
56 ++++ b/chkproc.c
57 +@@ -62,6 +62,7 @@ int main (){ return 0; }
58 + #include <string.h>
59 + #include <errno.h>
60 + #include <sys/types.h>
61 ++#include <fcntl.h>
62 + #include <dirent.h>
63 + #include <ctype.h>
64 + #include <stdlib.h>
65 +--- a/chkwtmp.c
66 ++++ b/chkwtmp.c
67 +@@ -25,6 +25,7 @@ int main () { return 0; }
68 + #include <stdio.h>
69 + #include <stdlib.h>
70 + #include <unistd.h>
71 ++#include <fcntl.h>
72 + #include <string.h>
73 + #include <utmp.h>
74 + #include <time.h>
75
76 diff --git a/app-forensics/chkrootkit/files/chkrootkit-0.55-limits_h.patch b/app-forensics/chkrootkit/files/chkrootkit-0.55-limits_h.patch
77 new file mode 100644
78 index 000000000000..8046e9488992
79 --- /dev/null
80 +++ b/app-forensics/chkrootkit/files/chkrootkit-0.55-limits_h.patch
81 @@ -0,0 +1,10 @@
82 +--- a/chkdirs.c
83 ++++ b/chkdirs.c
84 +@@ -33,6 +33,7 @@
85 + #include <sys/syslimits.h>
86 + #endif
87 +
88 ++#include <limits.h>
89 + #include <stdio.h>
90 + #include <stdlib.h>
91 + #include <sys/types.h>