Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sandbox/
Date: Tue, 07 Sep 2021 16:02:09
Message-Id: 1631030523.769df9f938dfb89e838a200873f6f79a69e2301e.mgorny@gentoo
1 commit: 769df9f938dfb89e838a200873f6f79a69e2301e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 15:59:35 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 16:02:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=769df9f9
7
8 sys-apps/sandbox: Bump to 2.25
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-apps/sandbox/Manifest | 1 +
13 sys-apps/sandbox/sandbox-2.25.ebuild | 63 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
17 index f4b15cd33b4..7a7947ac13c 100644
18 --- a/sys-apps/sandbox/Manifest
19 +++ b/sys-apps/sandbox/Manifest
20 @@ -1 +1,2 @@
21 DIST sandbox-2.24.tar.xz 438408 BLAKE2B 5e725d17da0abc06d56216f4df2f4034076f50163db1c3bbddbf4fd07dbd5b7d92ef2f1b2c01eb77ff6cf531c5cc6a05e60b028f585310ac56eef96240882843 SHA512 8df5414e334a15f367acfd218ba1b74ba618b93d7bdeca8a039b69cbd81ab048ec5a6cecb24df09fa9a5f4fe214d647acf5138004defd45e6396eec5ae7c93d0
22 +DIST sandbox-2.25.tar.xz 436004 BLAKE2B c9c7d351cdefbb2b1a585904c38742a5a3bde50d3d690c57cff9cdc71ffb822e78a2b56c47afd03fbc70834de5dda13c5a300d9d6b35e09ec400a050d4f8e82c SHA512 4e998c4d9ba6eb69369cc49849060a2e90535eae91fbb64c4d46371fe0ed5182413b14674f10c773fd997b6895bc870ccb23586351f5bb06b69dc11a0cddbe1d
23
24 diff --git a/sys-apps/sandbox/sandbox-2.25.ebuild b/sys-apps/sandbox/sandbox-2.25.ebuild
25 new file mode 100644
26 index 00000000000..d35f5327d29
27 --- /dev/null
28 +++ b/sys-apps/sandbox/sandbox-2.25.ebuild
29 @@ -0,0 +1,63 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit flag-o-matic multilib-minimal multiprocessing
36 +
37 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
38 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Sandbox"
39 +SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
44 +IUSE=""
45 +
46 +DEPEND="app-arch/xz-utils
47 + >=app-misc/pax-utils-0.1.19" #265376
48 +RDEPEND=""
49 +
50 +has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
51 +
52 +sandbox_death_notice() {
53 + ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
54 + ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
55 +}
56 +
57 +src_prepare() {
58 + default
59 +
60 + # sandbox uses `__asm__ (".symver "...` which does
61 + # not play well with gcc's LTO: https://gcc.gnu.org/PR48200
62 + append-flags -fno-lto
63 + append-ldflags -fno-lto
64 +}
65 +
66 +multilib_src_configure() {
67 + filter-lfs-flags #90228
68 +
69 + ECONF_SOURCE="${S}" econf
70 +}
71 +
72 +multilib_src_test() {
73 + # Default sandbox build will run with --jobs set to # cpus.
74 + # -j1 to prevent test faiures caused by file descriptor
75 + # injection GNU make does.
76 + emake -j1 check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
77 +}
78 +
79 +multilib_src_install_all() {
80 + doenvd "${FILESDIR}"/09sandbox
81 +
82 + keepdir /var/log/sandbox
83 + fowners root:portage /var/log/sandbox
84 + fperms 0770 /var/log/sandbox
85 +
86 + dodoc AUTHORS ChangeLog* NEWS README
87 +}
88 +
89 +pkg_postinst() {
90 + chown root:portage "${EROOT}"/var/log/sandbox
91 + chmod 0770 "${EROOT}"/var/log/sandbox
92 +}