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/windows/interix: make.defaults package.mask package.use.force package.use.mask parent profile.bashrc use.force use.mask virtuals
Date: Sat, 06 Jun 2009 03:55:07 +0000
solar       09/06/06 03:55:07

  Added:                make.defaults package.mask package.use.force
                        package.use.mask 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/windows/interix/make.defaults

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/make.defaults?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/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/windows/interix/make.defaults,v 1.1 2009/06/06 03:55:07 solar Exp $

# System-wide defaults for all Interix profiles
# This file should rarely need to be changed

# 'Sane' defaults
ELIBC="Interix"
KERNEL="Interix"

# Sandbox is not ported to Interix yet, no scanelf
FEATURES="-sandbox nostrip"



1.1                  profiles/prefix/windows/interix/package.mask

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/package.mask?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/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/windows/interix/package.mask,v 1.1 2009/06/06 03:55:07 solar Exp $

# $Id: package.mask,v 1.1 2009/06/06 03:55:07 solar Exp $

# Markus Duft <mduft@g.o> (27 May 2009)
# boost not yet updated for winnt and interix interconnect.
>=dev-util/boost-build-1.35.0-r2

# Markus Duft <mduft@g.o> (25 May 2009)
# sed seems to be broken, it always says:
# sed: couldn't flush stdin: Invalid seek on non-seekable object
=sys-apps/sed-4.2

# Markus Duft <mduft@g.o> (13 May 2009)
# this dooms many things (must be some environment during install),
# making installation fail.
=dev-util/subversion-1.6.2

# Markus Duft <mduft@g.o> (12 Mar 2009)
# this doesn't build at least on interix:
# libtool: link: cannot find the library `../../libltdl/libltdlc.la' 
#   or unhandled argument `../../libltdl/libltdlc.la'
=media-gfx/graphviz-2.22.0

# Markus Duft <mduft@g.o> (02 Feb 2009)
# this does not work correctly, since there seems to be some
# more non-trivial problems with dbus :*(
>=gnome-base/gconf-2.24.0

# Markus Duft <mduft@g.o> (29 Oct 2008)
# this version doesn't work on interix, since unconditional
# usage of "mbsinit" and "mbrtowc" which don't exist.
=sys-apps/texinfo-4.13

# Fabian Groffen <grobian@g.o> (21 Sep 2008)
# Fails to link with
# sshd.o(.text+0x203a):sshd.c: undefined reference to `_setgroups'
=net-misc/openssh-5*

# Markus Duft <mduft@g.o> (05 May 2008)
# Does not build with the slang interface, and
# somebody removed the use flag for ncurses (bug #220365)
>=app-misc/mc-4.6.2_pre1

# Markus Duft <mduft@g.o> (05 May 2008)
# Does not build on interix (lots of unresolved
# symbols which should be local...).
=app-antivirus/clamav-0.93*

# Michael Haubenwallner <haubi@g.o> (18 Mar 2008)
# Interix patches not working yet (mduft)
>=sys-devel/gcc-4.3.0



1.1                  profiles/prefix/windows/interix/package.use.force

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

Index: package.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/windows/interix/package.use.force,v 1.1 2009/06/06 03:55:07 solar Exp $

sys-devel/binutils-config extwrapper



1.1                  profiles/prefix/windows/interix/package.use.mask

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

Index: package.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/windows/interix/package.use.mask,v 1.1 2009/06/06 03:55:07 solar Exp $

dev-scheme/guile threads
x11-wm/fluxbox nls
net-libs/libsoup ssl
app-arch/pdv X



1.1                  profiles/prefix/windows/interix/parent

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

Index: parent
===================================================================
..



1.1                  profiles/prefix/windows/interix/profile.bashrc

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/profile.bashrc?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/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/windows/interix/profile.bashrc,v 1.1 2009/06/06 03:55:07 solar Exp $

# One basically always wants -D_ALL_SOURCE, it's some stupid restriction
# to hide useful stuff. newer GCCs have this define built-int, so no need
# for it anymore. if there are problems, uncomment this again!
#[[ ${CFLAGS} != *"-D_ALL_SOURCE"* ]] && CFLAGS="-D_ALL_SOURCE ${CFLAGS}"
#[[ ${CXXFLAGS} != *"-D_ALL_SOURCE"* ]] && CXXFLAGS="-D_ALL_SOURCE ${CXXFLAGS}"

# On interix, 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 program.
#
# This is a workaround for portage bug#199868,
# and should be dropped once portage does sth. like this itself.

interix_cleanup_removed_files() {
	local removedlist=$1
	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
			ebegin "trying to remove ${f}"
			rm -f "${f}" > /dev/null 2>&1
			eend $?
		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
}

interix_find_removed_slot() {
	local f=$1
	local n=0
	while [[ ${n} -lt 100 && -f "${f}${n}" ]]; do
		n=$((n=n+1))
	done

	if [[ ${n} -ge 100 ]]; then
		echo "too many (>=100) old text files busy of '${f}'" >&2
		exit 1
	fi

	echo $n
}

