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