[Lunar-commits] <moonbase-core> gcc: 4.8 and major cleanup

v4hn me at v4hn.de
Sun May 5 00:19:32 CEST 2013


commit 87d08297887911f7cdc74690703ea0232debde84
Author: v4hn <me at v4hn.de>
Date: Sat, 04 May 2013 05:06:35 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/87d08297887911f7cdc74690703ea0232debde84

gcc: 4.8 and major cleanup
---
  compilers/gcc/BUILD            | +31/-41   
  compilers/gcc/BUILD.x86_64     | +0/-53    
  compilers/gcc/CONFIGURE        | +0/-1     
  compilers/gcc/DETAILS          | +3/-3     
  compilers/gcc/PRE_BUILD.x86_64 | +2/-0     
  5 files changed, 36 insertions(+), 98 deletions(-)

--- a/compilers/gcc/BUILD
+++ b/compilers/gcc/BUILD
@@ -1,51 +1,41 @@
-(
+# move libstdc++.so.*-gdb.py to libexec dir
+patch_it $SOURCE2 1 &&
 
-  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
+# installwatch fails to track files installed using tar
+sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build &&
 
-  # This will fix an issue where installwatch fail to track installed headers
-  sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build &&
+# We use libiberty.a from binutils instead
+sedit 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in  &&
 
-  mkdir BUILD  &&
-  cd BUILD     &&
+#sedit 's/trap 0/trap "" 0/' configure  &&
 
-  #sedit 's/trap 0/trap "" 0/' ../configure  &&
-  # We use libiberty.a from binutils instead
-  sedit 's/install_to_$(INSTALL_DEST) //' ../libiberty/Makefile.in  &&
+mkdir BUILD  &&
+cd BUILD     &&
 
-  LANGUAGES="${LANGUAGES:=c++}"  &&
+LANGUAGES="${LANGUAGES:=c++}"  &&
 
-  ../configure --build=$BUILD                         \
-               --host=$BUILD                          \
-               --enable-languages=$LANGUAGES          \
-               --prefix=${MODULE_PREFIX}              \
-               --infodir=${MODULE_PREFIX}/share/info  \
-               --mandir=${MODULE_PREFIX}/share/man    \
-               --enable-__cxa_atexit                  \
-               --enable-threads                       \
-               --disable-nls                          \
-               --enable-target-optspace               \
-               --with-gnu-ld                          \
-               --with-system-zlib                     \
-               --enable-shared                        \
-               $OPTS                                 &&
+../configure --build=$BUILD                         \
+             --host=$BUILD                          \
+             --enable-languages=$LANGUAGES          \
+             --prefix=${MODULE_PREFIX}              \
+             --infodir=${MODULE_PREFIX}/share/info  \
+             --mandir=${MODULE_PREFIX}/share/man    \
+             --enable-__cxa_atexit                  \
+             --enable-threads                       \
+             --disable-nls                          \
+             --enable-target-optspace               \
+             --with-gnu-ld                          \
+             --with-system-zlib                     \
+             --enable-shared                        \
+             $OPTS                                 &&
 
-  make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean  &&
-  prepare_install  &&
-  make install &&
+make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean  &&
+prepare_install  &&
+make install &&
 
-# This used to be the POST_INSTALL and it really should not have. Doing this sort of thing means
-# these files will not be tracked; that is a no-no-no.
-
-  cd /usr/lib/gcc/$BUILD/$VERSION  &&
-  ln    -sf /usr/bin/cpp cpp       &&
-  cd /lib/                         &&
-  ln    -sf /usr/bin/cpp cpp       &&
-
-  if [ ! -e /usr/bin/cc ] ; then
-  ln -s gcc /usr/bin/cc
-  fi  &&
+ln -sf /usr/bin/cpp /usr/lib/gcc/$BUILD/$VERSION/cpp &&
+ln -sf /usr/bin/cpp /lib/cpp                         &&
+ln -sf gcc          /usr/bin/cc                      &&
 
 # remove the offending broken freetype link
-  rm -f $MODULE_PREFIX/lib/gcc/$BUILD/$VERSION/include-fixed/freetype
-
-) > $C_FIFO 2>&1
+rm -f $MODULE_PREFIX/lib/gcc/$BUILD/$VERSION/include-fixed/freetype
--- a/compilers/gcc/BUILD.x86_64
+++ /dev/null
@@ -1,53 +0,0 @@
-(
-
-  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
-
-  # This will fix an issue where installwatch fail to track installed headers
-  sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build &&
-
-
-  mkdir BUILD  &&
-  cd BUILD     &&
-
-  #sedit 's/trap 0/trap "" 0/' ../configure  &&
-  # We use libiberty.a from binutils instead
-  sedit 's/install_to_$(INSTALL_DEST) //' ../libiberty/Makefile.in  &&
-
-  LANGUAGES=${LANGUAGES:=c++}  &&
-
-  ../configure --host=$BUILD                          \
-               --build=$BUILD                         \
-               --enable-languages=$LANGUAGES          \
-               --prefix=${MODULE_PREFIX}              \
-               --infodir=${MODULE_PREFIX}/share/info  \
-               --mandir=${MODULE_PREFIX}/share/man    \
-               --enable-__cxa_atexit                  \
-               --enable-threads                       \
-               --disable-nls                          \
-               --enable-target-optspace               \
-               --with-gnu-ld                          \
-               --with-system-zlib                     \
-               --enable-shared                        \
-               --disable-multilib                     \
-               $OPTS                                 &&
-
-  make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean  &&
-  prepare_install  &&
-  make install &&
-
-# This used to be the POST_INSTALL and it really should not have. Doing this sort of thing means
-# these files will not be tracked; that is a no-no-no.
-
-  cd /usr/lib/gcc/$BUILD/$VERSION  &&
-  ln    -sf /usr/bin/cpp cpp       &&
-  cd /lib/                         &&
-  ln    -sf /usr/bin/cpp cpp       &&
-
-  if [ ! -e /usr/bin/cc ] ; then
-  ln -s gcc /usr/bin/cc
-  fi  &&
-
-# remove the offending freetype broken link
-  rm -f $MODULE_PREFIX/lib/gcc/$BUILD/$VERSION/include-fixed/freetype
-
-) > $C_FIFO 2>&1
--- a/compilers/gcc/CONFIGURE
+++ b/compilers/gcc/CONFIGURE
@@ -1,4 +1,3 @@
-
 # only lin -r gcc will trigger the language selector!
 if [ -n "$RECONFIGURE" ] ; then
 
