Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/sandbox/
Date: Mon, 19 Feb 2018 18:28:05
Message-Id: 1519064689.637a0e5b484c778c86ca5c89284e2bef056dfc25.anarchy@gentoo
1 commit: 637a0e5b484c778c86ca5c89284e2bef056dfc25
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 19 18:24:49 2018 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 19 18:24:49 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=637a0e5b
7
8 sys-apps/sandbox - version bump
9
10 sys-apps/sandbox/Manifest | 1 +
11 sys-apps/sandbox/sandbox-2.13.ebuild | 82 ++++++++++++++++++++++++++++++++++++
12 2 files changed, 83 insertions(+)
13
14 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
15 index b4efad9..fce1f0b 100644
16 --- a/sys-apps/sandbox/Manifest
17 +++ b/sys-apps/sandbox/Manifest
18 @@ -1,2 +1,3 @@
19 DIST sandbox-2.10.tar.xz 417068 SHA256 019d6a2646b3a5f9b6fc3fcb6ff99332901017eb845442bec8573b9901506fa6 SHA512 178b3b8fcb54e6ff67df1c8101866739b49e4d31a66717c21ef502dd2ab609fca70f1a0c662b913e207bfc1ba6994cefdcf5c92ff32add9dd98bd9707f301305 WHIRLPOOL 5d6cffa7317cafeba02af75de9ae914d4365a62b54d3dfcc14cb272e621f2f76a60a945591ccb57dd59d6750152087cb2f21e43ded3ec181d6b42df173147192
20 DIST sandbox-2.12.tar.xz 424252 SHA256 265a490a8c528237c55ad26dfd7f62336fa5727c82358fc9cfbaa2e52c47fc50 SHA512 98bd2ee8807d81e65ee0c9f11cfaf2b37da2ee4d8763c68d18c0ff6b14f3cc847ae2d3a0aa30cbe86063a2108ed4d4dcf7cc3fc4f37cb7549d266d4c1989c2a9 WHIRLPOOL 4f3089746a11616c60057165f387122b74e8d2f30a2d77db296405a2b6f401fc625645bca73092436162f5d98a88bfb2a3b42909b0eceb9a59ab810d803441b0
21 +DIST sandbox-2.13.tar.xz 424968 BLAKE2B efcbf527853e8cfe8b3fec026041f55f51cba78029f92195ec76a45e84cb2b6cc129267c6e50608584607de72a86b2e7836e77f20677de9b94bb5c40999e4712 SHA512 46ad79335e51a1ec0aaa34ab5eeabe9d007818c518682409c5aaf97d49ec23021ece8fa53264ce5332cdd04ef6b3fd9beff0dc0a3cb5dfe2f9b6a6e359f8c1cf
22
23 diff --git a/sys-apps/sandbox/sandbox-2.13.ebuild b/sys-apps/sandbox/sandbox-2.13.ebuild
24 new file mode 100644
25 index 0000000..05aad44
26 --- /dev/null
27 +++ b/sys-apps/sandbox/sandbox-2.13.ebuild
28 @@ -0,0 +1,82 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="6"
33 +
34 +inherit eutils flag-o-matic multilib-minimal multiprocessing pax-utils
35 +
36 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
37 +HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/"
38 +SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
43 +IUSE=""
44 +
45 +DEPEND="app-arch/xz-utils
46 + >=app-misc/pax-utils-0.1.19" #265376
47 +RDEPEND=""
48 +
49 +has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
50 +
51 +sandbox_death_notice() {
52 + ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
53 + ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
54 +}
55 +
56 +src_prepare() {
57 + eapply "${FILESDIR}"/${PN}-2.11-musl.patch
58 + eapply "${FILESDIR}"/${PN}-2.10-fix-visibility-musl.patch
59 + eapply_user
60 +}
61 +
62 +multilib_src_configure() {
63 + filter-lfs-flags #90228
64 +
65 + local myconf=()
66 + host-is-pax && myconf+=( --disable-pch ) #301299 #425524 #572092
67 +
68 + ECONF_SOURCE="${S}" \
69 + econf "${myconf[@]}"
70 +}
71 +
72 +multilib_src_test() {
73 + # Default sandbox build will run with --jobs set to # cpus.
74 + emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
75 +}
76 +
77 +multilib_src_install_all() {
78 + doenvd "${FILESDIR}"/09sandbox
79 +
80 + keepdir /var/log/sandbox
81 + fowners root:portage /var/log/sandbox
82 + fperms 0770 /var/log/sandbox
83 +
84 + dodoc AUTHORS ChangeLog* NEWS README
85 +}
86 +
87 +pkg_preinst() {
88 + chown root:portage "${ED}"/var/log/sandbox
89 + chmod 0770 "${ED}"/var/log/sandbox
90 +
91 + local v
92 + for v in ${REPLACING_VERSIONS}; do
93 + if [[ ${v} == 1.* ]] ; then
94 + local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
95 + if [[ -n ${old} ]] ; then
96 + elog "Removing old sandbox libraries for you:"
97 + find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete
98 + fi
99 + fi
100 + done
101 +}
102 +
103 +pkg_postinst() {
104 + local v
105 + for v in ${REPLACING_VERSIONS}; do
106 + if [[ ${v} == 1.* ]] ; then
107 + chmod 0755 "${EROOT}"/etc/sandbox.d #265376
108 + fi
109 + done
110 +}