1 |
robbat2 08/06/27 16:44:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sandbox-1.2.18.1-r3.ebuild |
5 |
Log: |
6 |
Fix for bug #206678. Variations of it have been running on infra boxes for two months now, we seem to have traced it down to RTLD_NEXT not always having a usable value under hardened on new libc. |
7 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.89 sys-apps/sandbox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.89&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.89&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?r1=1.88&r2=1.89 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v |
19 |
retrieving revision 1.88 |
20 |
retrieving revision 1.89 |
21 |
diff -p -w -b -B -u -u -r1.88 -r1.89 |
22 |
--- ChangeLog 4 Nov 2007 18:18:49 -0000 1.88 |
23 |
+++ ChangeLog 27 Jun 2008 16:44:42 -0000 1.89 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for sys-apps/sandbox |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.88 2007/11/04 18:18:49 flameeyes Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.89 2008/06/27 16:44:42 robbat2 Exp $ |
30 |
+ |
31 |
+*sandbox-1.2.18.1-r3 (27 Jun 2008) |
32 |
+ |
33 |
+ 27 Jun 2008; Robin H. Johnson <robbat2@g.o> |
34 |
+ +files/sandbox-1.2.18.1-rtld-validation.patch, |
35 |
+ +sandbox-1.2.18.1-r3.ebuild: |
36 |
+ Fix for bug #206678. Variations of it have been running on infra boxes for |
37 |
+ two months now, we seem to have traced it down to RTLD_NEXT not always |
38 |
+ having a usable value under hardened on new libc. |
39 |
|
40 |
*sandbox-1.2.20_alpha2-r1 (04 Nov 2007) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: sandbox-1.2.18.1-r3.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2008 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild,v 1.1 2008/06/27 16:44:42 robbat2 Exp $ |
55 |
|
56 |
# |
57 |
# don't monkey with this ebuild unless contacting portage devs. |
58 |
# period. |
59 |
# |
60 |
|
61 |
inherit eutils flag-o-matic eutils toolchain-funcs multilib |
62 |
|
63 |
DESCRIPTION="sandbox'd LD_PRELOAD hack" |
64 |
HOMEPAGE="http://www.gentoo.org/" |
65 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
66 |
http://dev.gentoo.org/~azarah/sandbox/${P}.tar.bz2" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
71 |
IUSE="" |
72 |
|
73 |
DEPEND="" |
74 |
|
75 |
EMULTILIB_PKG="true" |
76 |
|
77 |
setup_multilib() { |
78 |
if use amd64 && has_m32 && [[ ${CONF_MULTILIBDIR} == "lib32" ]]; then |
79 |
export DEFAULT_ABI="amd64" |
80 |
export MULTILIB_ABIS="x86 amd64" |
81 |
export CFLAGS_amd64=${CFLAGS_amd64:-"-m64"} |
82 |
export CFLAGS_x86=${CFLAGS_x86-"-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"} |
83 |
export CHOST_amd64="x86_64-pc-linux-gnu" |
84 |
export CHOST_x86="i686-pc-linux-gnu" |
85 |
export LIBDIR_amd64=${LIBDIR_amd64-${CONF_LIBDIR}} |
86 |
export LIBDIR_x86=${LIBDIR_x86-${CONF_MULTILIBDIR}} |
87 |
fi |
88 |
} |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${A} |
92 |
cd "${S}" |
93 |
epatch "${FILESDIR}"/${P}-open-normal-fail.patch #135745 |
94 |
epatch "${FILESDIR}"/${P}-open-cloexec.patch #196720 |
95 |
epatch "${FILESDIR}"/${P}-rtld-validation.patch #206678 |
96 |
} |
97 |
|
98 |
abi_fail_check() { |
99 |
local ABI=$1 |
100 |
if [[ ${ABI} == "x86" ]] ; then |
101 |
echo |
102 |
eerror "Building failed for ABI=x86!. This usually means a broken" |
103 |
eerror "multilib setup. Please fix that before filling a bugreport" |
104 |
eerror "against sandbox." |
105 |
echo |
106 |
fi |
107 |
} |
108 |
|
109 |
src_compile() { |
110 |
local myconf |
111 |
local iscross=0 |
112 |
|
113 |
setup_multilib |
114 |
|
115 |
filter-lfs-flags #90228 |
116 |
|
117 |
has_multilib_profile && myconf="--enable-multilib" |
118 |
|
119 |
ewarn "If configure fails with a 'cannot run C compiled programs' error, try this:" |
120 |
ewarn "FEATURES=-sandbox emerge sandbox" |
121 |
|
122 |
[[ -n ${CBUILD} && ${CBUILD} != ${CHOST} ]] && iscross=1 |
123 |
|
124 |
OABI=${ABI} |
125 |
OCHOST=${CHOST} |
126 |
for ABI in $(get_install_abis); do |
127 |
mkdir "${WORKDIR}/build-${ABI}-${OCHOST}" |
128 |
cd "${WORKDIR}/build-${ABI}-${OCHOST}" |
129 |
|
130 |
# Needed for older broken portage versions (bug #109036) |
131 |
has_version '<sys-apps/portage-2.0.51.22' && \ |
132 |
unset EXTRA_ECONF |
133 |
|
134 |
export ABI |
135 |
export CHOST=$(get_abi_CHOST) |
136 |
[[ ${iscross} == 0 ]] && export CBUILD=${CHOST} |
137 |
|
138 |
einfo "Configuring sandbox for ABI=${ABI}..." |
139 |
ECONF_SOURCE="../${P}/" \ |
140 |
econf --libdir="/usr/$(get_libdir)" ${myconf} |
141 |
einfo "Building sandbox for ABI=${ABI}..." |
142 |
emake || { |
143 |
abi_fail_check "${ABI}" |
144 |
die "emake failed for ${ABI}" |
145 |
} |
146 |
done |
147 |
ABI=${OABI} |
148 |
CHOST=${OCHOST} |
149 |
} |
150 |
|
151 |
src_install() { |
152 |
setup_multilib |
153 |
|
154 |
OABI=${ABI} |
155 |
for ABI in $(get_install_abis); do |
156 |
cd "${WORKDIR}/build-${ABI}-${CHOST}" |
157 |
einfo "Installing sandbox for ABI=${ABI}..." |
158 |
make DESTDIR="${D}" install || die "make install failed for ${ABI}" |
159 |
done |
160 |
ABI=${OABI} |
161 |
|
162 |
keepdir /var/log/sandbox |
163 |
fowners root:portage /var/log/sandbox |
164 |
fperms 0770 /var/log/sandbox |
165 |
|
166 |
cd "${S}" |
167 |
dodoc AUTHORS ChangeLog NEWS README |
168 |
} |
169 |
|
170 |
pkg_preinst() { |
171 |
chown root:portage "${D}"/var/log/sandbox |
172 |
chmod 0770 "${D}"/var/log/sandbox |
173 |
} |
174 |
|
175 |
|
176 |
|
177 |
-- |
178 |
gentoo-commits@l.g.o mailing list |