Changes between Version 34 and Version 35 of Linux/Ubuntu/Packages/CreatingPbuilderVariations
- Timestamp:
- 21/02/09 05:43:17 (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Linux/Ubuntu/Packages/CreatingPbuilderVariations
v34 v35 13 13 '''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. 14 14 15 '''Note''' The ~/.pbuilderrc script was refined so it only applies custom settings when BUILD_TEST=1is 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. 16 16 17 17 * 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: … … 22 22 '''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: 23 23 {{{ 24 sudo BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=amd64 pbuilder login --save-after-login24 sudo BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=amd64 pbuilder login --save-after-login 25 25 }}} 26 26 Once at the chroot prompt issue the commands: … … 40 40 {{{ 41 41 # Create an environment for Ubuntu gutsy in the current directory 42 sudo B ASE="$(pwd)/base" RELEASE=gutsy pbuilder create42 sudo BUILD_TEST=1 BASE="$(pwd)/base" RELEASE=gutsy pbuilder create 43 43 44 44 # Create an environment for Debian sid 45 sudo RELEASE=sid pbuilder create45 sudo BUILD_TEST=1 RELEASE=sid pbuilder create 46 46 47 47 # Create an environment for Ubuntu gutsy with the i386 architecture in a defined directory 48 sudo B ASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 pbuilder create48 sudo BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 pbuilder create 49 49 50 50 # Update an environment for Ubuntu gutsy in the current directory 51 sudo B ASE="$(pwd)/base" RELEASE=gutsy pbuilder update51 sudo BUILD_TEST=1 BASE="$(pwd)/base" RELEASE=gutsy pbuilder update 52 52 53 53 # Build a package using Ubuntu gutsy (same architecture as is running) 54 54 cd ${PACKAGE}-${VERSION} 55 B ASE="$(pwd)/base" RELEASE=gutsy pdebuild55 BUILD_TEST=1 BASE="$(pwd)/base" RELEASE=gutsy pdebuild 56 56 57 57 # Build a package using Ubuntu gutsy with i386 architecture in a defined directory 58 58 cd ${PACKAGE}-${VERSION} 59 B ASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 linux32 pdebuild59 BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=gutsy ARCH=i386 linux32 pdebuild 60 60 61 61 # Build a package specified by a .dsc file using Ubuntu hardy with i386 architecture in a defined directory 62 B ASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=i386 linux32 pbuilder build /home/all/SourceCode/kvm-72+dfsg-0ubuntu1~ppa1h.dsc62 BUILD_TEST=1 BASE="/home/all/pbuilder/base" RELEASE=hardy ARCH=i386 linux32 pbuilder build /home/all/SourceCode/kvm-72+dfsg-0ubuntu1~ppa1h.dsc 63 63 }}} 64 64 == Dependencies on Local Packages ==
