diff options
author | 2009-06-06 03:55:13 +0000 | |
---|---|---|
committer | 2009-06-06 03:55:13 +0000 | |
commit | 3cb29e878b8defe78ee4c9998faa10fc8cea34f5 (patch) | |
tree | 34c7a9b7f1159690b42fa434245055ee6779c1e4 /profiles/prefix/hpux | |
parent | Version bump (diff) | |
download | gentoo-2-3cb29e878b8defe78ee4c9998faa10fc8cea34f5.tar.gz gentoo-2-3cb29e878b8defe78ee4c9998faa10fc8cea34f5.tar.bz2 gentoo-2-3cb29e878b8defe78ee4c9998faa10fc8cea34f5.zip |
Initial commit of prefix profiles on behalf of the prefix community
Diffstat (limited to 'profiles/prefix/hpux')
-rw-r--r-- | profiles/prefix/hpux/B.11.23/ia64/make.defaults | 7 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.23/ia64/parent | 1 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.23/package.provided | 5 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.23/parent | 1 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.31/ia64/make.defaults | 7 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.31/ia64/parent | 1 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.31/package.provided | 5 | ||||
-rw-r--r-- | profiles/prefix/hpux/B.11.31/parent | 1 | ||||
-rw-r--r-- | profiles/prefix/hpux/make.defaults | 13 | ||||
-rw-r--r-- | profiles/prefix/hpux/package.mask | 9 | ||||
-rw-r--r-- | profiles/prefix/hpux/packages | 6 | ||||
-rw-r--r-- | profiles/prefix/hpux/parent | 2 | ||||
-rw-r--r-- | profiles/prefix/hpux/profile.bashrc | 70 | ||||
-rw-r--r-- | profiles/prefix/hpux/use.force | 7 | ||||
-rw-r--r-- | profiles/prefix/hpux/use.mask | 46 | ||||
-rw-r--r-- | profiles/prefix/hpux/virtuals | 6 |
16 files changed, 187 insertions, 0 deletions
diff --git a/profiles/prefix/hpux/B.11.23/ia64/make.defaults b/profiles/prefix/hpux/B.11.23/ia64/make.defaults new file mode 100644 index 000000000000..980147aecca0 --- /dev/null +++ b/profiles/prefix/hpux/B.11.23/ia64/make.defaults @@ -0,0 +1,7 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/B.11.23/ia64/make.defaults,v 1.1 2009/06/06 03:54:52 solar Exp $ + +ARCH="ia64-hpux" +CHOST="ia64-hp-hpux11.23" +ACCEPT_KEYWORDS="~ia64-hpux" diff --git a/profiles/prefix/hpux/B.11.23/ia64/parent b/profiles/prefix/hpux/B.11.23/ia64/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/prefix/hpux/B.11.23/ia64/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/hpux/B.11.23/package.provided b/profiles/prefix/hpux/B.11.23/package.provided new file mode 100644 index 000000000000..fa7d94d95fcf --- /dev/null +++ b/profiles/prefix/hpux/B.11.23/package.provided @@ -0,0 +1,5 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/B.11.23/package.provided,v 1.1 2009/06/06 03:54:52 solar Exp $ + +sys-hpux/libc-11.23 diff --git a/profiles/prefix/hpux/B.11.23/parent b/profiles/prefix/hpux/B.11.23/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/prefix/hpux/B.11.23/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/hpux/B.11.31/ia64/make.defaults b/profiles/prefix/hpux/B.11.31/ia64/make.defaults new file mode 100644 index 000000000000..fdbb220eb059 --- /dev/null +++ b/profiles/prefix/hpux/B.11.31/ia64/make.defaults @@ -0,0 +1,7 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/B.11.31/ia64/make.defaults,v 1.1 2009/06/06 03:54:53 solar Exp $ + +ARCH="ia64-hpux" +CHOST="ia64-hp-hpux11.31" +ACCEPT_KEYWORDS="~ia64-hpux" diff --git a/profiles/prefix/hpux/B.11.31/ia64/parent b/profiles/prefix/hpux/B.11.31/ia64/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/prefix/hpux/B.11.31/ia64/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/hpux/B.11.31/package.provided b/profiles/prefix/hpux/B.11.31/package.provided new file mode 100644 index 000000000000..bb20df1b00b4 --- /dev/null +++ b/profiles/prefix/hpux/B.11.31/package.provided @@ -0,0 +1,5 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/B.11.31/package.provided,v 1.1 2009/06/06 03:54:53 solar Exp $ + +sys-hpux/libc-11.31 diff --git a/profiles/prefix/hpux/B.11.31/parent b/profiles/prefix/hpux/B.11.31/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/prefix/hpux/B.11.31/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/hpux/make.defaults b/profiles/prefix/hpux/make.defaults new file mode 100644 index 000000000000..81ef23308099 --- /dev/null +++ b/profiles/prefix/hpux/make.defaults @@ -0,0 +1,13 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/make.defaults,v 1.1 2009/06/06 03:54:51 solar Exp $ + +# System-wide defaults for all HP-UX profiles +# This file should rarely need to be changed + +# 'Sane' defaults +ELIBC="HPUX" +KERNEL="HPUX" + +# Sandbox is not ported to HP-UX (yet?), no scanelf +FEATURES="-sandbox nostrip" diff --git a/profiles/prefix/hpux/package.mask b/profiles/prefix/hpux/package.mask new file mode 100644 index 000000000000..350802128243 --- /dev/null +++ b/profiles/prefix/hpux/package.mask @@ -0,0 +1,9 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/package.mask,v 1.1 2009/06/06 03:54:51 solar Exp $ + +# Jeremy Olexa <darkside@gentoo.org> (21 Nov 2008) +# file-4.25 lacks a define for SIZE_MAX. This causes issues on ia64-hpux. +# file-4.26 is fixed but masked globally in Prefix. Since this is non-trivial to +# fix, masked on ia64-hpux. +=sys-apps/file-4.25 diff --git a/profiles/prefix/hpux/packages b/profiles/prefix/hpux/packages new file mode 100644 index 000000000000..4938c0dc100f --- /dev/null +++ b/profiles/prefix/hpux/packages @@ -0,0 +1,6 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/packages,v 1.1 2009/06/06 03:54:51 solar Exp $ + +# need GNU as on HP-UX +*sys-devel/binutils diff --git a/profiles/prefix/hpux/parent b/profiles/prefix/hpux/parent new file mode 100644 index 000000000000..cd1149221a41 --- /dev/null +++ b/profiles/prefix/hpux/parent @@ -0,0 +1,2 @@ +../../base +.. diff --git a/profiles/prefix/hpux/profile.bashrc b/profiles/prefix/hpux/profile.bashrc new file mode 100644 index 000000000000..ac5eb40cd519 --- /dev/null +++ b/profiles/prefix/hpux/profile.bashrc @@ -0,0 +1,70 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/profile.bashrc,v 1.1 2009/06/06 03:54:51 solar Exp $ + +# On hpux, binary files (executables, shared libraries) in use +# cannot be replaced during merge. +# But it is possible to rename them and remove lateron when they are +# not used any more by any running process. +# +# This is a workaround for portage bug#199868, +# and should be dropped once portage does sth. like this itself. + +post_pkg_preinst() { + removedlist="${EROOT}var/lib/portage/files2bremoved" + rm -f "${removedlist}".new + + if [[ -r ${removedlist} ]]; then + rm -f "${removedlist}".old + fi + # restore in case of system fault + if [[ -r ${removedlist}.old ]]; then + mv "${removedlist}"{.old,} + fi + + touch "${removedlist}"{,.new} # ensure they exist + + while read rmstem; do + # try to remove previously recorded files + for f in "${ROOT}${rmstem}"*; do + echo "trying to remove old busy text file ${f}" + rm -f "${f}" + done + # but keep it in list if still exists + for f in "${ROOT}${rmstem}"*; do + [[ -f ${f} ]] && echo "${rmstem}" >> "${removedlist}".new + break + done + done < "${removedlist}" + + # update the list + mv "${removedlist}"{,.old} + mv "${removedlist}"{.new,} + rm "${removedlist}".old + + # now go for current package + cd "${D}" + find ".${EPREFIX}" -type f | xargs -r /usr/bin/file | grep 'object file' | while read f t + do + f=${f#./} # find prints: "./path/to/file" + f=${f%:} # file prints: "file-argument: type-of-file" + test -r "${ROOT}${f}" || continue + rmstem="${f}.removedbyportage" + # keep list of old busy text files unique + grep "^${rmstem}$" "${removedlist}" >/dev/null \ + || echo "${rmstem}" >> "${removedlist}" + n=0 + while [[ ${n} -lt 100 && -f "${ROOT}${rmstem}${n}" ]]; do + n=$((n=n+1)) + done + + if [[ ${n} -ge 100 ]]; then + echo "too many (>=100) old text files busy of '${ROOT}${f}'" >&2 + exit 1 + fi + echo "backing up text file ${ROOT}${f} (${n})" + mv "${ROOT}${f}" "${ROOT}${rmstem}${n}" || exit 1 + # preserve original binary (required for bash fex) + cp -p "${ROOT}${rmstem}${n}" "${ROOT}${f}" || exit 1 + done +} diff --git a/profiles/prefix/hpux/use.force b/profiles/prefix/hpux/use.force new file mode 100644 index 000000000000..8b98a44a75ca --- /dev/null +++ b/profiles/prefix/hpux/use.force @@ -0,0 +1,7 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/use.force,v 1.1 2009/06/06 03:54:51 solar Exp $ + +# Re-add HPUX OS +kernel_HPUX +elibc_HPUX diff --git a/profiles/prefix/hpux/use.mask b/profiles/prefix/hpux/use.mask new file mode 100644 index 000000000000..91ff68fa2067 --- /dev/null +++ b/profiles/prefix/hpux/use.mask @@ -0,0 +1,46 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/use.mask,v 1.1 2009/06/06 03:54:51 solar Exp $ + +# Re-add HPUX libc +-elibc_HPUX +-kernel_HPUX + +# these will more than likely never work on HPUX +3dfx +3dnow +3dnowext +acpi +alsa +apm +cap +caps +directfb +divx4linux +djbfft +emul-linux-x86 +fbcon +fdftk +fmod +ggi +gpm +hardened +icc +icc-pgo +mmx +mmx2 +on-the-fly-crypt # requires device-mapper +oss +solid +sse +sse2 +svga +sybase +sybase-ct +rtc +uclibc +voodoo3 +pvm +v4l +v4l2 + diff --git a/profiles/prefix/hpux/virtuals b/profiles/prefix/hpux/virtuals new file mode 100644 index 000000000000..1f7526ea2ad9 --- /dev/null +++ b/profiles/prefix/hpux/virtuals @@ -0,0 +1,6 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/hpux/virtuals,v 1.1 2009/06/06 03:54:51 solar Exp $ + +virtual/libc sys-hpux/libc +virtual/os-headers sys-hpux/libc |