Changes between Version 34 and Version 35 of Linux/Ubuntu/Packages/CreatingPbuilderVariations


Ignore:
Timestamp:
21/02/09 05:43:17 (19 months ago)
Author:
tj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Linux/Ubuntu/Packages/CreatingPbuilderVariations

    v34 v35  
    1313  '''Note:''' The value assigned to BASE is processed by `dirname` so the last segment beginning with a forward-slash is stripped off. This means that to specify the build location `/home/all/pbuilder` it needs `BASE=/home/all/pbuilder/base`. The final `/base` will be stripped off before the calculated name of the TGZ is added. 
    1414 
    15   '''Note''' The ~/.pbuilderrc script was refined so it only applies custom settings when BUILD_TEST=1 is in the environment. This is to prevent it interfering with other pbuilder functions. 
     15  '''Note''' The ~/.pbuilderrc script was refined so it only applies custom settings when '''BUILD_TEST=1''' is in the environment. This is to prevent it interfering with other pbuilder functions. 
    1616 
    1717* Building of packages inside the chroot as a regular user rather than root. This can be important since some packages won't build correctly as root: 
     
    2222  '''Note:''' this won't create the user for pbuilder base packages that already exist. For those base packages the user will need to be added manually: 
    2323{{{ 
    24 sudo BUILD_TEST=1BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=amd64 pbuilder login --save-after-login 
     24sudo BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=amd64 pbuilder login --save-after-login 
    2525}}} 
    2626  Once at the chroot prompt issue the commands: 
     
    4040{{{ 
    4141# Create an environment for Ubuntu gutsy in the current directory 
    42 sudo BASE="$(pwd)/base" RELEASE=gutsy pbuilder create 
     42sudo BUILD_TEST=1 BASE="$(pwd)/base" RELEASE=gutsy pbuilder create 
    4343 
    4444# Create an environment for Debian sid 
    45 sudo RELEASE=sid pbuilder create 
     45sudo BUILD_TEST=1 RELEASE=sid pbuilder create 
    4646 
    4747# Create an environment for Ubuntu gutsy with the i386 architecture in a defined directory 
    48 sudo BASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 pbuilder create 
     48sudo BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 pbuilder create 
    4949 
    5050# Update an environment for Ubuntu gutsy in the current directory 
    51 sudo BASE="$(pwd)/base" RELEASE=gutsy pbuilder update 
     51sudo BUILD_TEST=1 BASE="$(pwd)/base" RELEASE=gutsy pbuilder update 
    5252 
    5353# Build a package using Ubuntu gutsy (same architecture as is running) 
    5454cd ${PACKAGE}-${VERSION} 
    55 BASE="$(pwd)/base" RELEASE=gutsy pdebuild 
     55BUILD_TEST=1 BASE="$(pwd)/base" RELEASE=gutsy pdebuild 
    5656 
    5757# Build a package using Ubuntu gutsy with i386 architecture in a defined directory 
    5858cd ${PACKAGE}-${VERSION} 
    59 BASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 linux32 pdebuild 
     59BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 linux32 pdebuild 
    6060 
    6161# Build a package specified by a .dsc file using Ubuntu hardy with i386 architecture in a defined directory 
    62 BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=i386 linux32 pbuilder build /home/all/SourceCode/kvm-72+dfsg-0ubuntu1~ppa1h.dsc 
     62BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=i386 linux32 pbuilder build /home/all/SourceCode/kvm-72+dfsg-0ubuntu1~ppa1h.dsc 
    6363}}} 
    6464== Dependencies on Local Packages ==