CVS: moonbase/compilers/gcc/3.3 BUILD, NONE, 1.1 CONFIGURE, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1 POST_REMOVE, NONE, 1.1 PRE_BUILD, NONE, 1.1

elaine at lunar-linux.org elaine at lunar-linux.org
Fri Sep 5 03:47:03 GMT 2003


Update of /var/cvs/lunar/moonbase/compilers/gcc/3.3
In directory dbguin.lunar-linux.org:/tmp/cvs-serv2004/3.3

Added Files:
	BUILD CONFIGURE DETAILS POST_INSTALL POST_REMOVE PRE_BUILD 
Log Message:
Gcc 3.3 version module, useful only with hacked theege core code version


--- NEW FILE: BUILD ---
(

  # next line will aid in recognizing which languages were selected
  # so we output it here:
  set -x                                     &&
  LANGUAGES=${LANGUAGES:=c++}                &&
  ../gcc-$VERSION/configure  --host=$BUILD   \
               --enable-languages=$LANGUAGES \
               --prefix=/opt/lunar/gcc/3.3t   \
               --infodir=/opt/lunar/gcc/3.3t/share/info     \
               --mandir=/opt/lunar/gcc/3.3t/share/man       \
               --enable-__cxa_atexit         \
               --enable-threads              \
               --disable-nls                 \
               --enable-target-optspace      \
               --with-gnu-ld                 \
               --with-system-zlib            \
               --enable-static                \
               --disable-shared               &&
  set +x                                     &&
  sedit 's/= install-headers-tar/= install-headers-cpio/' gcc/Makefile  &&
  make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean                            &&
  prepare_install                            && 
  make install                               

) > $C_FIFO 2>&1


--- NEW FILE: CONFIGURE ---

# only lin -r gcc will trigger the language selector!
if [ -n "$RECONFIGURE" ] ; then

  if ! grep -q LANGUAGES $MODULE_CONFIG ; then
    [ -z "$LANGUAGES" ]  && LANGUAGES=${LANGUAGES:=c++}
  else
    eval $(echo $MODULE_CONFIG)
  fi

  if query "Do you want to select additional compiler languages ? " n ; then
    OPTIONS=(
      "f77"  "Fortran"      "off"
      "java" "Java"         "off"
      "objc" "Objective C"  "off"
    )
    RESULT=`dialog --title "Select additional compiler languages"   \
                   --stdout                                         \
                   --separate-output                                \
                   --checklist  "Available additional languages:"   \
                    0 0 0                                           \
                   "${OPTIONS[@]}"`

    LANGUAGES="c++,$(echo $RESULT | sed 's/ /,/g')"
    echo "LANGUAGES=\"$LANGUAGES\"" >> $MODULE_CONFIG 

  else

    if ! grep -q LANGUAGES $MODULE_CONFIG ; then
      [ -z "$LANGUAGES" ]  && LANGUAGES=${LANGUAGES:=c++}
      echo "LANGUAGES=\"$LANGUAGES\"" >> $MODULE_CONFIG
    fi

  fi

fi


--- NEW FILE: DETAILS ---
          MODULE=gcc/3.3
         VERSION=3.3
        #VERSION=3.2.3
          SOURCE=gcc-$VERSION.tar.bz2
        #SOURCE2=gcc-3.2-glibc-2.3-compat.diff
        #SOURCE3=gcc.cpio.install.patch
SOURCE_DIRECTORY=$BUILD_DIRECTORY/gcc-$VERSION-BUILD
   SOURCE_URL[0]=$GNU_URL/gcc/$MODULE-$VERSION/$SOURCE
   SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/gcc/$MODULE-$VERSION/$SOURCE
 #SOURCE2_URL[0]=http://www.haible.de/bruno/$SOURCE2
 #SOURCE3_URL[0]=http://cache.fwsystems.com/files/data/$SOURCE3
 #SOURCE3_URL[1]=http://www.lunar-linux.com/lunar/mirrors/$SOURCE3
        WEB_SITE=http://gcc.gnu.org
         ENTERED=20020628
         UPDATED=20030425
           SHORT="gcc is the GNU compiler collection."
           PSAFE=no
cat << EOF
gcc - GNU Compiler Collection.
The GNU Compiler Collection is a suite of compilers that compile C, C++,
Objective C, Fortran, Java, and CHILL for a wide variety of
architectures. Front-ends for Ada95 and Pascal also exist. 
EOF

--- NEW FILE: POST_INSTALL ---

cd /usr/lib/gcc-lib/$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                                                       &&

rm_source_dir /usr/src/gcc-$VERSION-BUILD                &&
rm_source_dir /usr/src/gcc-$VERSION                      &&

ldconfig


--- NEW FILE: POST_REMOVE ---
install-info  --delete chill  --info-dir /usr/share/info
install-info  --delete cpp    --info-dir /usr/share/info
install-info  --delete g77    --info-dir /usr/share/info
install-info  --delete gcc    --info-dir /usr/share/info

--- NEW FILE: PRE_BUILD ---
# this way lin can restart on broken compiles without problems:
mk_source_dir /usr/src/gcc-$VERSION
mk_source_dir /usr/src/gcc-$VERSION-BUILD
unpack $SOURCE

#cd gcc-$VERSION
#patch -p1 < $SOURCE_CACHE/$SOURCE2
#patch -p1 < $SOURCE_CACHE/$SOURCE3
#cd ..




More information about the Lunar-commits mailing list