diff options
author | Sam James <sam@gentoo.org> | 2023-01-07 23:00:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-07 23:00:37 +0000 |
commit | 8a1a91aa281cd0c6f2d3c2054ed9c866a04d594d (patch) | |
tree | 7b768cf60a9225db7bf3216381102ff8905eee1c /app-arch/pigz/pigz-2.7-r1.ebuild | |
parent | app-admin/logsurfer+: Stabilize 1.8-r5 x86, #890056 (diff) | |
download | gentoo-8a1a91aa281cd0c6f2d3c2054ed9c866a04d594d.tar.gz gentoo-8a1a91aa281cd0c6f2d3c2054ed9c866a04d594d.tar.bz2 gentoo-8a1a91aa281cd0c6f2d3c2054ed9c866a04d594d.zip |
app-arch/pigz: backport memcpy UB fix
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-arch/pigz/pigz-2.7-r1.ebuild')
-rw-r--r-- | app-arch/pigz/pigz-2.7-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-arch/pigz/pigz-2.7-r1.ebuild b/app-arch/pigz/pigz-2.7-r1.ebuild new file mode 100644 index 000000000000..f0a9d1f4540f --- /dev/null +++ b/app-arch/pigz/pigz-2.7-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="A parallel implementation of gzip" +HOMEPAGE="https://www.zlib.net/pigz/" +SRC_URI="https://www.zlib.net/pigz/${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~sparc64-solaris" +IUSE="static test" +RESTRICT="!test? ( test )" + +LIB_DEPEND="sys-libs/zlib[static-libs(+)]" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + test? ( app-arch/ncompress )" + +PATCHES=( + "${FILESDIR}"/${P}-memcpy-ub.patch +) + +src_compile() { + use static && append-ldflags -static + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin ${PN} + dosym ${PN} /usr/bin/un${PN} + dodoc README + doman ${PN}.1 +} |