Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sandbox/
Date: Tue, 02 Nov 2021 04:28:11
Message-Id: 1635827127.6225f7a9025c1dfc0983b8f9db96504786676c13.vapier@gentoo
1 commit: 6225f7a9025c1dfc0983b8f9db96504786676c13
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 2 04:25:27 2021 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 2 04:25:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6225f7a9
7
8 sys-apps/sandbox: version bump to 2.29
9
10 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
11
12 sys-apps/sandbox/Manifest | 1 +
13 sys-apps/sandbox/sandbox-2.29.ebuild | 62 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
17 index fae8644f455..50fedc869e8 100644
18 --- a/sys-apps/sandbox/Manifest
19 +++ b/sys-apps/sandbox/Manifest
20 @@ -3,3 +3,4 @@ DIST sandbox-2.25.tar.xz 436004 BLAKE2B c9c7d351cdefbb2b1a585904c38742a5a3bde50d
21 DIST sandbox-2.26.tar.xz 444412 BLAKE2B 3bc88d86ba4e2522895c4448dff6da2cffceb912e5ff9610fe4c3aea255ffd9b9ca9bbe8e45d94508f45e9c141aa6945a9a8d82cba0f3ca102ff6a1624c84161 SHA512 f20766daf2ce43753772a184c86a7b6847f96ab7b60b202616e15d791bc1f770162035a9b1ffe38765dff8d2567ad971a9a2bdeba9a8769845a758fcd95206fa
22 DIST sandbox-2.27.tar.xz 448948 BLAKE2B 03a311c8c7c8719bac398e39ce49e7149bdaa1d5b2811f395eb2251a32aabba995f97c3d5d27461aadb64bf43adf2b0cbaa7c2f141dd86f64f8dd326422ac104 SHA512 2a53e6fc87cec975962737b1fadc447d86985d27b18ad2caed711116da2ba435f54db0f7dadb02664b2638b9dc77752831cd4820390f5c3e61a42429e13462a7
23 DIST sandbox-2.28.tar.xz 450840 BLAKE2B 1a144db1dcd140ce393f47b224c4389693bd3db6d056749968a9e78730b1075192148aa63fdfd5ab93893dfb96a87bcc36bee8b4540abefca0590a8def8365f2 SHA512 eaac54fbc35f51da3c94bfa10e0556f0fd39c20660fea2aa7d3cbf76dd3e4c9fb4a16cc198425988b79313f9331af030e1dca431c3f057ee4a04927c96897895
24 +DIST sandbox-2.29.tar.xz 452784 BLAKE2B 388f5d9c49134696bafbc6b882581396a9fa2e7caa6ccfb4376706d653f836ce18e0d77527c4c4f2ff753c0b920ab5ab60e151dd8a4e399e13dbc3fe7c0533d6 SHA512 15c0e6b71e8b8547b8188f857568c99b1925d5a837a289b21c4f842341361bf7119b96083697dc83546caf530daab700fb8c2704974e7cfb804d64bb5257a4b4
25
26 diff --git a/sys-apps/sandbox/sandbox-2.29.ebuild b/sys-apps/sandbox/sandbox-2.29.ebuild
27 new file mode 100644
28 index 00000000000..83e90898881
29 --- /dev/null
30 +++ b/sys-apps/sandbox/sandbox-2.29.ebuild
31 @@ -0,0 +1,62 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +inherit flag-o-matic multilib-minimal multiprocessing
38 +
39 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
40 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Sandbox"
41 +SRC_URI="https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
46 +IUSE="+nnp"
47 +
48 +DEPEND="app-arch/xz-utils
49 + >=app-misc/pax-utils-0.1.19" #265376
50 +RDEPEND=""
51 +
52 +has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" sandbox_death_notice"
53 +
54 +sandbox_death_notice() {
55 + ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
56 + ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
57 +}
58 +
59 +src_prepare() {
60 + default
61 +
62 + if ! use nnp ; then
63 + sed -i 's:PR_SET_NO_NEW_PRIVS:___disable_nnp_hack:' src/sandbox.c || die
64 + fi
65 +
66 + # sandbox uses `__asm__ (".symver "...` which does
67 + # not play well with gcc's LTO: https://gcc.gnu.org/PR48200
68 + append-flags -fno-lto
69 + append-ldflags -fno-lto
70 +}
71 +
72 +multilib_src_configure() {
73 + filter-lfs-flags #90228
74 +
75 + ECONF_SOURCE="${S}" econf
76 +}
77 +
78 +multilib_src_test() {
79 + # Default sandbox build will run with --jobs set to # cpus.
80 + emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
81 +}
82 +
83 +multilib_src_install_all() {
84 + doenvd "${FILESDIR}"/09sandbox
85 +
86 + dodoc AUTHORS ChangeLog* README.md
87 +}
88 +
89 +pkg_postinst() {
90 + mkdir -p "${EROOT}"/var/log/sandbox
91 + chown root:portage "${EROOT}"/var/log/sandbox
92 + chmod 0770 "${EROOT}"/var/log/sandbox
93 +}