mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
sys-apps/sandbox: Sync with Gentoo
It's from Gentoo commit 43be939a4e689ce15721c2135d2b62b83787f397.
This commit is contained in:
parent
ab2b717e3c
commit
51d6c9fdec
@ -3,3 +3,5 @@ DIST sandbox-2.40.tar.xz 465824 BLAKE2B 1e7e8b1c69807d493d5ca242d746b07aa669e18f
|
||||
DIST sandbox-2.41.tar.xz 468180 BLAKE2B cb00ec8605b9b51ce559a9e9baa68d757e17900abbe9fff890ddbabcc001e47d72a0e7a693104a6594d3d86bc9afebc6945ed3ec101fd67bfe8a855de3ef010f SHA512 ac787ecc61a625717a66fef663f34ddc855c144226f80e1593033f06ccd9dbd526ffbd032a7b142404a0a5a5aea4b813c9258e9c2202c2e9b0574aa35aae3ef8
|
||||
DIST sandbox-2.42.tar.xz 468676 BLAKE2B c4a17c9c6c1644bf27565eab8d76b37689f2a1ca2083d30d65deffd76449f69f68dd4d56ebb19236ca3111996c037fa4e1e5d034dc942349b93ba7c4c68f6248 SHA512 05076394cec77a6443ccc9ba31209fac32c57497210b817e71d10ffc75388673de75de8be6a86ee2f798a285e02ed1af8f134a988eceb6824a3e94bd5be4fc62
|
||||
DIST sandbox-2.43.tar.xz 468420 BLAKE2B c407f7c853d53297d4b0b64f1f3e0a6a26402c32990d7a02f6b2d5aec2b73716a0bb9a931371b87917a5390fb3f80b739e9d2884aec07aa6a1679c32926872ab SHA512 aff9bcbc0a26d4d0df2a469e1978051b9cdd2ce67786c90f857576ddfce20eefa78bfdf6c611fa3f60f0cb0247398c4cf6e4413fed0e4f2eb3bfe11e8a5b6e3e
|
||||
DIST sandbox-2.44.tar.xz 447548 BLAKE2B 89241ef5addf84cfe651d5c25986382966216fe380942d17b523b1187cfcc1a294c9de74736828209ad60ed7819229f4662763ccf5464ce6d032668ea405bc89 SHA512 e75276b1228bb2aa96aa8d5ff9583ea6514a00d5ab2a7ef07da18c88114c3438d11fa8edd6c2fa4be4ddaddee6415913673684e95584368df6f2f52e10b3e627
|
||||
DIST sandbox-2.45.tar.xz 447840 BLAKE2B df1cfba485668781b7dbf863ecdc523b3ffbc91c82ce815ab5ade6c1f33aa4e97c0674012f67ad212c94d8e6fe5285ab0aa4f96f6155e7d81ee649973366c1b9 SHA512 aad9e746c8e1d964cbd29fef5139b18853dac36204dcb414b8a4a94d6fdc53609fe7949dcd845894b38965e08be9901ebdfc83dacc4fb37e810efd6a01eeb7b8
|
||||
|
80
sdk_container/src/third_party/portage-stable/sys-apps/sandbox/sandbox-2.44.ebuild
vendored
Normal file
80
sdk_container/src/third_party/portage-stable/sys-apps/sandbox/sandbox-2.44.ebuild
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit flag-o-matic multilib-minimal multiprocessing
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/sandbox.git
|
||||
https://github.com/gentoo/sandbox.git"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="sandbox'd LD_PRELOAD hack"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Sandbox"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+nnp"
|
||||
|
||||
# pax-utils lower bound for bug #265376
|
||||
DEPEND=">=app-misc/pax-utils-0.1.19"
|
||||
# Avoid folks installing with older file, bug #889046. We still need the
|
||||
# >= dep in Portage but this is a safety net if people do partial upgrades.
|
||||
RDEPEND="!<sys-apps/file-5.44-r1"
|
||||
BDEPEND="app-arch/xz-utils"
|
||||
|
||||
has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" sandbox_death_notice"
|
||||
|
||||
sandbox_death_notice() {
|
||||
ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
|
||||
ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
eautoreconf
|
||||
fi
|
||||
|
||||
if ! use nnp ; then
|
||||
sed -i 's:PR_SET_NO_NEW_PRIVS:___disable_nnp_hack:' src/sandbox.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# sandbox uses `__asm__ (".symver "...` which does
|
||||
# not play well with gcc's LTO: https://gcc.gnu.org/PR48200
|
||||
filter-lto
|
||||
|
||||
filter-lfs-flags #90228
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local ECONF_SOURCE="${S}"
|
||||
econf
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# Default sandbox build will run with --jobs set to # cpus.
|
||||
emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
doenvd "${FILESDIR}"/09sandbox
|
||||
|
||||
dodoc AUTHORS ChangeLog* README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
mkdir -p "${EROOT}"/var/log/sandbox
|
||||
chown root:portage "${EROOT}"/var/log/sandbox
|
||||
chmod 0770 "${EROOT}"/var/log/sandbox
|
||||
}
|
80
sdk_container/src/third_party/portage-stable/sys-apps/sandbox/sandbox-2.45.ebuild
vendored
Normal file
80
sdk_container/src/third_party/portage-stable/sys-apps/sandbox/sandbox-2.45.ebuild
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit flag-o-matic multilib-minimal multiprocessing
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/sandbox.git
|
||||
https://github.com/gentoo/sandbox.git"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="sandbox'd LD_PRELOAD hack"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Sandbox"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+nnp"
|
||||
|
||||
# pax-utils lower bound for bug #265376
|
||||
DEPEND=">=app-misc/pax-utils-0.1.19"
|
||||
# Avoid folks installing with older file, bug #889046. We still need the
|
||||
# >= dep in Portage but this is a safety net if people do partial upgrades.
|
||||
RDEPEND="!<sys-apps/file-5.44-r1"
|
||||
BDEPEND="app-arch/xz-utils"
|
||||
|
||||
has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" sandbox_death_notice"
|
||||
|
||||
sandbox_death_notice() {
|
||||
ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
|
||||
ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
eautoreconf
|
||||
fi
|
||||
|
||||
if ! use nnp ; then
|
||||
sed -i 's:PR_SET_NO_NEW_PRIVS:___disable_nnp_hack:' src/sandbox.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# sandbox uses `__asm__ (".symver "...` which does
|
||||
# not play well with gcc's LTO: https://gcc.gnu.org/PR48200
|
||||
filter-lto
|
||||
|
||||
filter-lfs-flags #90228
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local ECONF_SOURCE="${S}"
|
||||
econf
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# Default sandbox build will run with --jobs set to # cpus.
|
||||
emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
doenvd "${FILESDIR}"/09sandbox
|
||||
|
||||
dodoc AUTHORS ChangeLog* README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
mkdir -p "${EROOT}"/var/log/sandbox
|
||||
chown root:portage "${EROOT}"/var/log/sandbox
|
||||
chmod 0770 "${EROOT}"/var/log/sandbox
|
||||
}
|
Loading…
Reference in New Issue
Block a user