[Lunar-commits] CVS: brutus/removed-modules/gcc/3.3.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

Florin Braescu florin at lunar-linux.org
Fri Aug 13 15:04:49 GMT 2004


Update of /var/cvs/lunar/brutus/removed-modules/gcc/3.3.2
In directory dbguin.lunar-linux.org:/tmp/cvs-serv16079/3.3.2

Added Files:
	BUILD CONFIGURE DETAILS POST_INSTALL POST_REMOVE PRE_BUILD 
Log Message:
moved the old versions from moonbase


--- 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/$VERSION   \
               --infodir=/opt/lunar/gcc/$VERSION/share/info     \
               --mandir=/opt/lunar/gcc/$VERSION/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 -j 3 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.2
         VERSION=3.3.2
          SOURCE=gcc-$VERSION.tar.bz2
      SOURCE_VFY=md5:65999f654102f5438ac8562d13a6eced
SOURCE_DIRECTORY=$BUILD_DIRECTORY/gcc-$VERSION-BUILD
   SOURCE_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE
   SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$VERSION/$SOURCE
        WEB_SITE=http://gcc.gnu.org
         ENTERED=20031022
         UPDATED=20031022
           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 /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 /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