--- a/compilers/gcc/DETAILS
+++ b/compilers/gcc/DETAILS
@@ -1,16 +1,16 @@
           MODULE=gcc
-         VERSION=4.7.3
+         VERSION=4.8.0
           SOURCE=$MODULE-$VERSION.tar.bz2
          SOURCE2=$MODULE-4.5.0-python.patch.bz2
    SOURCE_URL[0]=$GNU_URL/gcc/$MODULE-$VERSION
    SOURCE_URL[1]=ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION
    SOURCE_URL[2]=http://www.online-mirror.org/gcc/$MODULE-$VERSION
      SOURCE2_URL=$PATCH_URL
-      SOURCE_VFY=sha1:69e02737bd6e1a7c6047d801600d39c32b9427ca
+      SOURCE_VFY=sha1:b4ee6e9bdebc65223f95067d0cc1a634b59dad72
      SOURCE2_VFY=sha1:7c1fc0b526b74cce301b85acee04011ed6e5aa5a
         WEB_SITE=http://gcc.gnu.org
          ENTERED=20020628
-         UPDATED=20130414
+         UPDATED=20130403
            SHORT="GNU compiler collection"
 
 cat << EOF
--- /dev/null
+++ b/compilers/gcc/PRE_BUILD.x86_64
@@ -0,0 +1,2 @@
+OPTS+=" --disable-multilib" &&
+default_pre_build




More information about the Lunar-commits mailing list