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

Jaime Buffery nestu at lunar-linux.org
Wed Sep 8 10:04:16 UTC 2004


Update of /var/cvs/lunar/moonbase/compilers/gcc/3.4.2
In directory espresso.lunar-linux.org:/tmp/cvs-serv11776/3.4.2

Added Files:
	BUILD CONFIGURE DETAILS POST_INSTALL POST_REMOVE PRE_BUILD 
Log Message:
Inicial import


--- NEW FILE: BUILD ---
(

  # next line will aid in recognizing which languages were selected
  # so we output it here:
  LANGUAGES=${LANGUAGES:=c++}                &&
  mkdir BUILD                                &&
  cd BUILD                                   &&
  ../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               &&
#  sedit 's/= install-headers-tar/= install-headers-cpio/' gcc/Makefile  &&
  make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean                            &&
  OLD_PATH=$PATH			     &&
  PATH=$PATH:/usr/src/gcc-{$VERSION}/BUILD/gcc    &&
  OLD_LD_PATH=$LD_LIBRARY_PATH		     &&
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/src/gcc-{$VERSION}/BUILD/old.libraries &&
  prepare_install                            && 
  make install  			     &&                             
  PATH=$OLD_PATH                             &&
  LD_LIBRARY_PATH=$OLD_LD_PATH
) > $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.2
          SOURCE=gcc-$VERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
      SOURCE_URL=ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.4.2/
      SOURCE_VFY=sha1:1f3fda2c8aa331ebc20bbe5020e658d4137be4fd
        WEB_SITE=http://gcc.gnu.org
         ENTERED=20020628
         UPDATED=20040908
           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 ---

if [ ! -d /usr/lib/gcc-lib/$BUILD/$VERSION ] ; then
  mkdir -p /usr/lib/gcc-lib/$BUILD/$VERSION
fi

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                                                       &&

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