interix_prepare_file() {
	local failed=0
	if [[ ${PN} == libiconv ]]; then
		# when moving around libiconv, the prefix' coreutils will
		# be damaged, so we really need to use the systems ones.
		/bin/cp -p "${1}" "${1}.new" || failed=1
		/bin/mv "${1}" "${2}" || failed=1
		/bin/mv "${1}.new" "${1}" || failed=1
	else
		my_mv=mv

		[[ "${1}" == */mv ]] && my_mv="${1}.new"
		[[ -f "${1}.new" ]] && rm -f "${1}.new"

		cp -p "${1}" "${1}.new" || failed=1
		${my_mv} "${1}" "${2}" || failed=1
		${my_mv} "${1}.new" "${1}" || failed=1
	fi

	echo $failed
}

post_pkg_preinst() {
	local removedlist="${EROOT}var/lib/portage/files2bremoved"
	interix_cleanup_removed_files $removedlist
	
	# now go for current package
	cd "${D}"
	find ".${EROOT}" -type f | xargs -r /usr/bin/file | grep ' PE ' | 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}"

		local n=$(interix_find_removed_slot ${ROOT}${rmstem})
		ebegin "preparing ${ROOT}${f} for merge (${n})"
		eend $(interix_prepare_file "${ROOT}${f}" "${ROOT}${rmstem}${n}")
	done
}

post_pkg_prerm() {
	local removedlist="${EROOT}var/lib/portage/files2bremoved"
	save_IFS=$IFS
	IFS='
';
	local MY_PR=${PR}
	[[ ${MY_PR} == r0 ]] && MY_PR=
	local -a contents=($(<"${EROOT}var/db/pkg/${CATEGORY}/${P}${MY_PR:+-}${MY_PR}/CONTENTS"));
	IFS=$save_IFS
	local -a cont
	for content in "${contents[@]}"; do
		cont=($content)
		f=${cont[1]}
		f=${f#/}

		test -r "${ROOT}${f}" || continue

		if /usr/bin/file "${ROOT}${f}" | grep ' PE ' > /dev/null; then
			# $f should be an absolute path to the installed file
			rmstem="${f}.removedbyportage"

			grep "^${rmstem}$" "${removedlist}" > /dev/null \
				|| echo "${rmstem}" >> "${removedlist}"

			local n=$(interix_find_removed_slot ${ROOT}${rmstem})
			ebegin "preparing ${ROOT}${f} for unmerge ($n)"
			eend $(interix_prepare_file "${ROOT}${f}" "${ROOT}${rmstem}${n}")
		fi
	done
}

pre_pkg_postrm() {
	local removedlist="${EROOT}var/lib/portage/files2bremoved"
	interix_cleanup_removed_files $removedlist
}



1.1                  profiles/prefix/windows/interix/use.force

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/use.force?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/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/windows/interix/use.force,v 1.1 2009/06/06 03:55:07 solar Exp $

# Re-add Interix on Windows OS
kernel_Interix
elibc_Interix



1.1                  profiles/prefix/windows/interix/use.mask

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/use.mask?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/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/windows/interix/use.mask,v 1.1 2009/06/06 03:55:07 solar Exp $

# Re-add Interix libc
-elibc_Interix
-kernel_Interix

# these will more than likely never work on Interix
3dfx
acpi
alsa
altivec
apm
arts
aqua
bluetooth
cap
caps
cdr
coreaudio
dga
directfb
divx4linux
djbfft
dri
dvdr
# missing implementation for unexec()
emacs
emul-linux-x86
fbcon
fdftk
fmod
ggi
glut
gpm
gps
hal
hardened
hddtemp
ibm
icc
icc-pgo
ieee1394
ifc
ipod
ipv6
lm_sensors
matrox
netboot
old-linux
# requires device-mapper
on-the-fly-crypt
opengl
oss
pcmcia
pda
rtc
selinux
scanner
smartcard
svga
uclibc
#  totally b0rked on interix
unicode
usb
voodoo3
pvm
v4l
v4l2
wifi

# these are USE flags that don't _currently_ work, but may will in the future.
ffmpeg
fftw
flac
jack
joystick
ladspa
# not working yet on interix
openmp
portaudio
pulseaudio
qt3
qt4
# libtiff only static, so avoid this!
tiff
timidity



1.1                  profiles/prefix/windows/interix/virtuals

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/virtuals?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/prefix/windows/interix/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/windows/interix/virtuals,v 1.1 2009/06/06 03:55:07 solar Exp $

virtual/libc           sys-interix/libc
virtual/os-headers     sys-interix/libc





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in profiles/prefix/windows/interix/3.5: package.mask package.provided parent
Next by thread:
gentoo-x86 commit in profiles/prefix/windows/interix/5.2/x86: make.defaults parent
Previous by date:
gentoo-x86 commit in profiles/prefix/windows/interix/3.5: package.mask package.provided parent
Next by date:
gentoo-x86 commit in profiles/prefix/windows/interix/5.2/x86: make.defaults parent


Updated Jan 10, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

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