commit: 7f770c6e42a8e6c1bed10ee17064d35813302018 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Tue Jan 25 20:09:41 2022 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Tue Jan 25 20:13:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f770c6e
app-arch/pxz: fix for musl Closes: https://bugs.gentoo.org/717062 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> app-arch/pxz/pxz-5.0_pre20151029.ebuild | 8 ++++++-- app-arch/pxz/pxz-9999.ebuild | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app-arch/pxz/pxz-5.0_pre20151029.ebuild b/app-arch/pxz/pxz-5.0_pre20151029.ebuild index 1ae6092ecb65..64175e6452fa 100644 --- a/app-arch/pxz/pxz-5.0_pre20151029.ebuild +++ b/app-arch/pxz/pxz-5.0_pre20151029.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -11,7 +11,7 @@ SRC_URI="https://github.com/jnovy/pxz/archive/fcfea93957d96b7661d1439cf4b767ecfd LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 ~ppc64 x86 ~amd64-linux" +KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux" IUSE="" # needs the library from xz-utils @@ -26,4 +26,8 @@ src_prepare() { export BINDIR="${EPREFIX}"/usr/bin export MANDIR="${EPREFIX}"/usr/share/man default_src_prepare + + if use elibc_musl ; then + sed -i -e '/<error.h>/c\#define error(R,E,S,...) fprintf(stderr, S "\\n", ##__VA_ARGS__); exit(R)' pxz.c + fi } diff --git a/app-arch/pxz/pxz-9999.ebuild b/app-arch/pxz/pxz-9999.ebuild index 24f23c3bd088..895c02be50d0 100644 --- a/app-arch/pxz/pxz-9999.ebuild +++ b/app-arch/pxz/pxz-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -38,4 +38,8 @@ src_prepare() { export BINDIR="${EPREFIX}"/usr/bin export MANDIR="${EPREFIX}"/usr/share/man default_src_prepare + + if use elibc_musl ; then + sed -i -e '/<error.h>/c\#define error(R,E,S,...) fprintf(stderr, S "\\n", ##__VA_ARGS__); exit(R)' pxz.c + fi }
