[Lunar-commits] CVS: moonbase/compilers/gcc/3.4.3 BUILD, NONE, 1.1 CONFIGURE, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1 POST_REMOVE, NONE, 1.1

Florin Braescu florin at lunar-linux.org
Sat Nov 6 23:05:27 UTC 2004


Update of /var/cvs/lunar/moonbase/compilers/gcc/3.4.3
In directory espresso.foo-projects.org:/tmp/cvs-serv3764/compilers/gcc/3.4.3

Added Files:
	BUILD CONFIGURE DETAILS POST_INSTALL POST_REMOVE 
Log Message:
The 3.4.3 version of gcc is a bugfix release version.

--- NEW FILE: BUILD ---
(

  mkdir BUILD                                &&
  cd BUILD                                   &&

  sedit 's/trap 0/trap "" 0/' ../configure   &&

  LANGUAGES=${LANGUAGES:=c++}                &&
  ../configure --host=$BUILD                  \
               --enable-languages=$LANGUAGES  \
               --prefix=/usr                  \
               --infodir=/usr/share/info      \
               --mandir=/usr/share/man        \
               --enable-__cxa_atexit          \
               --enable-threads               \
               --disable-nls                  \
               --enable-target-optspace       \
               --with-gnu-ld                  \
               --with-system-zlib             \
               --enable-shared               &&

  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.3
          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=sha1:f20c691662831e8022c7f9588cbd6aeb9c40fd2a
        WEB_SITE=http://gcc.gnu.org
         ENTERED=20020628
         UPDATED=20041107
         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 /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                                         &&

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



More information about the Lunar-commits mailing list