summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-11-28 15:01:52 +0100
committerDavid Seifert <soap@gentoo.org>2021-11-28 15:01:52 +0100
commit73fd546a43034e66b7eac249a047e504fa903dd6 (patch)
treed332d566992081ccad249c4118d3c5a5f08c4d81 /sys-libs
parentdev-cpp/catch: drop 2.13.4 (diff)
downloadgentoo-73fd546a43034e66b7eac249a047e504fa903dd6.tar.gz
gentoo-73fd546a43034e66b7eac249a047e504fa903dd6.tar.bz2
gentoo-73fd546a43034e66b7eac249a047e504fa903dd6.zip
sys-libs/libcap: drop 2.60, 2.60-r1
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libcap/Manifest1
-rw-r--r--sys-libs/libcap/files/libcap-2.60-libcap-alignment.patch105
-rw-r--r--sys-libs/libcap/libcap-2.60-r1.ebuild90
-rw-r--r--sys-libs/libcap/libcap-2.60.ebuild88
4 files changed, 0 insertions, 284 deletions
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest
index a96b565578d0..b783ac2f611d 100644
--- a/sys-libs/libcap/Manifest
+++ b/sys-libs/libcap/Manifest
@@ -1,3 +1,2 @@
DIST libcap-2.49.tar.xz 139568 BLAKE2B 5746dcdf2a737e747450bd50a701ee8543277b17b7fbf1304b79f707a088ea74dc6dc79c61ff89b55b718a460a7b0814f960f44d07944a97b832b78f4e14e07f SHA512 2934a2ded1370edeb9603dbf43d8ca23a2eb5d67efc5cec5d4ba96c707a8db2702da8aa9be0cb86c5ff100d37ec96115c7777a7566ad0ab2e0b4a288bbe357d0
-DIST libcap-2.60.tar.xz 170744 BLAKE2B 858b5133a5cb2f3b30dab569a6c9f2097034318c90419fa2372e0b28c891160f5e84b54b302b2d98664df8f7c44df78eb3cb4e47b328cecd4c27e7ab223045ae SHA512 f2ff0d81df7251c05decda706ccc6463ce58df6a3c542fe479328dce5416f77aa5c6a09a1ab05a1d1a3638e6dae5c0e546aaa4824843a570700a8927fb7f73e6
DIST libcap-2.61.tar.xz 173892 BLAKE2B 50874d3510ab2476aaceb775314d98744736aacd7364a23827756caa160c101e8bc890b7c33b5e19df8b30bb6b3b1c2be323e4b6a963f97e9ee557e86b4f13a0 SHA512 40096bf511d1c45e36f5d7f24e49c709528f3f01fcadd47b6ac40a7e8d5f1705b29b4cc56356b030639f67d0641b9f4e7c19449c3c7f4f77a4070c35745b465c
diff --git a/sys-libs/libcap/files/libcap-2.60-libcap-alignment.patch b/sys-libs/libcap/files/libcap-2.60-libcap-alignment.patch
deleted file mode 100644
index 6081c7dc76e6..000000000000
--- a/sys-libs/libcap/files/libcap-2.60-libcap-alignment.patch
+++ /dev/null
@@ -1,105 +0,0 @@
-https://bugs.gentoo.org/820071
-https://git.kernel.org/pub/scm/libs/libcap/libcap.git/patch/?id=c234bf90839f19e0332b586335411cb626a25a18
-https://git.kernel.org/pub/scm/libs/libcap/libcap.git/patch/?id=e9414f540a82b5348a12cfaddff229241564e1f3
-
-From: "Andrew G. Morgan" <morgan@kernel.org>
-Date: Sat, 13 Nov 2021 20:38:18 -0800
-Subject: Work around a __i386__ compilation issue for runnable .so files.
-
-This was reported by Sam James and debugged with respect to:
-
- https://bugs.gentoo.org/show_bug.cgi?id=820071
-
-Modern versions of glibc employ SSE instructions that require the
-stack to be aligned to 16 bytes in order to execute movaps and
-friends to stack stored memory. The ABI for x86_64 requires this
-alignment so we'd not seen this issue before being cc:d into the
-bug.
-
-Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
---- a/libcap/execable.h
-+++ b/libcap/execable.h
-@@ -74,20 +74,26 @@ static void __execable_parse_args(int *argc_p, char ***argv_p)
- * Note, to avoid any runtime confusion, SO_MAIN is a void static
- * function.
- */
-+#if defined(__i386__)
-+#define __SO_FORCE_ARG_ALIGNMENT __attribute__((force_align_arg_pointer))
-+#else
-+#define __SO_FORCE_ARG_ALIGNMENT
-+#endif /* def __i386 */
-
--#define SO_MAIN \
--static void __execable_main(int, char**); \
--extern void __so_start(void); \
--void __so_start(void) \
--{ \
-- int argc; \
-- char **argv; \
-- __execable_parse_args(&argc, &argv); \
-+#define SO_MAIN \
-+static void __execable_main(int, char**); \
-+extern void __so_start(void); \
-+__SO_FORCE_ARG_ALIGNMENT \
-+void __so_start(void) \
-+{ \
-+ int argc; \
-+ char **argv; \
-+ __execable_parse_args(&argc, &argv); \
- __execable_main(argc, argv); \
-- if (argc != 0) { \
-- free(argv[0]); \
-- free(argv); \
-- } \
-- exit(0); \
--} \
-+ if (argc != 0) { \
-+ free(argv[0]); \
-+ free(argv); \
-+ } \
-+ exit(0); \
-+} \
- static void __execable_main
-
-From: "Andrew G. Morgan" <morgan@kernel.org>
-Date: Sun, 14 Nov 2021 20:38:30 -0800
-Subject: Work around musl not hard-coding the ABI for Linux x86_64.
-
-There seems to be a subtle difference between glibc and musl over
-whether or not a runnable *.so needs to start out with its stack
-aligned to 16 bytes or not. Since Linux ABIs for x86 (both 32 and
-64 bit varieties) require 16 byte alignment, just force it on both
-these architectures.
-
-This addresses:
-
- https://bugzilla.kernel.org/show_bug.cgi?id=215009
-
-Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
---- a/libcap/execable.h
-+++ b/libcap/execable.h
-@@ -71,15 +71,19 @@ static void __execable_parse_args(int *argc_p, char ***argv_p)
- }
-
- /*
-- * Note, to avoid any runtime confusion, SO_MAIN is a void static
-- * function.
-+ * Linux x86 ABI requires the stack be 16 byte aligned. Keep things
-+ * simple and just force it.
- */
--#if defined(__i386__)
-+#if defined(__i386__) || defined(__x86_64__)
- #define __SO_FORCE_ARG_ALIGNMENT __attribute__((force_align_arg_pointer))
- #else
- #define __SO_FORCE_ARG_ALIGNMENT
--#endif /* def __i386 */
-+#endif /* def some x86 */
-
-+/*
-+ * Note, to avoid any runtime confusion, SO_MAIN is a void static
-+ * function.
-+ */
- #define SO_MAIN \
- static void __execable_main(int, char**); \
- extern void __so_start(void); \
-cgit 1.2.3-1.el7
diff --git a/sys-libs/libcap/libcap-2.60-r1.ebuild b/sys-libs/libcap/libcap-2.60-r1.ebuild
deleted file mode 100644
index 35fb94d44a0f..000000000000
--- a/sys-libs/libcap/libcap-2.60-r1.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-minimal toolchain-funcs pam usr-ldscript
-
-DESCRIPTION="POSIX 1003.1e capabilities"
-HOMEPAGE="https://sites.google.com/site/fullycapable/"
-SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz"
-
-# it's available under either of the licenses
-LICENSE="|| ( GPL-2 BSD )"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="pam static-libs tools"
-
-# While the build system optionally uses gperf, we don't DEPEND on it because
-# the build automatically falls back when it's unavailable. #604802
-PDEPEND="pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )"
-DEPEND="${PDEPEND}
- sys-kernel/linux-headers"
-BDEPEND="sys-apps/diffutils
- tools? ( dev-lang/go )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-2.38-no_perl.patch
- "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch
- "${FILESDIR}"/${PN}-2.60-libcap-alignment.patch
-)
-
-QA_FLAGS_IGNORED="sbin/captree" # go binaries don't use LDFLAGS
-
-src_prepare() {
- default
- multilib_copy_sources
-}
-
-run_emake() {
- local args=(
- AR="$(tc-getAR)"
- CC="$(tc-getCC)"
- OBJCOPY="$(tc-getOBJCOPY)"
- RANLIB="$(tc-getRANLIB)"
- exec_prefix="${EPREFIX}"
- lib_prefix="${EPREFIX}/usr"
- lib="$(get_libdir)"
- prefix="${EPREFIX}/usr"
- PAM_CAP="$(usex pam yes no)"
- DYNAMIC=yes
- GOLANG="$(multilib_native_usex tools yes no)"
- )
- emake "${args[@]}" "$@"
-}
-
-src_configure() {
- tc-export_build_env BUILD_CC
- multilib-minimal_src_configure
-}
-
-multilib_src_compile() {
- run_emake
-}
-
-multilib_src_test() {
- run_emake test
-}
-
-multilib_src_install() {
- # no configure, needs explicit install line #444724#c3
- run_emake DESTDIR="${D}" install
-
- gen_usr_ldscript -a cap
- gen_usr_ldscript -a psx
- if ! use static-libs ; then
- rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die
- fi
-
- # install pam plugins ourselves
- rm -rf "${ED}"/usr/$(get_libdir)/security || die
-
- if use pam ; then
- dopammod pam_cap/pam_cap.so
- dopamsecurity '' pam_cap/capability.conf
- fi
-}
-
-multilib_src_install_all() {
- dodoc CHANGELOG README doc/capability.notes
-}
diff --git a/sys-libs/libcap/libcap-2.60.ebuild b/sys-libs/libcap/libcap-2.60.ebuild
deleted file mode 100644
index ea1e6af49768..000000000000
--- a/sys-libs/libcap/libcap-2.60.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-minimal toolchain-funcs pam usr-ldscript
-
-DESCRIPTION="POSIX 1003.1e capabilities"
-HOMEPAGE="https://sites.google.com/site/fullycapable/"
-SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz"
-
-# it's available under either of the licenses
-LICENSE="|| ( GPL-2 BSD )"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="pam static-libs tools"
-
-# While the build system optionally uses gperf, we don't DEPEND on it because
-# the build automatically falls back when it's unavailable. #604802
-PDEPEND="pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )"
-DEPEND="${PDEPEND}
- sys-kernel/linux-headers"
-BDEPEND="tools? ( dev-lang/go )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-2.38-no_perl.patch
- "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch
-)
-
-QA_FLAGS_IGNORED="sbin/captree" # go binaries don't use LDFLAGS
-
-src_prepare() {
- default
- multilib_copy_sources
-}
-
-run_emake() {
- local args=(
- AR="$(tc-getAR)"
- CC="$(tc-getCC)"
- OBJCOPY="$(tc-getOBJCOPY)"
- RANLIB="$(tc-getRANLIB)"
- exec_prefix="${EPREFIX}"
- lib_prefix="${EPREFIX}/usr"
- lib="$(get_libdir)"
- prefix="${EPREFIX}/usr"
- PAM_CAP="$(usex pam yes no)"
- DYNAMIC=yes
- GOLANG="$(multilib_native_usex tools yes no)"
- )
- emake "${args[@]}" "$@"
-}
-
-src_configure() {
- tc-export_build_env BUILD_CC
- multilib-minimal_src_configure
-}
-
-multilib_src_compile() {
- run_emake
-}
-
-multilib_src_test() {
- run_emake test
-}
-
-multilib_src_install() {
- # no configure, needs explicit install line #444724#c3
- run_emake DESTDIR="${D}" install
-
- gen_usr_ldscript -a cap
- gen_usr_ldscript -a psx
- if ! use static-libs ; then
- rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die
- fi
-
- # install pam plugins ourselves
- rm -rf "${ED}"/usr/$(get_libdir)/security || die
-
- if use pam ; then
- dopammod pam_cap/pam_cap.so
- dopamsecurity '' pam_cap/capability.conf
- fi
-}
-
-multilib_src_install_all() {
- dodoc CHANGELOG README doc/capability.notes
-}