Changeset 572 in MondoRescue for branches/stable/tools/build2pkg


Ignore:
Timestamp:
May 24, 2006, 12:20:19 AM (18 years ago)
Author:
bcornec
Message:

gentoo build continued
mindi bug found due to a previous bug corrected (5.6 MB disks generated systematically):

  • when a disk less than 2.8 MB can be built, not enough modules are put on it to support SCSI cds (use of FLOPPY_MODS only). I added most CDROMs modules in order to support them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2pkg

    r568 r572  
    4848
    4949export pkg=""
     50echo "Working under $TOPBUILDDIR"
    5051cd $TOPBUILDDIR
    5152
     
    8687        fi
    8788        cd ..
    88     elif [  _"$dtype" = _"gentoo" ]; then
    89         echo "Gentoo"
     89    elif [  _"$dtype" = _"ebuild" ]; then
    9090        log=/tmp/$p-gentoo.log
    9191        ln -sf $src .
    92         tar xfz $src $pv/distributions/$ddir/$pv-r$TAG.ebuild
     92        tar xfz $src $pv/distributions/$ddir/$p-${VER}-r$TAG.ebuild
     93        if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then
     94            echo "Adding $TOPBUILDDIR/portage to /etc/make.conf"
     95            echo "PORTDIR_OVERLAY=\"$TOPBUILDDIR/portage\"" >> /etc/make.conf
     96        fi
    9397
    94         ebuild $pv/distributions/$ddir/$pv-r$TAG.ebuild
     98        mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$p
     99        mv $pv/distributions/$ddir/$p-${VER}-r$TAG.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p
     100        rm -rf $pv
     101
     102        cd ${TOPBUILDDIR}/portage/sys-apps/$p
     103        ebuild $p-${VER}-r$TAG.ebuild digest 2> $log 1> $log
    95104        if [ $? != 0 ]; then
    96105            cat $log
    97106            status=-1
    98107        fi
    99         rm -rf $pv
     108        ebuild $p-${VER}-r$TAG.ebuild unpack 2>> $log 1>> $log
     109        if [ $? != 0 ]; then
     110            cat $log
     111            status=-1
     112        fi
     113        ebuild $p-${VER}-r$TAG.ebuild compile 2>> $log 1>> $log
     114        if [ $? != 0 ]; then
     115            cat $log
     116            status=-1
     117        fi
     118        #ebuild $p-${VER}-r$TAG.ebuild install 2>> $log 1>> $log
     119        if [ $? != 0 ]; then
     120            cat $log
     121            status=-1
     122        fi
    100123    else
    101124        echo "Unknown"
Note: See TracChangeset for help on using the changeset viewer.