1 |
haubi 11/03/30 11:34:45 |
2 |
|
3 |
Modified: ChangeLog baselayout-prefix-1.12.5-r9.ebuild |
4 |
Added: baselayout-prefix-1.12.5-r10.ebuild |
5 |
Log: |
6 |
baselayout-prefix-1.12.5: Split strsep out of solaris patch and use it in r9 only. |
7 |
In r10, use private gnulib instance, as it might be missing during bootstrap. |
8 |
Also need to include config.h to redefine 'restrict'. |
9 |
|
10 |
(Portage version: 2.2.01.18125-prefix/cvs/AIX 00C0078A4C00) |
11 |
|
12 |
Revision Changes Path |
13 |
1.7 sys-apps/baselayout-prefix/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog?rev=1.7&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog?rev=1.7&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog?r1=1.6&r2=1.7 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog,v |
22 |
retrieving revision 1.6 |
23 |
retrieving revision 1.7 |
24 |
diff -u -r1.6 -r1.7 |
25 |
--- ChangeLog 29 Mar 2011 15:34:22 -0000 1.6 |
26 |
+++ ChangeLog 30 Mar 2011 11:34:45 -0000 1.7 |
27 |
@@ -1,6 +1,16 @@ |
28 |
# ChangeLog for sys-apps/baselayout-prefix |
29 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog,v 1.6 2011/03/29 15:34:22 haubi Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog,v 1.7 2011/03/30 11:34:45 haubi Exp $ |
32 |
+ |
33 |
+*baselayout-prefix-1.12.5-r10 (30 Mar 2011) |
34 |
+ |
35 |
+ 30 Mar 2011; Salomon tbox <tbox@g.o> |
36 |
+ baselayout-prefix-1.12.5-r9.ebuild, +baselayout-prefix-1.12.5-r10.ebuild, |
37 |
+ +files/baselayout-1.12.5-libsvar.patch, |
38 |
+ files/baselayout-1.12.5-solaris.patch, +files/baselayout-1.12.5-strsep.patch: |
39 |
+ Split strsep out of solaris patch and use it in r9 only. |
40 |
+ In r10, use private gnulib instance, as it might be missing during bootstrap. |
41 |
+ Also need to include config.h to redefine 'restrict'. |
42 |
|
43 |
29 Mar 2011; Michael Haubenwallner <haubi@g.o> |
44 |
files/baselayout-1.12.5-aix.patch: |
45 |
|
46 |
|
47 |
|
48 |
1.7 sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild?rev=1.7&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild?rev=1.7&content-type=text/plain |
52 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild?r1=1.6&r2=1.7 |
53 |
|
54 |
Index: baselayout-prefix-1.12.5-r9.ebuild |
55 |
=================================================================== |
56 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild,v |
57 |
retrieving revision 1.6 |
58 |
retrieving revision 1.7 |
59 |
diff -u -r1.6 -r1.7 |
60 |
--- baselayout-prefix-1.12.5-r9.ebuild 28 Mar 2011 15:38:17 -0000 1.6 |
61 |
+++ baselayout-prefix-1.12.5-r9.ebuild 30 Mar 2011 11:34:45 -0000 1.7 |
62 |
@@ -1,6 +1,6 @@ |
63 |
# Copyright 1999-2011 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild,v 1.6 2011/03/28 15:38:17 grobian Exp $ |
66 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r9.ebuild,v 1.7 2011/03/30 11:34:45 haubi Exp $ |
67 |
|
68 |
EAPI=3 |
69 |
|
70 |
@@ -51,6 +51,7 @@ |
71 |
epatch "${FILESDIR}"/${P/-prefix/}-aix.patch |
72 |
epatch "${FILESDIR}"/${P/-prefix/}-darwin-kvm.patch |
73 |
epatch "${FILESDIR}"/${P/-prefix/}-solaris.patch |
74 |
+ epatch "${FILESDIR}"/${P/-prefix/}-strsep.patch # for solaris |
75 |
|
76 |
# The consoletype application in this form will only work on Linux |
77 |
[[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/${P/-prefix/}-prefix-no-consoletype.patch |
78 |
|
79 |
|
80 |
|
81 |
1.1 sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r10.ebuild |
82 |
|
83 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r10.ebuild?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r10.ebuild?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: baselayout-prefix-1.12.5-r10.ebuild |
87 |
=================================================================== |
88 |
# Copyright 1999-2011 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r10.ebuild,v 1.1 2011/03/30 11:34:45 haubi Exp $ |
91 |
|
92 |
EAPI=3 |
93 |
|
94 |
inherit eutils toolchain-funcs multilib prefix flag-o-matic autotools |
95 |
|
96 |
# Needed gnulib modules: |
97 |
# getopt: for AIX |
98 |
# strsep: for Solaris |
99 |
# Avoid depending on dev-libs/gnulib, might be missing during bootstrap. |
100 |
# The gnulib tarball has been created using these commands (basically): |
101 |
# $ gnulib-tool --create-testdir --dir=gnulib getopt strsep |
102 |
# $ eautoreconf |
103 |
# $ econf |
104 |
# $ make maintainer-clean |
105 |
GNULIBV=1 |
106 |
|
107 |
DESCRIPTION="Minimal baselayout for Gentoo Prefix installs" |
108 |
HOMEPAGE="http://www.gentoo.org/" |
109 |
SRC_URI=" |
110 |
http://dev.gentoo.org/~grobian/distfiles/${P/-prefix/}.tar.bz2 |
111 |
http://dev.gentoo.org/~haubi/distfiles/${P/-prefix/}-gnulib-${GNULIBV}.tar.bz2 |
112 |
" |
113 |
|
114 |
LICENSE="GPL-2" |
115 |
SLOT="0" |
116 |
KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
117 |
IUSE="prefix-chaining" |
118 |
DEPEND=">=sys-apps/portage-2.2.01" |
119 |
RDEPEND=">=sys-libs/readline-5.0-r1 |
120 |
>=app-shells/bash-3.1_p7 |
121 |
>=sys-apps/coreutils-5.2.1 |
122 |
kernel_Darwin? ( sys-process/pidof-bsd ) |
123 |
kernel_FreeBSD? ( sys-process/pidof-bsd )" |
124 |
|
125 |
S=${WORKDIR}/${P/-prefix} |
126 |
|
127 |
src_prepare() { |
128 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix.patch |
129 |
|
130 |
if use prefix-chaining; then |
131 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining.patch |
132 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining-pkgconfig.patch |
133 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining-recursion.patch |
134 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining-eprefix.patch |
135 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining-prompt.patch |
136 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining-bash.patch |
137 |
|
138 |
# need to set the PKG_CONFIG_PATH globally for this prefix, when |
139 |
# chaining is enabled, since pkg-config may not be installed locally, |
140 |
# but still .pc files should be found for all RDEPENDable prefixes in |
141 |
# the chain. |
142 |
echo "PKG_CONFIG_PATH=\"${EPREFIX}/usr/lib/pkgconfig:${EPREFIX}/usr/share/pkgconfig\"" >> "${S}"/etc/env.d/00basic |
143 |
fi |
144 |
|
145 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-src.patch |
146 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-sh.patch |
147 |
# Next patch is to be applied on systems that don't have a pidof. |
148 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix-pidof.patch |
149 |
|
150 |
epatch "${FILESDIR}"/${P/-prefix/}-termios_h.patch # required by aix.patch |
151 |
epatch "${FILESDIR}"/${P/-prefix/}-aix.patch |
152 |
epatch "${FILESDIR}"/${P/-prefix/}-darwin-kvm.patch |
153 |
epatch "${FILESDIR}"/${P/-prefix/}-solaris.patch |
154 |
epatch "${FILESDIR}"/${P/-prefix/}-libsvar.patch |
155 |
|
156 |
# The consoletype application in this form will only work on Linux |
157 |
[[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/${P/-prefix/}-prefix-no-consoletype.patch |
158 |
|
159 |
cd "${S}" |
160 |
eprefixify \ |
161 |
etc/env.d/00basic \ |
162 |
etc/profile \ |
163 |
sbin/env-update.sh \ |
164 |
sbin/functions.sh \ |
165 |
sbin/runscript.sh \ |
166 |
src/runscript.c \ |
167 |
sbin/depscan.sh \ |
168 |
sbin/rc-daemon.sh \ |
169 |
sbin/rc-services.sh |
170 |
# add the host OS MANPATH |
171 |
echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file" |
172 |
|
173 |
# need to include gnulib's <config.h> first |
174 |
sed -i -e '1i#include <config.h>' $(find . -name '*.c') || die "Cannot utilize gnulib" |
175 |
|
176 |
# prepare gnulib |
177 |
cd "${WORKDIR}"/gnulib || die |
178 |
eautoreconf |
179 |
} |
180 |
|
181 |
src_configure() { |
182 |
cd "${WORKDIR}"/gnulib || die |
183 |
default |
184 |
} |
185 |
|
186 |
src_compile() { |
187 |
# build gnulib first |
188 |
cd "${WORKDIR}"/gnulib || die |
189 |
emake || die "Cannot build gnulib" |
190 |
cd "${S}" |
191 |
|
192 |
# use gnulib |
193 |
append-flags -I"${WORKDIR}"/gnulib -I"${WORKDIR}"/gnulib/gllib |
194 |
append-ldflags -L"${WORKDIR}"/gnulib/gllib |
195 |
append-libs gnu |
196 |
|
197 |
local libdir="lib" |
198 |
|
199 |
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
200 |
|
201 |
make -C "${S}"/src \ |
202 |
CC="$(tc-getCC)" \ |
203 |
LD="$(tc-getCC) ${LDFLAGS}" \ |
204 |
CFLAGS="${CFLAGS}" \ |
205 |
LIBDIR="${libdir}" || die |
206 |
} |
207 |
|
208 |
src_install() { |
209 |
local dir libdirs libdirs_env rcscripts_dir |
210 |
|
211 |
dodir /etc |
212 |
dodir /etc/env.d |
213 |
dodir /etc/init.d # .keep file might mess up init.d stuff |
214 |
|
215 |
libdirs=$(get_all_libdirs) |
216 |
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... |
217 |
|
218 |
rcscripts_dir="/lib/rcscripts" |
219 |
|
220 |
for dir in ${libdirs}; do |
221 |
libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir} |
222 |
[[ ${dir} == "lib" && ${SYMLINK_LIB} == "yes" ]] && continue |
223 |
dodir /"${dir}" |
224 |
dodir /usr/"${dir}" |
225 |
dodir /usr/local/"${dir}" |
226 |
done |
227 |
|
228 |
# Ugly compatibility with stupid ebuilds and old profiles symlinks |
229 |
if [[ ${SYMLINK_LIB} == "yes" ]] ; then |
230 |
rm -r "${ED}"/{lib,usr/lib,usr/local/lib} &> /dev/null |
231 |
dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib |
232 |
dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib |
233 |
dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib |
234 |
fi |
235 |
|
236 |
# FHS compatibility symlinks stuff |
237 |
dosym /var/tmp /usr/tmp |
238 |
|
239 |
# rc-scripts version for testing of features that *should* be present |
240 |
echo "Gentoo Prefix Base System version ${PV}" > ${ED}/etc/gentoo-release |
241 |
|
242 |
# get the basic stuff in there |
243 |
doenvd "${S}"/etc/env.d/* || die "doenvd" |
244 |
|
245 |
# copy the profile |
246 |
cp "${S}"/etc/profile "${ED}"/etc/profile |
247 |
|
248 |
# Setup files in /sbin |
249 |
# |
250 |
cd "${S}"/sbin |
251 |
into / |
252 |
# These moved from /etc/init.d/ to /sbin to help newb systems |
253 |
# from breaking |
254 |
dosbin runscript.sh functions.sh |
255 |
|
256 |
# Compat symlinks between /etc/init.d and /sbin |
257 |
# (some stuff have hardcoded paths) |
258 |
dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh |
259 |
dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh |
260 |
dosym ../../sbin/functions.sh /etc/init.d/functions.sh |
261 |
|
262 |
cd "${S}"/sbin |
263 |
into / |
264 |
dosbin depscan.sh |
265 |
dosbin env-update.sh |
266 |
insinto ${rcscripts_dir}/awk |
267 |
doins "${S}"/src/awk/functions.awk |
268 |
|
269 |
# |
270 |
# Install baselayout utilities |
271 |
# |
272 |
local libdir="lib" |
273 |
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
274 |
|
275 |
cd "${S}"/src |
276 |
make DESTDIR="${ED}" LIBDIR="${libdir}" install || die |
277 |
|
278 |
insinto ${rcscripts_dir}/sh |
279 |
doins "${S}"/sbin/rc-* |
280 |
} |
281 |
|
282 |
pkg_postinst() { |
283 |
if [[ ${EUID} == 0 ]] ; then |
284 |
# setup portage user, such that things that require root privs |
285 |
# don't fail, bug #321623 |
286 |
enewgroup portage 250 |
287 |
enewuser portage 250 -1 "${EPREFIX}"/var/tmp/portage portage |
288 |
fi |
289 |
|
290 |
# This is also written in src_install (so it's in CONTENTS), but |
291 |
# write it here so that the new version is immediately in the file |
292 |
# (without waiting for the user to do etc-update) |
293 |
rm -f "${EROOT}"/etc/._cfg????_gentoo-release |
294 |
echo "Gentoo Prefix Base System version ${PV}" > "${EROOT}"/etc/gentoo-release |
295 |
|
296 |
echo |
297 |
einfo "Please be sure to update all pending '._cfg*' files in /etc," |
298 |
einfo "else things might break! You can use 'etc-update'" |
299 |
einfo "to accomplish this:" |
300 |
einfo |
301 |
einfo " # etc-update" |
302 |
echo |
303 |
} |