Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sandbox/
Date: Sun, 10 Mar 2019 10:38:29
Message-Id: 1552214285.3446bb7f246a25f19b00403a9e9ffe3d87db9b16.dilfridge@gentoo
1 commit: 3446bb7f246a25f19b00403a9e9ffe3d87db9b16
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 10 10:36:42 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 10 10:38:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3446bb7f
7
8 sys-apps/sandbox: Version bump
9
10 No keywords yet, please test.
11
12 Bug: https://bugs.gentoo.org/672918
13 Package-Manager: Portage-2.3.62, Repoman-2.3.12
14 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
15
16 sys-apps/sandbox/Manifest | 1 +
17 sys-apps/sandbox/sandbox-2.16.ebuild | 76 ++++++++++++++++++++++++++++++++++++
18 2 files changed, 77 insertions(+)
19
20 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
21 index 123789fcb0f..4a996ef3f06 100644
22 --- a/sys-apps/sandbox/Manifest
23 +++ b/sys-apps/sandbox/Manifest
24 @@ -2,3 +2,4 @@ DIST sandbox-2.12.tar.xz 424252 BLAKE2B 55eb06cbc15ad9ff8b0c272b8d071591ce3533a6
25 DIST sandbox-2.13.tar.xz 424968 BLAKE2B efcbf527853e8cfe8b3fec026041f55f51cba78029f92195ec76a45e84cb2b6cc129267c6e50608584607de72a86b2e7836e77f20677de9b94bb5c40999e4712 SHA512 46ad79335e51a1ec0aaa34ab5eeabe9d007818c518682409c5aaf97d49ec23021ece8fa53264ce5332cdd04ef6b3fd9beff0dc0a3cb5dfe2f9b6a6e359f8c1cf
26 DIST sandbox-2.14.tar.xz 426992 BLAKE2B a30984f613b773cb5e53b2b0297ada32d11797699418aebf3014e11f3ec2b69a1c4b4e22ce96c28b1df022617cab6787cfe61f84b37ed61e966ac425eae1c7eb SHA512 b84584cffc54678646798bc58d8b60cdc10a0a58c9f1a49276dcac205a06dd7a2e664d2a9c40c78b48eae8ac36e3ac498ba35674f10e6e06c3c2bab777e05ced
27 DIST sandbox-2.15.tar.xz 426948 BLAKE2B e40bb728192ef3793a9129bc88a63878516b0977a19effd5b02ded644ec6fe1627fab34786b22024957d96725fc5c53f488f7b09119be7b7ca91692dcee985dc SHA512 7249b594864267311ce8e2c04275df49c6d8e8e811dde5780f7f676cb43928728b9abed77beb8f5ee32061efcdb03753cce44d5bf1827bd519d6be8fa54912e6
28 +DIST sandbox-2.16.tar.xz 431292 BLAKE2B b5c0a5550cec99a22144f0e51d6ca05e3ace4be7ce59760771fd13cf8b578a5928a89a1fe8119832e59762f3e6f2b80f2a98f853148a2c20e5357eb9c7f4b67a SHA512 f883da9bf1cf00f452f7e709bac914aca877c7f990baf4eef90c9cc31d47a5ec7571d13d84269c85e3cd0d0546f828d81fc93169916ad397f98e0af6147733a8
29
30 diff --git a/sys-apps/sandbox/sandbox-2.16.ebuild b/sys-apps/sandbox/sandbox-2.16.ebuild
31 new file mode 100644
32 index 00000000000..c9a20113634
33 --- /dev/null
34 +++ b/sys-apps/sandbox/sandbox-2.16.ebuild
35 @@ -0,0 +1,76 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI="6"
40 +
41 +inherit eutils flag-o-matic multilib-minimal multiprocessing pax-utils
42 +
43 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
44 +HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/"
45 +SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.xz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
50 +IUSE=""
51 +
52 +DEPEND="app-arch/xz-utils
53 + >=app-misc/pax-utils-0.1.19" #265376
54 +RDEPEND=""
55 +
56 +has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
57 +
58 +sandbox_death_notice() {
59 + ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
60 + ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
61 +}
62 +
63 +multilib_src_configure() {
64 + filter-lfs-flags #90228
65 +
66 + local myconf=()
67 + host-is-pax && myconf+=( --disable-pch ) #301299 #425524 #572092
68 +
69 + ECONF_SOURCE="${S}" \
70 + econf "${myconf[@]}"
71 +}
72 +
73 +multilib_src_test() {
74 + # Default sandbox build will run with --jobs set to # cpus.
75 + emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
76 +}
77 +
78 +multilib_src_install_all() {
79 + doenvd "${FILESDIR}"/09sandbox
80 +
81 + keepdir /var/log/sandbox
82 + fowners root:portage /var/log/sandbox
83 + fperms 0770 /var/log/sandbox
84 +
85 + dodoc AUTHORS ChangeLog* NEWS README
86 +}
87 +
88 +pkg_preinst() {
89 + chown root:portage "${ED}"/var/log/sandbox
90 + chmod 0770 "${ED}"/var/log/sandbox
91 +
92 + local v
93 + for v in ${REPLACING_VERSIONS}; do
94 + if [[ ${v} == 1.* ]] ; then
95 + local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
96 + if [[ -n ${old} ]] ; then
97 + elog "Removing old sandbox libraries for you:"
98 + find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete
99 + fi
100 + fi
101 + done
102 +}
103 +
104 +pkg_postinst() {
105 + local v
106 + for v in ${REPLACING_VERSIONS}; do
107 + if [[ ${v} == 1.* ]] ; then
108 + chmod 0755 "${EROOT}"/etc/sandbox.d #265376
109 + fi
110 + done
111 +}