summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/prefix/hpux')
-rw-r--r--profiles/prefix/hpux/B.11.11/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.11/hppa2.0/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.11/hppa2.0/make.defaults12
-rw-r--r--profiles/prefix/hpux/B.11.11/hppa2.0/parent1
-rw-r--r--profiles/prefix/hpux/B.11.11/package.provided5
-rw-r--r--profiles/prefix/hpux/B.11.11/package.use.mask7
-rw-r--r--profiles/prefix/hpux/B.11.11/parent1
-rw-r--r--profiles/prefix/hpux/B.11.23/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.23/ia64/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.23/ia64/make.defaults7
-rw-r--r--profiles/prefix/hpux/B.11.23/ia64/parent1
-rw-r--r--profiles/prefix/hpux/B.11.23/package.provided5
-rw-r--r--profiles/prefix/hpux/B.11.23/parent1
-rw-r--r--profiles/prefix/hpux/B.11.31/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.31/hppa2.0/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.31/hppa2.0/make.defaults12
-rw-r--r--profiles/prefix/hpux/B.11.31/hppa2.0/parent1
-rw-r--r--profiles/prefix/hpux/B.11.31/ia64/eapi1
-rw-r--r--profiles/prefix/hpux/B.11.31/ia64/make.defaults7
-rw-r--r--profiles/prefix/hpux/B.11.31/ia64/parent1
-rw-r--r--profiles/prefix/hpux/B.11.31/package.provided5
-rw-r--r--profiles/prefix/hpux/B.11.31/parent1
-rw-r--r--profiles/prefix/hpux/eapi1
-rw-r--r--profiles/prefix/hpux/make.defaults13
-rw-r--r--profiles/prefix/hpux/package.mask8
-rw-r--r--profiles/prefix/hpux/packages6
-rw-r--r--profiles/prefix/hpux/parent1
-rw-r--r--profiles/prefix/hpux/profile.bashrc114
-rw-r--r--profiles/prefix/hpux/use.force7
-rw-r--r--profiles/prefix/hpux/use.mask46
30 files changed, 270 insertions, 0 deletions
diff --git a/profiles/prefix/hpux/B.11.11/eapi b/profiles/prefix/hpux/B.11.11/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.11/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/hpux/B.11.11/hppa2.0/eapi b/profiles/prefix/hpux/B.11.11/hppa2.0/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.11/hppa2.0/eapi
@@ -0,0 +1 @@
+5
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 000000000000..c163e4ae4930
--- /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
+# $Id$
+
+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 000000000000..f3229c5b9876
--- /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 000000000000..4e2b2108f03a
--- /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
+# $Id$
+
+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 000000000000..2ad265648729
--- /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
+# $Id$
+
+# 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 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.11/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/hpux/B.11.23/eapi b/profiles/prefix/hpux/B.11.23/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.23/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/hpux/B.11.23/ia64/eapi b/profiles/prefix/hpux/B.11.23/ia64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.23/ia64/eapi
@@ -0,0 +1 @@
+5
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..793bfc33f616
--- /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
+# $Id$
+
+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..7e7247b88419
--- /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
+# $Id$
+
+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/eapi b/profiles/prefix/hpux/B.11.31/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.31/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/hpux/B.11.31/hppa2.0/eapi b/profiles/prefix/hpux/B.11.31/hppa2.0/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.31/hppa2.0/eapi
@@ -0,0 +1 @@
+5
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 000000000000..a7d11b89a1de
--- /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
+# $Id$
+
+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 000000000000..f3229c5b9876
--- /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/eapi b/profiles/prefix/hpux/B.11.31/ia64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/B.11.31/ia64/eapi
@@ -0,0 +1 @@
+5
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..0cbbea055c39
--- /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
+# $Id$
+
+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..a65f8f291fe0
--- /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
+# $Id$
+
+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/eapi b/profiles/prefix/hpux/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/hpux/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/hpux/make.defaults b/profiles/prefix/hpux/make.defaults
new file mode 100644
index 000000000000..e340e742da67
--- /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
+# $Id$
+
+# 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 000000000000..8ebbeb9c45a0
--- /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
+# $Id$
+
+# 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 and ia64-hpux. bug 311239
+>=sys-devel/gcc-4.3
diff --git a/profiles/prefix/hpux/packages b/profiles/prefix/hpux/packages
new file mode 100644
index 000000000000..f3617115cbc1
--- /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
+# $Id$
+
+# 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..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/hpux/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/hpux/profile.bashrc b/profiles/prefix/hpux/profile.bashrc
new file mode 100644
index 000000000000..3056078ba1df
--- /dev/null
+++ b/profiles/prefix/hpux/profile.bashrc
@@ -0,0 +1,114 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# /bin/sh is korn shell, incompatible with bash used by makefiles later.
+# This is a problem with recent libtool detecting non-bashism 'print' fex.
+export CONFIG_SHELL=${BASH}
+
+# 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 000000000000..7851b40d1d1e
--- /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
+# $Id$
+
+# 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..66d38acc1542
--- /dev/null
+++ b/profiles/prefix/hpux/use.mask
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# 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
+cman
+clvm
+directfb
+divx4linux
+djbfft
+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