summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-07-01 10:17:40 +0100
committerMarek Szuba <marecki@gentoo.org>2021-07-01 10:20:55 +0100
commit971f30e1fe52029690d95e4be85ba714113048ac (patch)
treebd37a3c3e15c3bfab5a6085e13334047e2dc225d
parent*/*: s/pax_kernel/pax-kernel/g (diff)
downloadgentoo-971f30e1.tar.gz
gentoo-971f30e1.tar.bz2
gentoo-971f30e1.zip
dev-libs/libffi: add compatibility guard for USE=pax-kernel
Exactly as previously implemented by slyfox in (ultimately yanked) 3.4_rc1. Signed-off-by: Marek Szuba <marecki@gentoo.org>
-rw-r--r--dev-libs/libffi/libffi-3.3-r2.ebuild5
-rw-r--r--dev-libs/libffi/metadata.xml1
2 files changed, 5 insertions, 1 deletions
diff --git a/dev-libs/libffi/libffi-3.3-r2.ebuild b/dev-libs/libffi/libffi-3.3-r2.ebuild
index 95c001856050..40e5b2deafa4 100644
--- a/dev-libs/libffi/libffi-3.3-r2.ebuild
+++ b/dev-libs/libffi/libffi-3.3-r2.ebuild
@@ -14,9 +14,12 @@ SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.ta
LICENSE="MIT"
SLOT="0/7" # SONAME=libffi.so.7
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="debug pax-kernel static-libs test"
+IUSE="debug pax-kernel pax_kernel static-libs test"
RESTRICT="!test? ( test )"
+# If you are USE=pax_kernel user you really want USE=pax-kernel as well.
+# That's a flag rename: https://archives.gentoo.org/gentoo-dev/message/273f5ec9ebc8075f6ee8d8cdda9e759e
+REQUIRED_USE="pax_kernel? ( pax-kernel )"
RDEPEND=""
DEPEND=""
diff --git a/dev-libs/libffi/metadata.xml b/dev-libs/libffi/metadata.xml
index 1c295db12362..85b52eeb3e01 100644
--- a/dev-libs/libffi/metadata.xml
+++ b/dev-libs/libffi/metadata.xml
@@ -35,6 +35,7 @@
</longdescription>
<use>
<flag name="pax-kernel">Use PaX emulated trampolines, for we can't use PROT_EXEC</flag>
+ <flag name="pax_kernel">DEPRECATED alias for 'pax-kernel'. Do not use.</flag>
</use>
<upstream>
<remote-id type="cpe">cpe:/a:libffi_project:libffi</remote-id>