1 |
commit: 08dffd0b77c44391221c170596700d38c9a071c2 |
2 |
Author: layman <layman <AT> localhost> |
3 |
AuthorDate: Tue Feb 26 07:47:56 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 26 12:49:18 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=08dffd0b |
7 |
|
8 |
sys-apps/sandbox:bump to 2.15 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
sys-apps/sandbox/Manifest | 1 + |
13 |
sys-apps/sandbox/sandbox-2.15.ebuild | 82 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 83 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest |
17 |
index ef5db1c..4d9cf85 100644 |
18 |
--- a/sys-apps/sandbox/Manifest |
19 |
+++ b/sys-apps/sandbox/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST sandbox-2.12.tar.xz 424252 BLAKE2B 55eb06cbc15ad9ff8b0c272b8d071591ce3533a6ff807719df79131e6c966d60c3b37d9d8e4e1d466df0992836c4594bf6927b496ecb343a71d7b0656219a6d7 SHA512 98bd2ee8807d81e65ee0c9f11cfaf2b37da2ee4d8763c68d18c0ff6b14f3cc847ae2d3a0aa30cbe86063a2108ed4d4dcf7cc3fc4f37cb7549d266d4c1989c2a9 |
22 |
DIST sandbox-2.13.tar.xz 424968 BLAKE2B efcbf527853e8cfe8b3fec026041f55f51cba78029f92195ec76a45e84cb2b6cc129267c6e50608584607de72a86b2e7836e77f20677de9b94bb5c40999e4712 SHA512 46ad79335e51a1ec0aaa34ab5eeabe9d007818c518682409c5aaf97d49ec23021ece8fa53264ce5332cdd04ef6b3fd9beff0dc0a3cb5dfe2f9b6a6e359f8c1cf |
23 |
+DIST sandbox-2.15.tar.xz 426948 BLAKE2B e40bb728192ef3793a9129bc88a63878516b0977a19effd5b02ded644ec6fe1627fab34786b22024957d96725fc5c53f488f7b09119be7b7ca91692dcee985dc SHA512 7249b594864267311ce8e2c04275df49c6d8e8e811dde5780f7f676cb43928728b9abed77beb8f5ee32061efcdb03753cce44d5bf1827bd519d6be8fa54912e6 |
24 |
|
25 |
diff --git a/sys-apps/sandbox/sandbox-2.15.ebuild b/sys-apps/sandbox/sandbox-2.15.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..68f5c58 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/sandbox/sandbox-2.15.ebuild |
30 |
@@ -0,0 +1,82 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+inherit eutils flag-o-matic multilib-minimal multiprocessing pax-utils |
37 |
+ |
38 |
+DESCRIPTION="sandbox'd LD_PRELOAD hack" |
39 |
+HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/" |
40 |
+SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+DEPEND="app-arch/xz-utils |
48 |
+ >=app-misc/pax-utils-0.1.19" #265376 |
49 |
+RDEPEND="" |
50 |
+ |
51 |
+has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice" |
52 |
+ |
53 |
+sandbox_death_notice() { |
54 |
+ ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:" |
55 |
+ ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox" |
56 |
+} |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ eapply "${FILESDIR}"/${PN}-2.11-musl.patch |
60 |
+ eapply "${FILESDIR}"/${PN}-2.10-fix-visibility-musl.patch |
61 |
+ eapply_user |
62 |
+} |
63 |
+ |
64 |
+multilib_src_configure() { |
65 |
+ filter-lfs-flags #90228 |
66 |
+ |
67 |
+ local myconf=() |
68 |
+ host-is-pax && myconf+=( --disable-pch ) #301299 #425524 #572092 |
69 |
+ |
70 |
+ ECONF_SOURCE="${S}" \ |
71 |
+ econf "${myconf[@]}" |
72 |
+} |
73 |
+ |
74 |
+multilib_src_test() { |
75 |
+ # Default sandbox build will run with --jobs set to # cpus. |
76 |
+ emake 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_preinst() { |
90 |
+ chown root:portage "${ED}"/var/log/sandbox |
91 |
+ chmod 0770 "${ED}"/var/log/sandbox |
92 |
+ |
93 |
+ local v |
94 |
+ for v in ${REPLACING_VERSIONS}; do |
95 |
+ if [[ ${v} == 1.* ]] ; then |
96 |
+ local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*') |
97 |
+ if [[ -n ${old} ]] ; then |
98 |
+ elog "Removing old sandbox libraries for you:" |
99 |
+ find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete |
100 |
+ fi |
101 |
+ fi |
102 |
+ done |
103 |
+} |
104 |
+ |
105 |
+pkg_postinst() { |
106 |
+ local v |
107 |
+ for v in ${REPLACING_VERSIONS}; do |
108 |
+ if [[ ${v} == 1.* ]] ; then |
109 |
+ chmod 0755 "${EROOT}"/etc/sandbox.d #265376 |
110 |
+ fi |
111 |
+ done |
112 |
+} |