diff options
Diffstat (limited to 'profiles/prefix/hpux')
23 files changed, 266 insertions, 0 deletions
diff --git a/profiles/prefix/hpux/B.11.11/hppa2.0/make.defaults b/profiles/prefix/hpux/B.11.11/hppa2.0/make.defaults new file mode 100644 index 00000000..e8446874 --- /dev/null +++ b/profiles/prefix/hpux/B.11.11/hppa2.0/make.defaults @@ -0,0 +1,12 @@ +# 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.11/hppa2.0/make.defaults,v 1.1 2009/07/27 09:53:49 haubi Exp $ + +ARCH="hppa-hpux" +# config.guess tells for hpux11 on hppa2.0 cpu: +# "hppa2.0n-hp-hpux11.11" for 32bit kernel +# "hppa2.0w-hp-hpux11.11" for 64bit kernel and 32bit default compiler output +# "hppa64-hp-hpux11.11" for 64bit kernel and 64bit default compiler output +# This is the 32bit profile, so we use "hppa2.0n" +CHOST="hppa2.0n-hp-hpux11.11" +ACCEPT_KEYWORDS="~hppa-hpux" diff --git a/profiles/prefix/hpux/B.11.11/hppa2.0/parent b/profiles/prefix/hpux/B.11.11/hppa2.0/parent new file mode 100644 index 00000000..f3229c5b --- /dev/null +++ b/profiles/prefix/hpux/B.11.11/hppa2.0/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/hpux/B.11.11/package.provided b/profiles/prefix/hpux/B.11.11/package.provided new file mode 100644 index 00000000..a188246c --- /dev/null +++ b/profiles/prefix/hpux/B.11.11/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.11/package.provided,v 1.1 2009/07/27 09:53:49 haubi Exp $ + +sys-hpux/libc-11.11 diff --git a/profiles/prefix/hpux/B.11.11/package.use.mask b/profiles/prefix/hpux/B.11.11/package.use.mask new file mode 100644 index 00000000..a9692e29 --- /dev/null +++ b/profiles/prefix/hpux/B.11.11/package.use.mask @@ -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.11/package.use.mask,v 1.1 2009/07/28 13:50:24 haubi Exp $ + +# Michael Haubenwallner <haubi@gentoo.org> (28 Jul 2009) +# hpux11.11 has neither /dev/urandom nor /dev/random +dev-libs/apr urandom diff --git a/profiles/prefix/hpux/B.11.11/parent b/profiles/prefix/hpux/B.11.11/parent new file mode 100644 index 00000000..f3229c5b --- /dev/null +++ b/profiles/prefix/hpux/B.11.11/parent @@ -0,0 +1 @@ +.. 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 00000000..980147ae --- /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 00000000..f3229c5b --- /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 00000000..fa7d94d9 --- /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 00000000..f3229c5b --- /dev/null +++ b/profiles/prefix/hpux/B.11.23/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/hpux/B.11.31/hppa2.0/make.defaults b/profiles/prefix/hpux/B.11.31/hppa2.0/make.defaults new file mode 100644 index 00000000..1a5c1723 --- /dev/null +++ b/profiles/prefix/hpux/B.11.31/hppa2.0/make.defaults @@ -0,0 +1,12 @@ +# 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/hppa2.0/make.defaults,v 1.2 2009/07/22 14:32:43 haubi Exp $ + +ARCH="hppa-hpux" +# config.guess tells for hpux11 on hppa2.0 cpu: +# "hppa2.0n-hp-hpux11.31" for 32bit kernel +# "hppa2.0w-hp-hpux11.31" for 64bit kernel and 32bit default compiler output +# "hppa64-hp-hpux11.31" for 64bit kernel and 64bit default compiler output +# This is the 32bit profile, so we use "hppa2.0n" +CHOST="hppa2.0n-hp-hpux11.31" +ACCEPT_KEYWORDS="~hppa-hpux" diff --git a/profiles/prefix/hpux/B.11.31/hppa2.0/parent b/profiles/prefix/hpux/B.11.31/hppa2.0/parent new file mode 100644 index 00000000..f3229c5b --- /dev/null +++ b/profiles/prefix/hpux/B.11.31/hppa2.0/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 00000000..fdbb220e --- /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 00000000..f3229c5b --- /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 00000000..bb20df1b --- /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 00000000..f3229c5b --- /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 00000000..3eb42308 --- /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.2 2009/06/30 16:35:01 darkside Exp $ + +# System-wide defaults for all HP-UX profiles +# This file should rarely need to be changed + +# 'Sane' defaults +ELIBC="HPUX" +KERNEL="HPUX" + +# no scanelf +FEATURES="nostrip" diff --git a/profiles/prefix/hpux/package.mask b/profiles/prefix/hpux/package.mask new file mode 100644 index 00000000..1dc10f8f --- /dev/null +++ b/profiles/prefix/hpux/package.mask @@ -0,0 +1,8 @@ +# 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.3 2009/08/05 09:48:43 grobian Exp $ + +# Michael Haubenwallner <haubi@gentoo.org> (16 Jul 2009) +# Is blocked by QA check 'implicit pointer usage warnings' on ia64-hpux. +# Cannot recompile itself on hppa-hpux. +=sys-devel/gcc-4.3* diff --git a/profiles/prefix/hpux/packages b/profiles/prefix/hpux/packages new file mode 100644 index 00000000..4938c0dc --- /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 00000000..cd114922 --- /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 00000000..3f74ac3e --- /dev/null +++ b/profiles/prefix/hpux/profile.bashrc @@ -0,0 +1,110 @@ +# 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.4 2009/07/22 16:29:51 haubi 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. + +hpux-busytext-get-listfile() { + echo "${ROOT%%/}${EPREFIX}/var/lib/portage/files2bremoved" +} + +hpux-busytext-cleanup() { + local removedlist=$(hpux-busytext-get-listfile) + + 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 + + local rmstem f + while read rmstem + do + # try to remove previously recorded files + for f in $(ls "${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 $(ls "${ROOT}${rmstem}"*); do + echo "${rmstem}" >> "${removedlist}".new + break + done + done < "${removedlist}" + + # update the list + mv "${removedlist}"{,.old} + mv "${removedlist}"{.new,} + rm "${removedlist}".old +} + +hpux-busytext-backup() { + local removedlist=$(hpux-busytext-get-listfile) + + # now go for current package + cd "${D}" || exit 1 + + /usr/bin/find ".${EPREFIX}" '!' -type d \ + | while read f + do + f=${f#./} + [[ ! -f ${ROOT}${f} || -h ${ROOT}${f} ]] && continue + echo "${ROOT}${f}" + done \ + | xargs -r /usr/bin/file \ + | /usr/bin/grep -E '(object file|shared library|executable)' \ + | while read f t + do + # file prints: "file-argument: type-of-file" + f=${f#${ROOT}} + f=${f%:} + test -r "${ROOT}${f}" || continue + rmstem="${f}.removedbyportage" + # keep list of old busy text files unique + /usr/bin/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})" + /usr/bin/mv -f "${ROOT}${f}" "${ROOT}${rmstem}${n}" || exit 1 + /usr/bin/cp -f "${ROOT}${rmstem}${n}" "${ROOT}${f}" || exit 1 + done || exit 1 +} + +prefix_hpux-post_pkg_preinst() { + hpux-busytext-cleanup + hpux-busytext-backup +} + +prefix_hpux-pre_pkg_postinst() { + hpux-busytext-cleanup +} + +# These are because of +# http://archives.gentoo.org/gentoo-dev/msg_529a0806ed2cf841a467940a57e2d588.xml +# The profile-* ones are meant to be used in etc/portage/profile.bashrc by user +# until there is the registration mechanism. +profile-post_pkg_preinst() { prefix_hpux-post_pkg_preinst ; } + post_pkg_preinst() { prefix_hpux-post_pkg_preinst ; } + +profile-pre_pkg_postinst() { prefix_hpux-pre_pkg_postinst ; } + pre_pkg_postinst() { prefix_hpux-pre_pkg_postinst ; } diff --git a/profiles/prefix/hpux/use.force b/profiles/prefix/hpux/use.force new file mode 100644 index 00000000..8b98a44a --- /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 00000000..c27db23b --- /dev/null +++ b/profiles/prefix/hpux/use.mask @@ -0,0 +1,47 @@ +# 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.2 2009/08/18 14:48:09 darkside 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 +# the following USE flag requires device-mapper +on-the-fly-crypt +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 00000000..1f7526ea --- /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 |