Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Ned Ludd (solar)" <solar@g.o>
Subject: gentoo-x86 commit in profiles/prefix/hpux: make.defaults package.mask packages parent profile.bashrc use.force use.mask virtuals
Date: Sat, 06 Jun 2009 03:54:51 +0000
solar       09/06/06 03:54:51

  Added:                make.defaults package.mask packages parent
                        profile.bashrc use.force use.mask virtuals
  Log:
  Initial commit of prefix profiles on behalf of the prefix community

Revision  Changes    Path
1.1                  profiles/prefix/hpux/make.defaults

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/make.defaults?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/make.defaults?rev=1.1&content-type=text/plain

Index: make.defaults
===================================================================
# 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"



1.1                  profiles/prefix/hpux/package.mask

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/package.mask?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/package.mask?rev=1.1&content-type=text/plain

Index: package.mask
===================================================================
# 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@g.o> (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



1.1                  profiles/prefix/hpux/packages

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/packages?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/packages?rev=1.1&content-type=text/plain

Index: packages
===================================================================
# 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



1.1                  profiles/prefix/hpux/parent

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/parent?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/parent?rev=1.1&content-type=text/plain

Index: parent
===================================================================
../../base
..



1.1                  profiles/prefix/hpux/profile.bashrc

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/profile.bashrc?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/profile.bashrc?rev=1.1&content-type=text/plain

Index: profile.bashrc
===================================================================
# 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
}



1.1                  profiles/prefix/hpux/use.force

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.force?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.force?rev=1.1&content-type=text/plain

Index: use.force
===================================================================
# 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



1.1                  profiles/prefix/hpux/use.mask

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.mask?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/use.mask?rev=1.1&content-type=text/plain

Index: use.mask
===================================================================
# 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




1.1                  profiles/prefix/hpux/virtuals

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/virtuals?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/hpux/virtuals?rev=1.1&content-type=text/plain

Index: virtuals
===================================================================
# 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





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in profiles/prefix/darwin/macos/10.5/ppc: make.defaults package.mask package.use.force package.use.mask parent use.mask
Next by thread:
gentoo-x86 commit in profiles/prefix/darwin/macos/10.5/x86: make.defaults package.mask package.use.force package.use.mask parent use.mask
Previous by date:
gentoo-x86 commit in profiles/prefix/darwin/macos/10.5/ppc: make.defaults package.mask package.use.force package.use.mask parent use.mask
Next by date:
gentoo-x86 commit in profiles/prefix/darwin/macos/10.5/x86: make.defaults package.mask package.use.force package.use.mask parent use.mask


Updated Apr 18, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.