1 |
solar 09/06/06 03:54:51 |
2 |
|
3 |
Added: make.defaults package.mask packages parent |
4 |
profile.bashrc use.force use.mask virtuals |
5 |
Log: |
6 |
Initial commit of prefix profiles on behalf of the prefix community |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 profiles/prefix/hpux/make.defaults |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/make.defaults?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/make.defaults?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: make.defaults |
15 |
=================================================================== |
16 |
# Copyright 1999-2009 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/make.defaults,v 1.1 2009/06/06 03:54:51 solar Exp $ |
19 |
|
20 |
# System-wide defaults for all HP-UX profiles |
21 |
# This file should rarely need to be changed |
22 |
|
23 |
# 'Sane' defaults |
24 |
ELIBC="HPUX" |
25 |
KERNEL="HPUX" |
26 |
|
27 |
# Sandbox is not ported to HP-UX (yet?), no scanelf |
28 |
FEATURES="-sandbox nostrip" |
29 |
|
30 |
|
31 |
|
32 |
1.1 profiles/prefix/hpux/package.mask |
33 |
|
34 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/package.mask?rev=1.1&view=markup |
35 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/package.mask?rev=1.1&content-type=text/plain |
36 |
|
37 |
Index: package.mask |
38 |
=================================================================== |
39 |
# Copyright 1999-2009 Gentoo Foundation |
40 |
# Distributed under the terms of the GNU General Public License v2 |
41 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/package.mask,v 1.1 2009/06/06 03:54:51 solar Exp $ |
42 |
|
43 |
# Jeremy Olexa <darkside@g.o> (21 Nov 2008) |
44 |
# file-4.25 lacks a define for SIZE_MAX. This causes issues on ia64-hpux. |
45 |
# file-4.26 is fixed but masked globally in Prefix. Since this is non-trivial to |
46 |
# fix, masked on ia64-hpux. |
47 |
=sys-apps/file-4.25 |
48 |
|
49 |
|
50 |
|
51 |
1.1 profiles/prefix/hpux/packages |
52 |
|
53 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/packages?rev=1.1&view=markup |
54 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/packages?rev=1.1&content-type=text/plain |
55 |
|
56 |
Index: packages |
57 |
=================================================================== |
58 |
# Copyright 1999-2009 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/packages,v 1.1 2009/06/06 03:54:51 solar Exp $ |
61 |
|
62 |
# need GNU as on HP-UX |
63 |
*sys-devel/binutils |
64 |
|
65 |
|
66 |
|
67 |
1.1 profiles/prefix/hpux/parent |
68 |
|
69 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/parent?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/parent?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: parent |
73 |
=================================================================== |
74 |
../../base |
75 |
.. |
76 |
|
77 |
|
78 |
|
79 |
1.1 profiles/prefix/hpux/profile.bashrc |
80 |
|
81 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/profile.bashrc?rev=1.1&view=markup |
82 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/profile.bashrc?rev=1.1&content-type=text/plain |
83 |
|
84 |
Index: profile.bashrc |
85 |
=================================================================== |
86 |
# Copyright 1999-2009 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/profile.bashrc,v 1.1 2009/06/06 03:54:51 solar Exp $ |
89 |
|
90 |
# On hpux, binary files (executables, shared libraries) in use |
91 |
# cannot be replaced during merge. |
92 |
# But it is possible to rename them and remove lateron when they are |
93 |
# not used any more by any running process. |
94 |
# |
95 |
# This is a workaround for portage bug#199868, |
96 |
# and should be dropped once portage does sth. like this itself. |
97 |
|
98 |
post_pkg_preinst() { |
99 |
removedlist="${EROOT}var/lib/portage/files2bremoved" |
100 |
rm -f "${removedlist}".new |
101 |
|
102 |
if [[ -r ${removedlist} ]]; then |
103 |
rm -f "${removedlist}".old |
104 |
fi |
105 |
# restore in case of system fault |
106 |
if [[ -r ${removedlist}.old ]]; then |
107 |
mv "${removedlist}"{.old,} |
108 |
fi |
109 |
|
110 |
touch "${removedlist}"{,.new} # ensure they exist |
111 |
|
112 |
while read rmstem; do |
113 |
# try to remove previously recorded files |
114 |
for f in "${ROOT}${rmstem}"*; do |
115 |
echo "trying to remove old busy text file ${f}" |
116 |
rm -f "${f}" |
117 |
done |
118 |
# but keep it in list if still exists |
119 |
for f in "${ROOT}${rmstem}"*; do |
120 |
[[ -f ${f} ]] && echo "${rmstem}" >> "${removedlist}".new |
121 |
break |
122 |
done |
123 |
done < "${removedlist}" |
124 |
|
125 |
# update the list |
126 |
mv "${removedlist}"{,.old} |
127 |
mv "${removedlist}"{.new,} |
128 |
rm "${removedlist}".old |
129 |
|
130 |
# now go for current package |
131 |
cd "${D}" |
132 |
find ".${EPREFIX}" -type f | xargs -r /usr/bin/file | grep 'object file' | while read f t |
133 |
do |
134 |
f=${f#./} # find prints: "./path/to/file" |
135 |
f=${f%:} # file prints: "file-argument: type-of-file" |
136 |
test -r "${ROOT}${f}" || continue |
137 |
rmstem="${f}.removedbyportage" |
138 |
# keep list of old busy text files unique |
139 |
grep "^${rmstem}$" "${removedlist}" >/dev/null \ |
140 |
|| echo "${rmstem}" >> "${removedlist}" |
141 |
n=0 |
142 |
while [[ ${n} -lt 100 && -f "${ROOT}${rmstem}${n}" ]]; do |
143 |
n=$((n=n+1)) |
144 |
done |
145 |
|
146 |
if [[ ${n} -ge 100 ]]; then |
147 |
echo "too many (>=100) old text files busy of '${ROOT}${f}'" >&2 |
148 |
exit 1 |
149 |
fi |
150 |
echo "backing up text file ${ROOT}${f} (${n})" |
151 |
mv "${ROOT}${f}" "${ROOT}${rmstem}${n}" || exit 1 |
152 |
# preserve original binary (required for bash fex) |
153 |
cp -p "${ROOT}${rmstem}${n}" "${ROOT}${f}" || exit 1 |
154 |
done |
155 |
} |
156 |
|
157 |
|
158 |
|
159 |
1.1 profiles/prefix/hpux/use.force |
160 |
|
161 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.force?rev=1.1&view=markup |
162 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.force?rev=1.1&content-type=text/plain |
163 |
|
164 |
Index: use.force |
165 |
=================================================================== |
166 |
# Copyright 1999-2009 Gentoo Foundation |
167 |
# Distributed under the terms of the GNU General Public License v2 |
168 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/use.force,v 1.1 2009/06/06 03:54:51 solar Exp $ |
169 |
|
170 |
# Re-add HPUX OS |
171 |
kernel_HPUX |
172 |
elibc_HPUX |
173 |
|
174 |
|
175 |
|
176 |
1.1 profiles/prefix/hpux/use.mask |
177 |
|
178 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.mask?rev=1.1&view=markup |
179 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.mask?rev=1.1&content-type=text/plain |
180 |
|
181 |
Index: use.mask |
182 |
=================================================================== |
183 |
# Copyright 1999-2009 Gentoo Foundation |
184 |
# Distributed under the terms of the GNU General Public License v2 |
185 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/use.mask,v 1.1 2009/06/06 03:54:51 solar Exp $ |
186 |
|
187 |
# Re-add HPUX libc |
188 |
-elibc_HPUX |
189 |
-kernel_HPUX |
190 |
|
191 |
# these will more than likely never work on HPUX |
192 |
3dfx |
193 |
3dnow |
194 |
3dnowext |
195 |
acpi |
196 |
alsa |
197 |
apm |
198 |
cap |
199 |
caps |
200 |
directfb |
201 |
divx4linux |
202 |
djbfft |
203 |
emul-linux-x86 |
204 |
fbcon |
205 |
fdftk |
206 |
fmod |
207 |
ggi |
208 |
gpm |
209 |
hardened |
210 |
icc |
211 |
icc-pgo |
212 |
mmx |
213 |
mmx2 |
214 |
on-the-fly-crypt # requires device-mapper |
215 |
oss |
216 |
solid |
217 |
sse |
218 |
sse2 |
219 |
svga |
220 |
sybase |
221 |
sybase-ct |
222 |
rtc |
223 |
uclibc |
224 |
voodoo3 |
225 |
pvm |
226 |
v4l |
227 |
v4l2 |
228 |
|
229 |
|
230 |
|
231 |
|
232 |
1.1 profiles/prefix/hpux/virtuals |
233 |
|
234 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/virtuals?rev=1.1&view=markup |
235 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/virtuals?rev=1.1&content-type=text/plain |
236 |
|
237 |
Index: virtuals |
238 |
=================================================================== |
239 |
# Copyright 1999-2009 Gentoo Foundation |
240 |
# Distributed under the terms of the GNU General Public License v2 |
241 |
# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/virtuals,v 1.1 2009/06/06 03:54:51 solar Exp $ |
242 |
|
243 |
virtual/libc sys-hpux/libc |
244 |
virtual/os-headers sys-hpux/libc |