X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fhv-install-1;h=db8b3338e360b7ab631f759ab9e918b2b64c4e54;hb=cf3d9a3b194a6578c881cdd4eb528398d4de2741;hp=5f00f8a5e59f655fb98ea85cbce2cfda3b082d65;hpb=19609cec14f0e747c491985785c4d714f7f654de;p=hvlinux.git diff --git a/stage2/hv-install-1 b/stage2/hv-install-1 index 5f00f8a..db8b333 100755 --- a/stage2/hv-install-1 +++ b/stage2/hv-install-1 @@ -1,39 +1,32 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -hvtrap_setup -source ../packages-list +source ../functions/main source /etc/profile -if [ "x${USER}" != "xroot" ]; then - echo "You must be the superuser to install hvlinux." - exit 1 -fi - +check_for_root_user init_log_file rscr mult "Performing pre-install" pre-install -ipkg -l "${PERL}-pass1" ${PERL} -ipkg -m noac ${KERNEL} +ipkg -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL} +ipkg -m acnb -j -l "${PERL}-pass1" ${PERL} ipkg -m noac ${MANPAGES} -ipkg ${EGLIBC} +ipkg ${GLIBC} +ipkg -m noac -s tzdata -c ${TZDATA} + rscr once "Adjusting toolchain" toolchain-adjust +rscr once "Creating temporary C++ toolchain hack" toolchain-hack-cpp-add rscr mult "Testing toolchain" toolchain-test export CC="gcc -isystem /usr/include" export CXX="g++ -isystem /usr/include" export LDFLAGS="-Wl,-rpath-link,/lib" -CPPFLAGS=-fexceptions \ - ipkg ${GMP} "--enable-cxx --enable-mpbsd" -ipkg ${MPFR} "--enable-shared --with-gmp=/usr" +ipkg ${GMP} "--enable-cxx" +ipkg ${MPFR} "--with-gmp=/usr" ipkg ${MPC} -CPPFLAGS=-fexceptions \ - ipkg ${PPL} "--enable-shared --disable-optimization" -ipkg ${CLOOG_PPL} "--enable-shared --with-gmp --with-ppl" +ipkg ${ISL} +ipkg ${CLOOG} "--with-isl=system" unset CC unset CXX @@ -42,21 +35,32 @@ unset LDFLAGS ipkg -m acnb ${ZLIB} ipkg ${BINUTILS} ipkg ${GCC} +rscr once "Deleting temporary C++ toolchain hack" toolchain-hack-cpp-remove rscr mult "Testing toolchain" toolchain-test ipkg ${SED} "--bindir=/bin" +ipkg ${LIBFFI} +ipkg ${PYTHON} "--enable-shared" +# Specify LIBFFI flags because pkg-config is not yet installed: +LIBFFI_CFLAGS="-I/usr/include" LIBFFI_LIBS="-L/usr/lib -lffi" ipkg ${GLIB} ipkg ${PKG_CONFIG} ipkg ${NCURSES} -ipkg ${UTIL_LINUX_NG} +ipkg ${UTIL_LINUX} ipkg ${E2FSPROGS} -ipkg ${COREUTILS} +ipkg -d source ${ICU} +ipkg -m noac ${GPTFDISK} + +FORCE_UNSAFE_CONFIGURE=1 ipkg -m acnb ${COREUTILS} "\ + --libexecdir=/usr/lib \ + --enable-no-install-program=kill,uptime" + ipkg -m noac ${IANA} ipkg ${MFOUR} -ipkg ${BISON} ipkg -m noac ${PROCPS} ipkg ${LIBTOOL} ipkg ${FLEX} +ipkg -m acnb -l "${PERL}-pass2" ${PERL} +ipkg -m acnb ${BISON} ipkg -m noac ${IPROUTE2} -ipkg -l "${PERL}-pass2" ${PERL} ipkg ${READLINE} ipkg ${AUTOCONF} ipkg ${AUTOMAKE}