1 |
commit: fb8013d3521d8c7d31a1d2bc3eaad9ef3faf99f8 |
2 |
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
3 |
AuthorDate: Sun Oct 23 07:16:58 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 17:39:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb8013d3 |
7 |
|
8 |
app-misc/egads: revbump, make build clang16 compatible |
9 |
|
10 |
Bug: https://bugs.gentoo.org/312983 |
11 |
Closes: https://bugs.gentoo.org/870853 |
12 |
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/27910 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
...egads-0.9.5-r1.ebuild => egads-0.9.5-r2.ebuild} | 27 +++++++++++++++------- |
17 |
.../egads-0.9.5-make-build-work-with-clang16.patch | 16 +++++++++++++ |
18 |
2 files changed, 35 insertions(+), 8 deletions(-) |
19 |
|
20 |
diff --git a/app-misc/egads/egads-0.9.5-r1.ebuild b/app-misc/egads/egads-0.9.5-r2.ebuild |
21 |
similarity index 74% |
22 |
rename from app-misc/egads/egads-0.9.5-r1.ebuild |
23 |
rename to app-misc/egads/egads-0.9.5-r2.ebuild |
24 |
index 032827037c57..521388fd56d9 100644 |
25 |
--- a/app-misc/egads/egads-0.9.5-r1.ebuild |
26 |
+++ b/app-misc/egads/egads-0.9.5-r2.ebuild |
27 |
@@ -1,12 +1,12 @@ |
28 |
# Copyright 1999-2022 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
-EAPI=6 |
32 |
+EAPI=8 |
33 |
|
34 |
-inherit toolchain-funcs |
35 |
+inherit autotools toolchain-funcs flag-o-matic |
36 |
|
37 |
DESCRIPTION="Entropy Gathering And Distribution System" |
38 |
-HOMEPAGE="http://www.securesoftware.com/download_egads.htm" |
39 |
+HOMEPAGE="http://www.securesoftware.com" |
40 |
SRC_URI="http://www.securesoftware.com/${PN}/${P}.tar.gz" |
41 |
|
42 |
LICENSE="BSD" |
43 |
@@ -15,21 +15,31 @@ KEYWORDS="~amd64 ~ppc x86" |
44 |
|
45 |
EGADS_DATADIR=/var/run/egads |
46 |
|
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}"/${P}-make-build-work-with-clang16.patch |
49 |
+) |
50 |
+ |
51 |
src_prepare() { |
52 |
default |
53 |
+ |
54 |
+ rm aclocal.m4 || die |
55 |
+ |
56 |
+ eautoreconf |
57 |
+ |
58 |
sed -i \ |
59 |
-e '/^BINDIR/d' \ |
60 |
-e '/^LIBDIR/d' \ |
61 |
-e '/^INCLUDEDIR/d' \ |
62 |
"${S}"/Makefile.in || die "Failed to fix Makefile.in" |
63 |
- tc-export CC AR RANLIB |
64 |
} |
65 |
|
66 |
src_configure() { |
67 |
- econf \ |
68 |
- --with-egads-datadir="${EGADS_DATADIR}" \ |
69 |
- --with-bindir="${EPREFIX}"/usr/sbin \ |
70 |
- --disable-static |
71 |
+ tc-export CC AR RANLIB |
72 |
+ |
73 |
+ # bug #312983 |
74 |
+ append-flags -fno-strict-aliasing |
75 |
+ |
76 |
+ econf --with-egads-datadir="${EGADS_DATADIR}" |
77 |
} |
78 |
|
79 |
src_compile() { |
80 |
@@ -39,6 +49,7 @@ src_compile() { |
81 |
src_install() { |
82 |
keepdir ${EGADS_DATADIR} |
83 |
fperms +t ${EGADS_DATADIR} |
84 |
+ |
85 |
# NOT parallel safe, and no DESTDIR support |
86 |
emake -j1 install \ |
87 |
BINDIR="${D}"/usr/sbin \ |
88 |
|
89 |
diff --git a/app-misc/egads/files/egads-0.9.5-make-build-work-with-clang16.patch b/app-misc/egads/files/egads-0.9.5-make-build-work-with-clang16.patch |
90 |
new file mode 100644 |
91 |
index 000000000000..4f1b99c8f319 |
92 |
--- /dev/null |
93 |
+++ b/app-misc/egads/files/egads-0.9.5-make-build-work-with-clang16.patch |
94 |
@@ -0,0 +1,16 @@ |
95 |
+Clang16 does not allow K&R C function declarations by default. This changes the declaration to a modern C function declaration. |
96 |
+ |
97 |
+Signed-off-by: Pascal Jäger <pascal.jaeger@×××××××××.de> |
98 |
+ |
99 |
+--- a/sha1.c |
100 |
++++ b/sha1.c |
101 |
+@@ -131,8 +131,7 @@ void SHAInit(SHA_CTX *shsInfo) |
102 |
+ |
103 |
+ Note that this corrupts the shsInfo->data area */ |
104 |
+ |
105 |
+-static void SHSTransform( digest, data ) |
106 |
+- UINT4 *digest, *data ; |
107 |
++static void SHSTransform(UINT4 *digest,UINT4 *data) |
108 |
+ { |
109 |
+ UINT4 A, B, C, D, E; /* Local vars */ |
110 |
+ UINT4 eData[ 16 ]; /* Expanded data */ |