diff options
| author | Sam James <sam@gentoo.org> | 2024-11-27 04:06:14 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-11-27 04:06:14 +0000 |
| commit | f5b51f75ae23b06b09c460871f738a779bbe3177 (patch) | |
| tree | d5536a57f633b78f9139d19d56fca964cdc4d990 /app-crypt/libscrypt/libscrypt-1.22-r3.ebuild | |
| parent | d2fec8be4938e2116e352d44787df51449c62f72 (diff) | |
| download | gentoo-f5b51f75ae23b06b09c460871f738a779bbe3177.tar.gz gentoo-f5b51f75ae23b06b09c460871f738a779bbe3177.tar.bz2 gentoo-f5b51f75ae23b06b09c460871f738a779bbe3177.zip | |
app-crypt/libscrypt: fix aliasing violation
Closes: https://bugs.gentoo.org/931556
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-crypt/libscrypt/libscrypt-1.22-r3.ebuild')
| -rw-r--r-- | app-crypt/libscrypt/libscrypt-1.22-r3.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app-crypt/libscrypt/libscrypt-1.22-r3.ebuild b/app-crypt/libscrypt/libscrypt-1.22-r3.ebuild new file mode 100644 index 000000000000..c874b8581237 --- /dev/null +++ b/app-crypt/libscrypt/libscrypt-1.22-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Shared library to implement the scrypt algorithm" +HOMEPAGE="https://github.com/technion/libscrypt" +SRC_URI="https://github.com/technion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +PATCHES=( + "${FILESDIR}"/${PN}-1.22-no-clobber-fortify-source.patch + "${FILESDIR}"/${PN}-1.22-aliasing.patch +) + +src_prepare() { + sed -i -e "s|ar rcs|$(tc-getAR) rcs|g" Makefile || die + default +} + +src_configure() { + export PREFIX="${EPREFIX}"/usr + export LIBDIR=${PREFIX}/$(get_libdir) + export CFLAGS_EXTRA="${CFLAGS}" + export LDFLAGS_EXTRA="${LDFLAGS}" + unset CFLAGS + unset LDFLAGS +} + +src_compile() { + emake CC="$(tc-getCC)" +} |
