diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /profiles/prefix/linux |
reinit the tree, so we can have metadata
Diffstat (limited to 'profiles/prefix/linux')
-rw-r--r-- | profiles/prefix/linux/amd64/eapi | 1 | ||||
-rw-r--r-- | profiles/prefix/linux/amd64/make.defaults | 11 | ||||
-rw-r--r-- | profiles/prefix/linux/amd64/parent | 2 | ||||
-rw-r--r-- | profiles/prefix/linux/arm/eapi | 1 | ||||
-rw-r--r-- | profiles/prefix/linux/arm/make.defaults | 6 | ||||
-rw-r--r-- | profiles/prefix/linux/arm/parent | 2 | ||||
-rw-r--r-- | profiles/prefix/linux/eapi | 1 | ||||
-rw-r--r-- | profiles/prefix/linux/make.defaults | 34 | ||||
-rw-r--r-- | profiles/prefix/linux/package.mask | 2 | ||||
-rw-r--r-- | profiles/prefix/linux/packages | 7 | ||||
-rw-r--r-- | profiles/prefix/linux/parent | 1 | ||||
-rw-r--r-- | profiles/prefix/linux/ppc64/eapi | 1 | ||||
-rw-r--r-- | profiles/prefix/linux/ppc64/make.defaults | 12 | ||||
-rw-r--r-- | profiles/prefix/linux/ppc64/packages | 7 | ||||
-rw-r--r-- | profiles/prefix/linux/ppc64/parent | 2 | ||||
-rw-r--r-- | profiles/prefix/linux/profile.bashrc | 44 | ||||
-rw-r--r-- | profiles/prefix/linux/use.mask | 7 | ||||
-rw-r--r-- | profiles/prefix/linux/x86/eapi | 1 | ||||
-rw-r--r-- | profiles/prefix/linux/x86/make.defaults | 9 | ||||
-rw-r--r-- | profiles/prefix/linux/x86/parent | 2 | ||||
-rw-r--r-- | profiles/prefix/linux/x86/profile.bashrc | 12 |
21 files changed, 165 insertions, 0 deletions
diff --git a/profiles/prefix/linux/amd64/eapi b/profiles/prefix/linux/amd64/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/prefix/linux/amd64/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/prefix/linux/amd64/make.defaults b/profiles/prefix/linux/amd64/make.defaults new file mode 100644 index 000000000000..01d39d236ab9 --- /dev/null +++ b/profiles/prefix/linux/amd64/make.defaults @@ -0,0 +1,11 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +#Note: this is Gentoo Prefix specific! (13 Jul 2008, darkside) + +# The base profile sets ACCEPT_KEYWORDS=amd64 and we don't have that in prefix. +ACCEPT_KEYWORDS="-amd64 ~amd64-linux" + +# We don't have lib64 or multilib in prefix, but single ABI, so remove it here. +SYMLINK_LIB="" +LIBDIR_amd64="lib" diff --git a/profiles/prefix/linux/amd64/parent b/profiles/prefix/linux/amd64/parent new file mode 100644 index 000000000000..16c974fd71e3 --- /dev/null +++ b/profiles/prefix/linux/amd64/parent @@ -0,0 +1,2 @@ +../../../default/linux/amd64/13.0/no-multilib +.. diff --git a/profiles/prefix/linux/arm/eapi b/profiles/prefix/linux/arm/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/prefix/linux/arm/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/prefix/linux/arm/make.defaults b/profiles/prefix/linux/arm/make.defaults new file mode 100644 index 000000000000..33360a56b8f2 --- /dev/null +++ b/profiles/prefix/linux/arm/make.defaults @@ -0,0 +1,6 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +ARCH="arm" +# This is a pretty specific profile to the armv7 arch, we can change that later +CHOST="armv7a-softfloat-linux-gnueabi" diff --git a/profiles/prefix/linux/arm/parent b/profiles/prefix/linux/arm/parent new file mode 100644 index 000000000000..c9cb641f50d9 --- /dev/null +++ b/profiles/prefix/linux/arm/parent @@ -0,0 +1,2 @@ +../../../default/linux/arm/13.0 +.. diff --git a/profiles/prefix/linux/eapi b/profiles/prefix/linux/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/prefix/linux/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/prefix/linux/make.defaults b/profiles/prefix/linux/make.defaults new file mode 100644 index 000000000000..4e2672bc1ceb --- /dev/null +++ b/profiles/prefix/linux/make.defaults @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# 'Sane' defaults +ELIBC="glibc" +KERNEL="linux" + +# Fabian Groffen <grobian@gentoo.org> (13 Sep 2017) +# Traditional Prefix is no-multilib, and always installs in /lib so +# don't check against this for "incompatible" objects +FEATURES="-multilib-strict" + +# 2006/10/28 - Luca Barbato <lu_zero@gentoo.org> +# on glibc system you cannot turn it off +USE="iconv" + +# build gcc with parallelization support +USE="${USE} openmp" + +# Turn off acl to help with bootstrapping - it isn't as helpful for prefix as it +# can be for a non-prefix install +USE="${USE} -acl" + +# 2008/07/09 - Doug Goldstein <cardoe@gentoo.org> +# Adding LDFLAGS="-Wl,-O1 for all Linux profiles by default +# after discussion on the gentoo-dev ML. As we bang out a clear +# direction with how LDFLAGS will be set by default, this entry +# may move. +# 2010/08/12 - Fabian Groffen <grobian@gentoo.org> +# Unlike default/linux, we do NOT have --as-needed here, as it seems to +# break a random amount of packages, that don't break (or just not +# enough) for non-Prefix installs. +LDFLAGS="-Wl,-O1" + diff --git a/profiles/prefix/linux/package.mask b/profiles/prefix/linux/package.mask new file mode 100644 index 000000000000..17532723914b --- /dev/null +++ b/profiles/prefix/linux/package.mask @@ -0,0 +1,2 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 diff --git a/profiles/prefix/linux/packages b/profiles/prefix/linux/packages new file mode 100644 index 000000000000..ffd4b62cff8e --- /dev/null +++ b/profiles/prefix/linux/packages @@ -0,0 +1,7 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Here we remove packages that default/linux/packages pulls in and have no +# business being in Gentoo Prefix +-*sys-apps/busybox +-*sys-apps/util-linux diff --git a/profiles/prefix/linux/parent b/profiles/prefix/linux/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/prefix/linux/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/prefix/linux/ppc64/eapi b/profiles/prefix/linux/ppc64/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/prefix/linux/ppc64/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/prefix/linux/ppc64/make.defaults b/profiles/prefix/linux/ppc64/make.defaults new file mode 100644 index 000000000000..6be345d8d6b6 --- /dev/null +++ b/profiles/prefix/linux/ppc64/make.defaults @@ -0,0 +1,12 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +ARCH="ppc64" +CHOST="powerpc64-pc-linux-gnu" +# The base profile sets ACCEPT_KEYWORDS=ppc64 and we don't have that in prefix. +# Eventually, ~* should be removed once someone is motivated for this arch +ACCEPT_KEYWORDS="-ppc64 ~ppc64-linux ~*" + +# We don't have lib64 in prefix so, remove it here. +SYMLINK_LIB="" +LIBDIR_ppc64="lib" diff --git a/profiles/prefix/linux/ppc64/packages b/profiles/prefix/linux/ppc64/packages new file mode 100644 index 000000000000..491ae59c3c83 --- /dev/null +++ b/profiles/prefix/linux/ppc64/packages @@ -0,0 +1,7 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Those are part of the base powerpc profile's @system set, but having them as +# part of @system makes no sense for Gentoo Prefix. +-*sys-fs/hfsutils +-*sys-fs/hfsplusutils diff --git a/profiles/prefix/linux/ppc64/parent b/profiles/prefix/linux/ppc64/parent new file mode 100644 index 000000000000..51fedc0bc3e6 --- /dev/null +++ b/profiles/prefix/linux/ppc64/parent @@ -0,0 +1,2 @@ +../../../default/linux/powerpc/ppc64/13.0/64bit-userland +.. diff --git a/profiles/prefix/linux/profile.bashrc b/profiles/prefix/linux/profile.bashrc new file mode 100644 index 000000000000..9a4890117525 --- /dev/null +++ b/profiles/prefix/linux/profile.bashrc @@ -0,0 +1,44 @@ +# This is a ugly issue, see bug 289757 for origins +# This mimics the check in gcc ebuilds, bug 362315 +# +# # Remember, bash treats floats like strings.. + +get_libc_vers_min() { + if [[ -x /usr/bin/ldd ]] ; then + /usr/bin/ldd --version \ + | head -n1 \ + | grep -o ") 2\.[0-9]\+" \ + | cut -d. -f2 + return + elif [[ -x /lib/libc.so.6 || -x /lib64/libc.so.6 ]] ; then + { + /lib/libc.so.6 || /lib64/libc.so.6 + } 2>/dev/null \ + | head -n1 \ + | grep -o 'version 2\.[0-9]\+' \ + | cut -d. -f2 + return + fi + echo "0" +} + +if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == unpack ]]; then + # Since 2.3 > 2.12 in numerical terms, just compare 2.X to 2.Y, will break + # if >=3.0 is ever released + VERS=$(get_libc_vers_min) + if [[ $VERS -lt 12 ]]; then # compare host glibc 2.x to 2.12 + ewarn "Your host glibc is too old; disabling automatic fortify. bug 289757" + EPATCH_EXCLUDE+=" 10_all_gcc-default-fortify-source.patch" # <=gcc-4.5* + EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" # >=gcc-4.6* + fi +fi + +if [[ ${EBUILD_PHASE} == setup ]]; then + VERS=$(get_libc_vers_min) + if [[ $VERS -lt 6 && "${CFLAGS} " != *'gnu89-inline '* ]]; then # compare host glibc 2.x to 2.6 + einfo "Your host glibc is too old; enabling -fgnu89-inline compiler flag. bug 473524" + CFLAGS="${CFLAGS} -fgnu89-inline" # for C only + fi +fi + +# vim: set syn=sh: diff --git a/profiles/prefix/linux/use.mask b/profiles/prefix/linux/use.mask new file mode 100644 index 000000000000..03831a79a58d --- /dev/null +++ b/profiles/prefix/linux/use.mask @@ -0,0 +1,7 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Michael Haubenwallner <haubi@gentoo.org> (19 Apr 2016) +# Unmask the linux-glibc combo, or we get bug#574822. +-elibc_glibc +-kernel_linux diff --git a/profiles/prefix/linux/x86/eapi b/profiles/prefix/linux/x86/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/prefix/linux/x86/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/prefix/linux/x86/make.defaults b/profiles/prefix/linux/x86/make.defaults new file mode 100644 index 000000000000..8a679deb0752 --- /dev/null +++ b/profiles/prefix/linux/x86/make.defaults @@ -0,0 +1,9 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# The base profile sets ACCEPT_KEYWORDS=x86 and we don't have that in prefix. +ACCEPT_KEYWORDS="-x86 ~x86-linux" + +# in case we are bootstrapping with the host compiler on an amd64 linux host: +CFLAGS="${CFLAGS} -m32" +CXXFLAGS="${CXXFLAGS} -m32" diff --git a/profiles/prefix/linux/x86/parent b/profiles/prefix/linux/x86/parent new file mode 100644 index 000000000000..0fbf3318c1e6 --- /dev/null +++ b/profiles/prefix/linux/x86/parent @@ -0,0 +1,2 @@ +../../../default/linux/x86/13.0 +.. diff --git a/profiles/prefix/linux/x86/profile.bashrc b/profiles/prefix/linux/x86/profile.bashrc new file mode 100644 index 000000000000..5e3242d8ff41 --- /dev/null +++ b/profiles/prefix/linux/x86/profile.bashrc @@ -0,0 +1,12 @@ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 + +# When x86-linux runs on an amd64 host having /lib32, +# we need to have binutils to search there too (#360197). +# The patches to do so are applied upon SYMLINK_LIB=yes, +# needed when /lib32 is (a symlink to) an existing directory. +if [[ ${CATEGORY}/${PN} = sys-devel/binutils ]] \ +&& [[ ${EBUILD_PHASE} == setup ]] \ +&& [[ -d ${ROOT}lib32/. ]] \ +; then + export SYMLINK_LIB=yes +fi |