Gentoo Archives: gentoo-commits

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