Push some bashrc stuff into the sub-profiles, and move some make.defaults stuff to...
authorJeremy Huddleston <eradicator@gentoo.org>
Sat, 1 Jan 2005 00:30:51 +0000 (00:30 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Sat, 1 Jan 2005 00:30:51 +0000 (00:30 +0000)
profiles/default-linux/amd64/2004.3/lib64/make.defaults
profiles/default-linux/amd64/2004.3/make.defaults
profiles/default-linux/amd64/2004.3/profile.bashrc [new file with mode: 0644]
profiles/default-linux/amd64/gcc34-2004.2/make.defaults
profiles/default-linux/amd64/gcc34-2004.2/profile.bashrc
profiles/default-linux/amd64/profile.bashrc

index 0d4967ea09b80bd1b790b9051bf2b05a232469fe..d5c658b1762b42fe65f15e7e93617d61ac75a669 100644 (file)
@@ -1,9 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/2004.3/lib64/make.defaults,v 1.11 2004/11/08 00:22:08 lv Exp $
-
-ARCH="amd64"
-ACCEPT_KEYWORDS="${ARCH}"
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/2004.3/lib64/make.defaults,v 1.12 2005/01/01 00:30:51 eradicator Exp $
 
 # GCC 3.4.2 has multilib enabled by default, but we still need multilib in USE
 # for compatibility
@@ -12,8 +9,6 @@ GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb ncurses m
 # Sane, functional, almost-but-not-quite-minimal default for USE
 USE="${GRP_STAGE23_USE} bitmap-fonts oss alsa crypt fortran f77 jpeg nls userlocales opengl png xml2 acpi gif jp2 lzw lzw-tiff png tiff truetype usb xpm xrandr xv"
 
-ARCH="amd64"
-
 # we can enable sandbox now that we use multilib by default
 FEATURES="sandbox autoconfig"
 
index 2469a84f47a478cdc7c650b43780ab6d98571708..fe5505f252dc50cb8b0edb997ac19caf3a853698 100644 (file)
@@ -1,9 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/2004.3/make.defaults,v 1.13 2004/12/30 22:18:58 eradicator Exp $
-
-ARCH="amd64"
-ACCEPT_KEYWORDS="${ARCH}"
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/2004.3/make.defaults,v 1.14 2005/01/01 00:30:51 eradicator Exp $
 
 # GCC 3.4.2 has multilib enabled by default, but we still need multilib in USE
 # for compatibility. also, without this we might actually fail to build stages.
@@ -14,8 +11,6 @@ GRP_STAGE23_USE="${STAGE1_USE} ipv6 pam tcpd readline nls ssl gpm perl python be
 # Sane, functional, almost-but-not-quite-minimal default for USE
 USE="${GRP_STAGE23_USE} bitmap-fonts truetype-fonts type1-fonts oss alsa crypt fortran f77 jpeg nls userlocales opengl png xml2 acpi gif jp2 lzw lzw-tiff png tiff truetype usb xpm xrandr xv"
 
-ARCH="amd64"
-
 # we can enable sandbox now that we use multilib by default
 FEATURES="sandbox autoconfig"
 
diff --git a/profiles/default-linux/amd64/2004.3/profile.bashrc b/profiles/default-linux/amd64/2004.3/profile.bashrc
new file mode 100644 (file)
index 0000000..0a0f2cd
--- /dev/null
@@ -0,0 +1,46 @@
+# currently theoretical multilib stuff only available if using portage 2.0.51
+CHOST32="i686-pc-linux-gnu"
+CONF_MULTILIBDIR="${CONF_MULTILIBDIR:=lib32}"
+# until everything in the tree understands $(get_libdir), the only sane
+# default for this is lib.
+CONF_LIBDIR="${CONF_LIBDIR:=lib}"
+ARCH_WRAPPER="linux32"
+CC32="gcc32"
+CPP32="g++32"
+
+
+setup_multilib_variables() {
+       # if run via linux32, uname -m will always return i686
+       if [ "$(uname -m)" == "i686" ] ; then
+               CONF_LIBDIR="${CONF_MULTILIBDIR:=lib32}"
+               CHOST="${CHOST32:=i686-pc-linux-gnu}"
+
+               if [ -x /usr/bin/${CC32:=gcc32} ] ; then
+                       CC="${CC32:=gcc32}"
+                       CPP="${CPP32:=g++32}"
+               else
+                       CFLAGS="${CFLAGS} -m32"
+                       CXXFLAGS="${CXXFLAGS} -m32"
+               fi
+       else
+               # this isnt needed for profiles that set CONF_LIBDIR, but it
+               # doesnt hurt to be safe.
+               CONF_LIBDIR="${CONF_LIBDIR:=lib64}"
+       fi
+
+       export CONF_LIBDIR
+}
+
+[ "${CCHOST}" == "" -o "${CCHOST}" == "${CHOST}" -o "${CCHOST}" == "${CHOST32}" ] && setup_multilib_variables
+[ "${CONF_MULTILIBDIR}" == "lib" -a "${CONF_LIBDIR}" == "lib64" ] && SKIP_MULTILIB_HACK="YES"
+
+
+# spec switching support only available in gcc 3.4.2-r1 and later
+if [ -n "${USE_SPECS}" ] ; then
+       GCC_VER="$(${CC:=gcc} -dumpversion)"
+       SPECSLOC="/usr/lib/gcc-lib/${CHOST}/${GCC_VER}/"
+       if [ -f ${SPECSLOC}/${USE_SPECS}.specs ] ; then
+               export GCC_SPECS="${SPECSLOC}/${USE_SPECS}.specs"
+       fi
+fi
+
index 7023ca8680fa8dc9e13b2fe924c4b3cb3b4e684a..2f9c90d6e07ec164b00929d03703283f3e4374ca 100644 (file)
@@ -1,14 +1,11 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/gcc34-2004.2/make.defaults,v 1.9 2004/11/08 00:22:08 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/gcc34-2004.2/make.defaults,v 1.10 2005/01/01 00:30:51 eradicator Exp $
 
 GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses -java -nptl"
 
 USE="amd64 bitmap-fonts oss 3dnow apm arts avi berkdb crypt -cups encode fortran f77 foomaticdb gdbm gif gpm gtk  gtk2 imlib -gcj -java -nptl jpeg kde gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl pam pdflib png python -qt quicktime readline sdl slang spell sse ssl tcpd truetype X xml2 xmms xv zlib"
 
-ARCH="amd64"
-ACCEPT_KEYWORDS="amd64"
-
 # not having a 32bit sandbox breaks too much right now, and we cant even be
 # sure the user has a 32bit sandbox! it only gets installed if you add multilib
 # to use, recompile gcc, and then recompile portage. :/
index a23dacf85363ad1a4329abfd0acc0f588f03a98e..0a0f2cdd5dcb41576eb6783847e9647a32939ac3 100644 (file)
@@ -1,5 +1,46 @@
-# fix for bug 60147, "configure causes sandbox violations when lib64
-# is a directory". currently only works with cvs portage.
-#SANDBOX_WRITE="${SANDBOX_WRITE}:/usr/lib64/conftest:/usr/lib64/cf"
-addwrite /usr/lib64/conftest
-addwrite /usr/lib64/cf
+# currently theoretical multilib stuff only available if using portage 2.0.51
+CHOST32="i686-pc-linux-gnu"
+CONF_MULTILIBDIR="${CONF_MULTILIBDIR:=lib32}"
+# until everything in the tree understands $(get_libdir), the only sane
+# default for this is lib.
+CONF_LIBDIR="${CONF_LIBDIR:=lib}"
+ARCH_WRAPPER="linux32"
+CC32="gcc32"
+CPP32="g++32"
+
+
+setup_multilib_variables() {
+       # if run via linux32, uname -m will always return i686
+       if [ "$(uname -m)" == "i686" ] ; then
+               CONF_LIBDIR="${CONF_MULTILIBDIR:=lib32}"
+               CHOST="${CHOST32:=i686-pc-linux-gnu}"
+
+               if [ -x /usr/bin/${CC32:=gcc32} ] ; then
+                       CC="${CC32:=gcc32}"
+                       CPP="${CPP32:=g++32}"
+               else
+                       CFLAGS="${CFLAGS} -m32"
+                       CXXFLAGS="${CXXFLAGS} -m32"
+               fi
+       else
+               # this isnt needed for profiles that set CONF_LIBDIR, but it
+               # doesnt hurt to be safe.
+               CONF_LIBDIR="${CONF_LIBDIR:=lib64}"
+       fi
+
+       export CONF_LIBDIR
+}
+
+[ "${CCHOST}" == "" -o "${CCHOST}" == "${CHOST}" -o "${CCHOST}" == "${CHOST32}" ] && setup_multilib_variables
+[ "${CONF_MULTILIBDIR}" == "lib" -a "${CONF_LIBDIR}" == "lib64" ] && SKIP_MULTILIB_HACK="YES"
+
+
+# spec switching support only available in gcc 3.4.2-r1 and later
+if [ -n "${USE_SPECS}" ] ; then
+       GCC_VER="$(${CC:=gcc} -dumpversion)"
+       SPECSLOC="/usr/lib/gcc-lib/${CHOST}/${GCC_VER}/"
+       if [ -f ${SPECSLOC}/${USE_SPECS}.specs ] ; then
+               export GCC_SPECS="${SPECSLOC}/${USE_SPECS}.specs"
+       fi
+fi
+
index f0bc6afe459f0c0409173346386f454d04a1a6c1..b7328061f503450305ad9b7a0eae0547e334422c 100644 (file)
@@ -24,51 +24,3 @@ elif [ -f /dev/null ] ; then
        eerror "/dev/null is a normal file! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876"
        exit 1
 fi
-
-
-# currently theoretical multilib stuff only available if using portage 2.0.51
-CHOST32="i686-pc-linux-gnu"
-CONF_MULTILIBDIR="${CONF_MULTILIBDIR:=lib32}"
-# until everything in the tree understands $(get_libdir), the only sane
-# default for this is lib.
-CONF_LIBDIR="${CONF_LIBDIR:=lib}"
-ARCH_WRAPPER="linux32"
-CC32="gcc32"
-CPP32="g++32"
-
-
-setup_multilib_variables() {
-       # if run via linux32, uname -m will always return i686
-       if [ "$(uname -m)" == "i686" ] ; then
-               CONF_LIBDIR="${CONF_MULTILIBDIR:=lib32}"
-               CHOST="${CHOST32:=i686-pc-linux-gnu}"
-
-               if [ -x /usr/bin/${CC32:=gcc32} ] ; then
-                       CC="${CC32:=gcc32}"
-                       CPP="${CPP32:=g++32}"
-               else
-                       CFLAGS="${CFLAGS} -m32"
-                       CXXFLAGS="${CXXFLAGS} -m32"
-               fi
-       else
-               # this isnt needed for profiles that set CONF_LIBDIR, but it
-               # doesnt hurt to be safe.
-               CONF_LIBDIR="${CONF_LIBDIR:=lib64}"
-       fi
-
-       export CONF_LIBDIR
-}
-
-[ "${CCHOST}" == "" -o "${CCHOST}" == "${CHOST}" -o "${CCHOST}" == "${CHOST32}" ] && setup_multilib_variables
-[ "${CONF_MULTILIBDIR}" == "lib" -a "${CONF_LIBDIR}" == "lib64" ] && SKIP_MULTILIB_HACK="YES"
-
-
-# spec switching support only available in gcc 3.4.2-r1 and later
-if [ -n "${USE_SPECS}" ] ; then
-       GCC_VER="$(${CC:=gcc} -dumpversion)"
-       SPECSLOC="/usr/lib/gcc-lib/${CHOST}/${GCC_VER}/"
-       if [ -f ${SPECSLOC}/${USE_SPECS}.specs ] ; then
-               export GCC_SPECS="${SPECSLOC}/${USE_SPECS}.specs"
-       fi
-fi
-