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