Skip to content

Commit

Permalink
app-arch/pxz: fix for musl
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/717062
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Jan 25, 2022
1 parent 21b6cc5 commit 7f770c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app-arch/pxz/pxz-5.0_pre20151029.ebuild
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand All @@ -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
}
6 changes: 5 additions & 1 deletion app-arch/pxz/pxz-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit 7f770c6

Please sign in to comment.