diff options
author | WANG Xuerui <xen0n@gentoo.org> | 2022-04-25 13:37:48 +0800 |
---|---|---|
committer | WANG Xuerui <xen0n@gentoo.org> | 2022-04-29 06:23:15 +0800 |
commit | 24321e22d76226e74760704d828567eb3042c8b0 (patch) | |
tree | 975d1371905b83024ef8442d6501d23bcae6c6a8 /sys-libs/libseccomp/libseccomp-2.5.4.ebuild | |
parent | dev-libs/userspace-rcu: add support for loong (diff) | |
download | gentoo-24321e22d76226e74760704d828567eb3042c8b0.tar.gz gentoo-24321e22d76226e74760704d828567eb3042c8b0.tar.bz2 gentoo-24321e22d76226e74760704d828567eb3042c8b0.zip |
sys-libs/libseccomp: add support for loong
The LoongArch patch is generated by diffing the original release
tarball with the dist tarball, made with the LoongArch support
PR [1] applied. Tests have passed on amd64 and loong.
[1]: https://github.com/seccomp/libseccomp/pull/356
See: https://github.com/gentoo/gentoo/pull/25189
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Diffstat (limited to 'sys-libs/libseccomp/libseccomp-2.5.4.ebuild')
-rw-r--r-- | sys-libs/libseccomp/libseccomp-2.5.4.ebuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys-libs/libseccomp/libseccomp-2.5.4.ebuild b/sys-libs/libseccomp/libseccomp-2.5.4.ebuild index fed0b3c8f425..4b5c83a4fcad 100644 --- a/sys-libs/libseccomp/libseccomp-2.5.4.ebuild +++ b/sys-libs/libseccomp/libseccomp-2.5.4.ebuild @@ -16,13 +16,14 @@ if [[ ${PV} == *9999 ]] ; then PRERELEASE="2.6.0" inherit autotools git-r3 else - SRC_URI="https://github.com/seccomp/libseccomp/releases/download/v${PV}/${P}.tar.gz" + SRC_URI="https://github.com/seccomp/libseccomp/releases/download/v${PV}/${P}.tar.gz + experimental-loong? ( https://dev.gentoo.org/~xen0n/distfiles/${P}-loongarch64-20220425.patch.xz )" KEYWORDS="-* ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux" fi LICENSE="LGPL-2.1" SLOT="0" -IUSE="python static-libs test" +IUSE="experimental-loong python static-libs test" RESTRICT="!test? ( test )" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" @@ -42,8 +43,19 @@ PATCHES=( ) src_prepare() { + if use experimental-loong; then + PATCHES+=( "${WORKDIR}/${P}-loongarch64-20220425.patch" ) + fi + default + if use experimental-loong; then + # touch generated files to avoid activating maintainer mode + # remove when loong-fix-build.patch is no longer necessary + touch ./aclocal.m4 ./configure ./configure.h.in || die + find . -name Makefile.in -exec touch {} + || die + fi + if [[ ${PV} == *9999 ]] ; then sed -i -e "s/0.0.0/${PRERELEASE}/" configure.ac || die |