commit: 7ae8e60c449ec6641fc2123c3f3fc56f41bf3e9c Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> AuthorDate: Sun Dec 19 11:57:01 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Dec 19 11:58:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ae8e60c
app-arch/lrzip: fix build on arm64 Closes: https://bugs.gentoo.org/829003 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/lrzip/lrzip-0.641-r1.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app-arch/lrzip/lrzip-0.641-r1.ebuild b/app-arch/lrzip/lrzip-0.641-r1.ebuild index 6c8ec1c9d02f..2a3a5eea7ce8 100644 --- a/app-arch/lrzip/lrzip-0.641-r1.ebuild +++ b/app-arch/lrzip/lrzip-0.641-r1.ebuild @@ -20,9 +20,10 @@ RDEPEND=" app-arch/lz4 sys-libs/zlib " -DEPEND=" - ${RDEPEND} +DEPEND="${RDEPEND}" +BDEPEND=" dev-perl/Pod-Parser + amd64? ( dev-lang/nasm ) x86? ( dev-lang/nasm ) " @@ -38,7 +39,15 @@ src_prepare() { } src_configure() { - econf $(use_enable static-libs static) + # ASM optimizations are only available on amd64 and x86, bug #829003 + local asm=no + if use amd64 || use x86; then + asm=no + fi + + econf \ + $(use_enable static-libs static) \ + --enable-asm=${asm} } src_install() {
