1 |
vapier 12/07/03 19:49:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sandbox-2.6.ebuild |
5 |
Log: |
6 |
Various fixes, and x32 support. |
7 |
|
8 |
(Portage version: 2.2.0_alpha112/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.164 sys-apps/sandbox/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.164&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.164&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/sandbox/ChangeLog?r1=1.163&r2=1.164 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v |
20 |
retrieving revision 1.163 |
21 |
retrieving revision 1.164 |
22 |
diff -u -r1.163 -r1.164 |
23 |
--- ChangeLog 24 Jun 2012 05:35:02 -0000 1.163 |
24 |
+++ ChangeLog 3 Jul 2012 19:49:46 -0000 1.164 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-apps/sandbox |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.163 2012/06/24 05:35:02 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.164 2012/07/03 19:49:46 vapier Exp $ |
30 |
+ |
31 |
+*sandbox-2.6 (03 Jul 2012) |
32 |
+ |
33 |
+ 03 Jul 2012; Mike Frysinger <vapier@g.o> +sandbox-2.6.ebuild: |
34 |
+ Various fixes, and x32 support. |
35 |
|
36 |
24 Jun 2012; Mike Frysinger <vapier@g.o> sandbox-2.5.ebuild: |
37 |
Parallelize configure steps for multiple ABIs, and run tests in parallel. |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-apps/sandbox/sandbox-2.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/sandbox/sandbox-2.6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/sandbox/sandbox-2.6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: sandbox-2.6.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-2.6.ebuild,v 1.1 2012/07/03 19:49:46 vapier Exp $ |
51 |
|
52 |
# |
53 |
# don't monkey with this ebuild unless contacting portage devs. |
54 |
# period. |
55 |
# |
56 |
|
57 |
inherit eutils flag-o-matic toolchain-funcs multilib unpacker multiprocessing |
58 |
|
59 |
DESCRIPTION="sandbox'd LD_PRELOAD hack" |
60 |
HOMEPAGE="http://www.gentoo.org/" |
61 |
SRC_URI="mirror://gentoo/${P}.tar.xz |
62 |
http://dev.gentoo.org/~vapier/dist/${P}.tar.xz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd -x86-fbsd" |
67 |
IUSE="multilib" |
68 |
|
69 |
DEPEND="app-arch/xz-utils |
70 |
>=app-misc/pax-utils-0.1.19" #265376 |
71 |
RDEPEND="" |
72 |
|
73 |
EMULTILIB_PKG="true" |
74 |
has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice" |
75 |
|
76 |
sandbox_death_notice() { |
77 |
ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:" |
78 |
ewarn "FEATURES=-sandbox emerge sandbox" |
79 |
} |
80 |
|
81 |
sb_get_install_abis() { use multilib && get_install_abis || echo ${ABI:-default} ; } |
82 |
|
83 |
sb_foreach_abi() { |
84 |
local OABI=${ABI} |
85 |
for ABI in $(sb_get_install_abis) ; do |
86 |
cd "${WORKDIR}/build-${ABI}" |
87 |
einfo "Running $1 for ABI=${ABI}..." |
88 |
"$@" |
89 |
done |
90 |
ABI=${OABI} |
91 |
} |
92 |
|
93 |
sb_configure() { |
94 |
mkdir "${WORKDIR}/build-${ABI}" |
95 |
cd "${WORKDIR}/build-${ABI}" |
96 |
|
97 |
use multilib && multilib_toolchain_setup ${ABI} |
98 |
|
99 |
einfo "Configuring sandbox for ABI=${ABI}..." |
100 |
ECONF_SOURCE="../${P}/" \ |
101 |
econf ${myconf} || die |
102 |
} |
103 |
|
104 |
sb_compile() { |
105 |
emake || die |
106 |
} |
107 |
|
108 |
src_compile() { |
109 |
filter-lfs-flags #90228 |
110 |
|
111 |
# Run configures in parallel! |
112 |
multijob_init |
113 |
local OABI=${ABI} |
114 |
for ABI in $(sb_get_install_abis) ; do |
115 |
multijob_child_init sb_configure |
116 |
done |
117 |
ABI=${OABI} |
118 |
multijob_finish |
119 |
|
120 |
sb_foreach_abi sb_compile |
121 |
} |
122 |
|
123 |
sb_test() { |
124 |
emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)" || die |
125 |
} |
126 |
|
127 |
src_test() { |
128 |
sb_foreach_abi sb_test |
129 |
} |
130 |
|
131 |
sb_install() { |
132 |
emake DESTDIR="${D}" install || die |
133 |
insinto /etc/sandbox.d #333131 |
134 |
doins etc/sandbox.d/00default || die |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
sb_foreach_abi sb_install |
139 |
|
140 |
doenvd "${FILESDIR}"/09sandbox |
141 |
|
142 |
keepdir /var/log/sandbox |
143 |
fowners root:portage /var/log/sandbox |
144 |
fperms 0770 /var/log/sandbox |
145 |
|
146 |
cd "${S}" |
147 |
dodoc AUTHORS ChangeLog* NEWS README |
148 |
} |
149 |
|
150 |
pkg_preinst() { |
151 |
chown root:portage "${D}"/var/log/sandbox |
152 |
chmod 0770 "${D}"/var/log/sandbox |
153 |
|
154 |
local old=$(find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*') |
155 |
if [[ -n ${old} ]] ; then |
156 |
elog "Removing old sandbox libraries for you:" |
157 |
elog ${old//${ROOT}} |
158 |
find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -exec rm -fv {} \; |
159 |
fi |
160 |
} |
161 |
|
162 |
pkg_postinst() { |
163 |
chmod 0755 "${ROOT}"/etc/sandbox.d #265376 |
164 |
} |