Show
Ignore:
Timestamp:
09/10/08 23:12:05 (4 months ago)
Author:
codehelp
Message:

emdebuild should have/pass along more dpkg-buildpackage options
(Closes: #497816) - add -- support to emdebuild and pass-down support
to calling scripts.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • current/host/trunk/emdebian-tools/trunk/pbuilder/empdebuild

    r4931 r4933  
    5959--save-after-login:   Allow changes made within the chroot login to persist. 
    6060--login-after-fail:   In case of error, try to log in to the new chroot. 
     61-- OPTIONS            dpkg-buildpackage options 
     62                       (except: -uc -us [default] -a [ignored]) 
    6163 
    6264Although based on pbuilder, empdebuild cannot support the full range of 
     
    7274can use 'empdebuild --autobuild PACKAGE' to ensure that the patches are 
    7375usable for the autobuilder. 
     76 
     77Options to dpkg-buildpackage can be specified after the -- option. 
     78Note that '-uc' and '-us' are set by default and '-a' will be ignored 
     79(because arch is controlled separately). Options are passed down to 
     80emdebuild unchanged. 
    7481 
    7582EOF 
     
    246253                exit 1; 
    247254        fi 
    248         if echo "$COLOUR ARCH=$ARCH emsource -q -a $ARCH -b --build-dep $PACKAGE" | chroot $BUILDPLACE /bin/sh; then 
     255        if echo "$COLOUR ARCH=$ARCH emsource -q -a $ARCH -b --build-dep $PACKAGE $EM_DPKG_OPTS" | chroot $BUILDPLACE /bin/sh; then 
    249256        : 
    250257        else 
     
    414421        echo " -> copying ../$OLDSRC" 
    415422        cp -r "../$OLDSRC" "$BUILDPLACE/trunk/$TRUNK" 
    416         echo "Running emdebuild -a $ARCH: " 
     423        echo "Running emdebuild -a $ARCH $EM_DPKG_OPTS " 
    417424        COLOUR= 
    418425        if [ $ANSI_COLORS_DISABLED ]; then 
    419426                COLOUR=ANSI_COLORS_DISABLED=1 
    420427        fi 
    421         if echo "cd /trunk/$SVN; $COLOUR ARCH=$ARCH emdebuild -a $ARCH" | chroot $BUILDPLACE /bin/sh; then 
     428        if echo "cd /trunk/$SVN; $COLOUR ARCH=$ARCH emdebuild -a $ARCH $EM_DPKG_OPTS" | chroot $BUILDPLACE /bin/sh; then 
    422429        : 
    423430        else 
     
    595602                exit; 
    596603        ;; 
     604        --) 
     605                while [ -n "$1" ] 
     606                do 
     607                        EM_DPKG_OPTS+="$1 " 
     608                        shift 
     609                done 
     610                break 
     611        ;; 
    597612        *) 
    598613                echo "Unrecognised option: $1" 
     
    603618esac 
    604619done 
    605