diff options
Diffstat (limited to 'app-misc/egads')
-rw-r--r-- | app-misc/egads/egads-0.9.5-r2.ebuild (renamed from app-misc/egads/egads-0.9.5-r1.ebuild) | 30 | ||||
-rw-r--r-- | app-misc/egads/files/egads-0.9.5-make-build-work-with-clang16.patch | 16 | ||||
-rw-r--r-- | app-misc/egads/metadata.xml | 2 |
3 files changed, 39 insertions, 9 deletions
diff --git a/app-misc/egads/egads-0.9.5-r1.ebuild b/app-misc/egads/egads-0.9.5-r2.ebuild index 415f97ec2038..521388fd56d9 100644 --- a/app-misc/egads/egads-0.9.5-r1.ebuild +++ b/app-misc/egads/egads-0.9.5-r2.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 -inherit multilib toolchain-funcs +inherit autotools toolchain-funcs flag-o-matic DESCRIPTION="Entropy Gathering And Distribution System" -HOMEPAGE="http://www.securesoftware.com/download_egads.htm" +HOMEPAGE="http://www.securesoftware.com" SRC_URI="http://www.securesoftware.com/${PN}/${P}.tar.gz" LICENSE="BSD" @@ -15,20 +15,31 @@ KEYWORDS="~amd64 ~ppc x86" EGADS_DATADIR=/var/run/egads +PATCHES=( + "${FILESDIR}"/${P}-make-build-work-with-clang16.patch +) + src_prepare() { default + + rm aclocal.m4 || die + + eautoreconf + sed -i \ -e '/^BINDIR/d' \ -e '/^LIBDIR/d' \ -e '/^INCLUDEDIR/d' \ "${S}"/Makefile.in || die "Failed to fix Makefile.in" - tc-export CC AR RANLIB } src_configure() { - econf \ - --with-egads-datadir="${EGADS_DATADIR}" \ - --with-bindir=/usr/sbin + tc-export CC AR RANLIB + + # bug #312983 + append-flags -fno-strict-aliasing + + econf --with-egads-datadir="${EGADS_DATADIR}" } src_compile() { @@ -38,6 +49,7 @@ src_compile() { src_install() { keepdir ${EGADS_DATADIR} fperms +t ${EGADS_DATADIR} + # NOT parallel safe, and no DESTDIR support emake -j1 install \ BINDIR="${D}"/usr/sbin \ @@ -45,4 +57,6 @@ src_install() { INCLUDEDIR="${D}"/usr/include dodoc README* doc/*.txt doc/*.html + + find "${ED}" -name '*.la' -delete || die } 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 new file mode 100644 index 000000000000..4f1b99c8f319 --- /dev/null +++ b/app-misc/egads/files/egads-0.9.5-make-build-work-with-clang16.patch @@ -0,0 +1,16 @@ +Clang16 does not allow K&R C function declarations by default. This changes the declaration to a modern C function declaration. + +Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> + +--- a/sha1.c ++++ b/sha1.c +@@ -131,8 +131,7 @@ void SHAInit(SHA_CTX *shsInfo) + + Note that this corrupts the shsInfo->data area */ + +-static void SHSTransform( digest, data ) +- UINT4 *digest, *data ; ++static void SHSTransform(UINT4 *digest,UINT4 *data) + { + UINT4 A, B, C, D, E; /* Local vars */ + UINT4 eData[ 16 ]; /* Expanded data */ diff --git a/app-misc/egads/metadata.xml b/app-misc/egads/metadata.xml index a4e0d354f696..a551e17802d7 100644 --- a/app-misc/egads/metadata.xml +++ b/app-misc/egads/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> <email>robbat2@gentoo.org</email> |