1 |
solar 09/06/06 03:54:34 |
2 |
|
3 |
Added: make.defaults package.mask package.unmask |
4 |
package.use.force package.use.mask packages parent |
5 |
profile.bashrc use.force use.mask virtuals |
6 |
Log: |
7 |
Initial commit of prefix profiles on behalf of the prefix community |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 profiles/prefix/aix/make.defaults |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/make.defaults?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/make.defaults?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: make.defaults |
16 |
=================================================================== |
17 |
# Copyright 1999-2009 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/make.defaults,v 1.1 2009/06/06 03:54:34 solar Exp $ |
20 |
|
21 |
# System-wide defaults for all AIX profiles |
22 |
# This file should rarely need to be changed |
23 |
|
24 |
# 'Sane' defaults |
25 |
ELIBC="AIX" |
26 |
KERNEL="AIX" |
27 |
|
28 |
# Sandbox is not ported to AIX yet, no scanelf |
29 |
FEATURES="-sandbox nostrip" |
30 |
|
31 |
|
32 |
|
33 |
1.1 profiles/prefix/aix/package.mask |
34 |
|
35 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.mask?rev=1.1&view=markup |
36 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.mask?rev=1.1&content-type=text/plain |
37 |
|
38 |
Index: package.mask |
39 |
=================================================================== |
40 |
# Copyright 1999-2009 Gentoo Foundation |
41 |
# Distributed under the terms of the GNU General Public License v2 |
42 |
# $Header: |
43 |
|
44 |
# Jeremy Olexa <darkside@g.o> (08 Jan 2008) |
45 |
# Something is fishy with the port-aix.{c,h} code provided by upstream. Old |
46 |
# versions work. |
47 |
>=net-misc/openssh-5.0_p1-r2 |
48 |
|
49 |
# Jeremy Olexa <darkside@g.o> (07 Jan 2008) |
50 |
# critical aix patch does not apply anymore. broken. |
51 |
>=dev-libs/openssl-0.9.8i |
52 |
|
53 |
# Fabian Groffen <grobian@g.o> (27 Jul 2008) |
54 |
# Masked because it needs getopt_long which is still in the pipe |
55 |
~sys-apps/file-4.25 |
56 |
|
57 |
|
58 |
|
59 |
1.1 profiles/prefix/aix/package.unmask |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.unmask?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.unmask?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: package.unmask |
65 |
=================================================================== |
66 |
# Copyright 1999-2009 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/package.unmask,v 1.1 2009/06/06 03:54:34 solar Exp $ |
69 |
|
70 |
# Fabian Groffen <grobian@g.o> (04 Apr 2007) |
71 |
# This is the only linker for AIX |
72 |
sys-devel/native-cctools |
73 |
|
74 |
|
75 |
|
76 |
1.1 profiles/prefix/aix/package.use.force |
77 |
|
78 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.use.force?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.use.force?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: package.use.force |
82 |
=================================================================== |
83 |
# Copyright 1999-2009 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/package.use.force,v 1.1 2009/06/06 03:54:34 solar Exp $ |
86 |
|
87 |
# Michael Haubenwallner <haubi@g.o> (2009-03-18) |
88 |
# Plugins need to be built and installed using libtool (#261186) |
89 |
net-nds/openldap minimal |
90 |
|
91 |
# Michael Haubenwallner <haubi@g.o> (2008-05-09) |
92 |
# Gentoo's PIE patch for gcc-3 does not work on AIX. |
93 |
# One might want to use gcc-3.4 on AIX, because IBM Rational Purify |
94 |
# might not support gcc-4. The first gcc-support (gcc-3.4) has come |
95 |
# with PurifyPlus Interim Fix v7.0.0.0-010 (released in February 2008). |
96 |
=sys-devel/gcc-3* nopie |
97 |
|
98 |
|
99 |
|
100 |
1.1 profiles/prefix/aix/package.use.mask |
101 |
|
102 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.use.mask?rev=1.1&view=markup |
103 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/package.use.mask?rev=1.1&content-type=text/plain |
104 |
|
105 |
Index: package.use.mask |
106 |
=================================================================== |
107 |
# Copyright 1999-2009 Gentoo Foundation |
108 |
# Distributed under the terms of the GNU General Public License v2 |
109 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/package.use.mask,v 1.1 2009/06/06 03:54:34 solar Exp $ |
110 |
|
111 |
# Michael Haubenwallner <haubi@g.o> (08 May 2009) |
112 |
# IBM does not provide "Java Communications API support" for AIX |
113 |
dev-java/ibm-jdk-bin javacomm |
114 |
|
115 |
|
116 |
|
117 |
1.1 profiles/prefix/aix/packages |
118 |
|
119 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/packages?rev=1.1&view=markup |
120 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/packages?rev=1.1&content-type=text/plain |
121 |
|
122 |
Index: packages |
123 |
=================================================================== |
124 |
# Copyright 1999-2009 Gentoo Foundation |
125 |
# Distributed under the terms of the GNU General Public License v2 |
126 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/packages,v 1.1 2009/06/06 03:54:34 solar Exp $ |
127 |
|
128 |
# AIX uses the native (non-source available) linker |
129 |
*sys-devel/native-cctools |
130 |
# because AIX ar isn't able to unpack .deb files, we need deb2targz |
131 |
*app-arch/deb2targz |
132 |
# need some dll helpers on AIX |
133 |
*sys-apps/aix-miscutils |
134 |
|
135 |
|
136 |
|
137 |
1.1 profiles/prefix/aix/parent |
138 |
|
139 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/parent?rev=1.1&view=markup |
140 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/parent?rev=1.1&content-type=text/plain |
141 |
|
142 |
Index: parent |
143 |
=================================================================== |
144 |
../../base |
145 |
.. |
146 |
|
147 |
|
148 |
|
149 |
1.1 profiles/prefix/aix/profile.bashrc |
150 |
|
151 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/profile.bashrc?rev=1.1&view=markup |
152 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/profile.bashrc?rev=1.1&content-type=text/plain |
153 |
|
154 |
Index: profile.bashrc |
155 |
=================================================================== |
156 |
# Copyright 1999-2009 Gentoo Foundation |
157 |
# Distributed under the terms of the GNU General Public License v2 |
158 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/profile.bashrc,v 1.1 2009/06/06 03:54:34 solar Exp $ |
159 |
|
160 |
# never use /bin/sh as CONFIG_SHELL on AIX: it works, but is way to slow. |
161 |
export CONFIG_SHELL=${BASH} |
162 |
|
163 |
# Portage cannot merge shared objects inside archive libraries on AIX (yet). |
164 |
# So we need to hack around by unpacking the archive libraries, let portage |
165 |
# merge/unmerge the archive library members as normal files, and recreate the |
166 |
# archive libraries after merge/unmerge. |
167 |
|
168 |
aixdll_find_unprepared() { |
169 |
find "$1" -type f -name 'lib*.a' -print |
170 |
} |
171 |
|
172 |
aixdll_find_prepared() { |
173 |
find "$1" -type d -name 'lib*.a.d' -print |
174 |
} |
175 |
|
176 |
aixdll_prepare_for_merge() { |
177 |
local liba=$1 |
178 |
local libad=${liba}.d |
179 |
mkdir "${libad}" || die "Cannot create ${libad}" |
180 |
pushd "${libad}" >/dev/null || die "Cannot cd to ${libad}" |
181 |
/usr/ccs/bin/ar -x "${liba}" || die "Cannot un-ar ${liba}" |
182 |
popd >/dev/null || die "Cannot cd back from ${libad}" |
183 |
true |
184 |
} |
185 |
|
186 |
aixdll_is_prepared() { |
187 |
local what=$1 |
188 |
[[ ${what##*/} == lib*.a.d ]] |
189 |
} |
190 |
|
191 |
aixdll_unprepare_from_merge() { |
192 |
aixdll_is_prepared "${1}" || return 0 |
193 |
local liba libad |
194 |
libad=${1} |
195 |
liba=${libad%.d} |
196 |
|
197 |
if [[ -d ${libad} ]]; then |
198 |
pushd "${libad}" >/dev/null || die "Cannot cd to ${libad}" |
199 |
rm -f "./${liba##*/}.new" || die "Cannot remove ${liba##*/}.new" |
200 |
/usr/ccs/bin/ar -coqszvl -X 32_64 "./${liba##*/}.new" ./* || die "Cannot recreate ${liba}" |
201 |
mv -f "./${liba##*/}.new" "${liba}" || die "Cannot move ${liba##*/}.new to ${liba}" |
202 |
popd >/dev/null || die "Cannot cd back from ${libad}" |
203 |
elif [[ -f ${liba} ]]; then |
204 |
rm -f "${liba}" || die "Cannot prune ${liba}" |
205 |
fi |
206 |
true |
207 |
} |
208 |
|
209 |
post_src_install() { |
210 |
local liba |
211 |
einfo "Preparing AIX libraries for merge..." |
212 |
pushd "${D}" >/dev/null || die "Cannot cd to ${D}" |
213 |
for liba in $(aixdll_find_unprepared .); do |
214 |
/bin/file "${liba}" | /bin/grep ': archive' >/dev/null || return 0 |
215 |
liba=${liba#./} |
216 |
einfo "preparing ${liba}" |
217 |
aixdll_prepare_for_merge "${D}${liba}" |
218 |
rm -f "${D}${liba}" || die "Cannot prune ${liba}" |
219 |
eend 0 |
220 |
done |
221 |
popd >/dev/null || die "Cannot cd back from ${D}" |
222 |
} |
223 |
|
224 |
pre_pkg_postinst() { |
225 |
local libad save_IFS content |
226 |
einfo "Preparing AIX libraries for unmerge..." |
227 |
pushd "${D}" >/dev/null || die "Cannot cd to ${D}" |
228 |
for libad in $(aixdll_find_prepared .); do |
229 |
libad=${libad#./} |
230 |
aixdll_is_prepared "${ROOT}${libad}" || continue |
231 |
einfo "unpreparing ${libad}" |
232 |
aixdll_unprepare_from_merge "${ROOT}${libad}" |
233 |
eend 0 |
234 |
done |
235 |
popd >/dev/null || die "Cannot cd back from ${D}" |
236 |
} |
237 |
|
238 |
pre_pkg_postrm() { |
239 |
local libad save_IFS content |
240 |
einfo "Preparing AIX libraries for unmerge..." |
241 |
pushd "${ROOT}" >/dev/null || die "Cannot cd to ${ROOT}" |
242 |
save_IFS=$IFS |
243 |
IFS=' |
244 |
'; |
245 |
local MY_PR=${PR} |
246 |
[[ ${MY_PR} == r0 ]] && MY_PR= |
247 |
local -a contents=($(<"${EPREFIX}/var/db/pkg/${CATEGORY}/${P}${MY_PR:+-}${MY_PR}/CONTENTS")); |
248 |
IFS=$save_IFS |
249 |
local -a cont |
250 |
for content in "${contents[@]}"; do |
251 |
cont=(${content}) |
252 |
libad=${cont[1]} |
253 |
libad=${libad#/} |
254 |
aixdll_is_prepared "${ROOT}${libad}" || continue |
255 |
einfo "unpreparing ${libad}" |
256 |
aixdll_unprepare_from_merge "${ROOT}${libad}" |
257 |
eend 0 |
258 |
done |
259 |
popd >/dev/null || die "Cannot cd back from ${ROOT}" |
260 |
} |
261 |
|
262 |
|
263 |
|
264 |
1.1 profiles/prefix/aix/use.force |
265 |
|
266 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/use.force?rev=1.1&view=markup |
267 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/use.force?rev=1.1&content-type=text/plain |
268 |
|
269 |
Index: use.force |
270 |
=================================================================== |
271 |
# Copyright 1999-2009 Gentoo Foundation |
272 |
# Distributed under the terms of the GNU General Public License v2 |
273 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/use.force,v 1.1 2009/06/06 03:54:34 solar Exp $ |
274 |
|
275 |
# Re-add AIX OS |
276 |
kernel_AIX |
277 |
elibc_AIX |
278 |
|
279 |
|
280 |
|
281 |
1.1 profiles/prefix/aix/use.mask |
282 |
|
283 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/use.mask?rev=1.1&view=markup |
284 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/use.mask?rev=1.1&content-type=text/plain |
285 |
|
286 |
Index: use.mask |
287 |
=================================================================== |
288 |
# Copyright 1999-2009 Gentoo Foundation |
289 |
# Distributed under the terms of the GNU General Public License v2 |
290 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/use.mask,v 1.1 2009/06/06 03:54:34 solar Exp $ |
291 |
|
292 |
# Re-add AIX libc |
293 |
-elibc_AIX |
294 |
-kernel_AIX |
295 |
|
296 |
# these will more than likely never work on AIX |
297 |
3dfx |
298 |
3dnow |
299 |
3dnowext |
300 |
acpi |
301 |
alsa |
302 |
apm |
303 |
cap |
304 |
caps |
305 |
directfb |
306 |
divx4linux |
307 |
djbfft |
308 |
emul-linux-x86 |
309 |
fbcon |
310 |
fdftk |
311 |
fmod |
312 |
ggi |
313 |
gpm |
314 |
hardened |
315 |
icc |
316 |
icc-pgo |
317 |
mmx |
318 |
mmx2 |
319 |
on-the-fly-crypt # requires device-mapper |
320 |
oss |
321 |
solid |
322 |
sse |
323 |
sse2 |
324 |
svga |
325 |
sybase |
326 |
sybase-ct |
327 |
rtc |
328 |
uclibc |
329 |
voodoo3 |
330 |
pvm |
331 |
v4l |
332 |
v4l2 |
333 |
|
334 |
|
335 |
|
336 |
|
337 |
1.1 profiles/prefix/aix/virtuals |
338 |
|
339 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/virtuals?rev=1.1&view=markup |
340 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/aix/virtuals?rev=1.1&content-type=text/plain |
341 |
|
342 |
Index: virtuals |
343 |
=================================================================== |
344 |
# Copyright 1999-2009 Gentoo Foundation |
345 |
# Distributed under the terms of the GNU General Public License v2 |
346 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/aix/virtuals,v 1.1 2009/06/06 03:54:34 solar Exp $ |
347 |
|
348 |
virtual/libc sys-aix/libc |
349 |
virtual/os-headers sys-aix/libc |