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: Sun, 02 Dec 2018 16:00:41
Message-Id: 1543766220.0e7e9b5b023472b04e5585f863580b3892b3e9f4.mgorny@gentoo
1 commit: 0e7e9b5b023472b04e5585f863580b3892b3e9f4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 2 15:35:33 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 2 15:57:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e7e9b5b
7
8 sys-apps/sandbox: Bump to 2.14
9
10 Closes: https://bugs.gentoo.org/670966
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 sys-apps/sandbox/Manifest | 1 +
14 sys-apps/sandbox/sandbox-2.14.ebuild | 76 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 77 insertions(+)
16
17 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
18 index ef5db1c5aa7..3fc520b574f 100644
19 --- a/sys-apps/sandbox/Manifest
20 +++ b/sys-apps/sandbox/Manifest
21 @@ -1,2 +1,3 @@
22 DIST sandbox-2.12.tar.xz 424252 BLAKE2B 55eb06cbc15ad9ff8b0c272b8d071591ce3533a6ff807719df79131e6c966d60c3b37d9d8e4e1d466df0992836c4594bf6927b496ecb343a71d7b0656219a6d7 SHA512 98bd2ee8807d81e65ee0c9f11cfaf2b37da2ee4d8763c68d18c0ff6b14f3cc847ae2d3a0aa30cbe86063a2108ed4d4dcf7cc3fc4f37cb7549d266d4c1989c2a9
23 DIST sandbox-2.13.tar.xz 424968 BLAKE2B efcbf527853e8cfe8b3fec026041f55f51cba78029f92195ec76a45e84cb2b6cc129267c6e50608584607de72a86b2e7836e77f20677de9b94bb5c40999e4712 SHA512 46ad79335e51a1ec0aaa34ab5eeabe9d007818c518682409c5aaf97d49ec23021ece8fa53264ce5332cdd04ef6b3fd9beff0dc0a3cb5dfe2f9b6a6e359f8c1cf
24 +DIST sandbox-2.14.tar.xz 426992 BLAKE2B a30984f613b773cb5e53b2b0297ada32d11797699418aebf3014e11f3ec2b69a1c4b4e22ce96c28b1df022617cab6787cfe61f84b37ed61e966ac425eae1c7eb SHA512 b84584cffc54678646798bc58d8b60cdc10a0a58c9f1a49276dcac205a06dd7a2e664d2a9c40c78b48eae8ac36e3ac498ba35674f10e6e06c3c2bab777e05ced
25
26 diff --git a/sys-apps/sandbox/sandbox-2.14.ebuild b/sys-apps/sandbox/sandbox-2.14.ebuild
27 new file mode 100644
28 index 00000000000..2f203933530
29 --- /dev/null
30 +++ b/sys-apps/sandbox/sandbox-2.14.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit eutils flag-o-matic multilib-minimal multiprocessing pax-utils
38 +
39 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
40 +HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/"
41 +SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
46 +IUSE=""
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="${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 +multilib_src_configure() {
60 + filter-lfs-flags #90228
61 +
62 + local myconf=()
63 + host-is-pax && myconf+=( --disable-pch ) #301299 #425524 #572092
64 +
65 + ECONF_SOURCE="${S}" \
66 + econf "${myconf[@]}"
67 +}
68 +
69 +multilib_src_test() {
70 + # Default sandbox build will run with --jobs set to # cpus.
71 + emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
72 +}
73 +
74 +multilib_src_install_all() {
75 + doenvd "${FILESDIR}"/09sandbox
76 +
77 + keepdir /var/log/sandbox
78 + fowners root:portage /var/log/sandbox
79 + fperms 0770 /var/log/sandbox
80 +
81 + dodoc AUTHORS ChangeLog* NEWS README
82 +}
83 +
84 +pkg_preinst() {
85 + chown root:portage "${ED}"/var/log/sandbox
86 + chmod 0770 "${ED}"/var/log/sandbox
87 +
88 + local v
89 + for v in ${REPLACING_VERSIONS}; do
90 + if [[ ${v} == 1.* ]] ; then
91 + local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
92 + if [[ -n ${old} ]] ; then
93 + elog "Removing old sandbox libraries for you:"
94 + find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete
95 + fi
96 + fi
97 + done
98 +}
99 +
100 +pkg_postinst() {
101 + local v
102 + for v in ${REPLACING_VERSIONS}; do
103 + if [[ ${v} == 1.* ]] ; then
104 + chmod 0755 "${EROOT}"/etc/sandbox.d #265376
105 + fi
106 + done
107 +}