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-bsd
Navigation:
Lists: gentoo-bsd: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-bsd@g.o
From: Javier Villavicencio <the_paya@g.o>
Subject: New profile.bashrc.
Date: Sun, 20 Dec 2009 22:59:05 -0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hello everybody.

I'm back, sort of, job's workload went a bit down thanks to a change
freeze during holidays.

So I went on a emerge rampage that got me bitching and moaning about the
parallel make install problems. Here's the profile.bashrc that I came up
with (charset.alias stuff taken from the Gentoo/Prefix profile.bashrc,
I'm in doubt here, was this fixed already?).
Please review/test/etc. Right now my G/FBSD install survives an emerge
- -e @system with MAKEOPTS=-j6 which it didn't survive before...
Except for sys-apps/ed, which is using a bare /usr/bin/install from it's
Makefile.

By the way, anybody working on 8.0 ebuilds? ^_^
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)

iEYEAREDAAYFAksu1mkACgkQgvV6MZSadQoZ+gCdHxpAvyVCDUbxAo2Up6CsUyDb
TP8An2k5gBlIRQnmBri9+LdQZ4S4/Jdp
=YVws
-----END PGP SIGNATURE-----
if [[ ${EBUILD_PHASE} == compile ]] ; then
	if grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c; then
		eerror "The source code contains a faulty openat.c unit from gnulib."
		eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."
		eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt&component=FreeBSD&op_sys=FreeBSD"
		die "Broken openat.c gnulib unit."
	fi
        if grep -q "test .*==" "${S}" -r --include configure; then
                eerror "Found a non POSIX test construction in a configure script"
                eerror "The configure checks of this package may not function properly"
                eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."
                eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt&component=FreeBSD&op_sys=FreeBSD"
        fi
fi

# Stolen from prefix

# Hack to avoid every package that uses libiconv/gettext
# install a charset.alias that will collide with libiconv's one
# See bugs 169678, 195148 and 256129.
# Also the discussion on
# http://archives.gentoo.org/gentoo-dev/msg_8cb1805411f37b4eb168a3e680e531f3.xml
bsd-post_src_install() {
        local f
        if [[ ${PN} != "libiconv" && -n $(ls "${D}"/usr/lib*/charset.alias 2>/dev/null) ]]; then
                einfo "automatically removing charset.alias"
                rm -f "${D}"/usr/lib*/charset.alias
        fi
}

# 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_src_install() { bsd-post_src_install ; }
        post_src_install() { bsd-post_src_install ; }

# Another hack to fix old versions of install-sh (automake) where a non-gnu
# mkdir is not considered thread-safe (make install errors with -j > 1)

bsd-post_src_unpack() {
	# Do nothing if we don't have patch installed:
	if [[ -z $(type -P gpatch) ]]; then
		return 0;
	fi
	local EPDIR="${ECLASSDIR}/ELT-patches/install-sh"
	local EPATCHES="${EPDIR}/1.5.6 ${EPDIR}/1.5.4 ${EPDIR}/1.5"
	local ret=0
	for file in $(find . -name "install-sh" -print); do
		if [[ -n $(egrep "scriptversion=2005|scriptversion=2004" ${file}) ]]; then
			einfo "Automatically patching parallel-make unfriendly install-sh."
			# Stolen from libtool.eclass
			for mypatch in ${EPATCHES}; do
				if gpatch -p0 --dry-run "${file}" "${mypatch}" &> "${T}/patch_install-sh.log"; then
					gpatch -p0 -g0 --no-backup-if-mismatch "${file}" "${mypatch}" \
						&> "${T}/patch_install-sh.log"
					ret=$?
					break
				else
					ret=1
				fi
			done
			if [[ ret -eq 0 ]]; then
				einfo "Patch applied successfully on \"${file}\"."
			else
				ewarn "Unable to apply install-sh patch. "
				ewarn "If you experience errors during install phase, try with MAKEOPTS=\"-j1\""
			fi
		fi
	done
}

profile-post_src_unpack() { bsd-post_src_unpack ; }
	post_src_unpack() { bsd-post_src_unpack ; }

Navigation:
Lists: gentoo-bsd: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[SoC 2009] Gentoo/NetBSD important stuff (!)
Next by thread:
G/FreeBSD: 8.0, (almost) new stages and removal of old versions
Previous by date:
Re: [SoC 2009] Gentoo/NetBSD important stuff (!)
Next by date:
G/FreeBSD: 8.0, (almost) new stages and removal of old versions


Updated May 10, 2012

Summary: Archive of the gentoo-bsd mailing list.

Donate to support our development efforts.

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