[Lunar-commits] CVS: moonbase/compilers/gcc/3.4.1 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

Florin Braescu florin at lunar-linux.org
Sat Aug 14 07:35:57 GMT 2004


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

Added Files:
	BUILD CONFIGURE DETAILS POST_INSTALL POST_REMOVE PRE_BUILD 
Log Message:
add the 3.4.1 version of gcc to the moonbase.



--- NEW FILE: BUILD ---
(
  sedit 's/trap 0/trap "" 0/' ../gcc-$VERSION/configure &&

  # 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.4.1  \
               --infodir=/opt/lunar/gcc/3.4.1/share/info  \
               --mandir=/opt/lunar/gcc/3.4.1/share/man    \
               --enable-__cxa_atexit     \
               --enable-threads          \
               --disable-nls             \
               --enable-target-optspace  \
               --with-gnu-ld             \
               --with-system-zlib        \
               --enable-static           \
               --disable-shared         &&
  set +x                                &&
  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
         VERSION=3.4.1
          SOURCE=$MODULE-$VERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
   SOURCE_URL[0]=$GNU_URL/gcc/$MODULE-$VERSION/$SOURCE
   SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gcc/$SOURCE
   SOURCE_URL[2]=http://www.online-mirror.org/gcc/$SOURCE
      SOURCE_VFY=md5:31b459062499f9f68d451db9cbf3205c
        WEB_SITE=http://gcc.gnu.org
         ENTERED=20020628
         UPDATED=20040814
         PSAFE=no
           SHORT="gcc is the GNU compiler collection."

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 /opt/lunar/gcc/$VERSION/lib/gcc-lib/$BUILD/$VERSION  &&
ln    -sf /opt/lunar/gcc/$VERSION/bin/cpp cpp           &&
cd /lib/                                                &&
ln    -sf /opt/lunar/gcc/$VERSION/bin/cpp cpp           && 

if [ ! -e /opt/lunar/gcc/$VERSION/bin/cc ] ; then
  ln -s gcc /opt/lunar/gcc/$VERSION/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 /opt/lunar/gcc/3.4.1/share/info
install-info  --delete cpp    --info-dir /opt/lunar/gcc/3.4.1/share/info
install-info  --delete g77    --info-dir /opt/lunar/gcc/3.4.1/share/info
install-info  --delete gcc    --info-dir /opt/lunar/gcc/3.4.1/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



More information about the Lunar-commits mailing list