Bug#398404: Update on pbuilder support for target distribution

Osamu Aoki osamu at debian.org
Sun Jun 29 13:43:51 UTC 2008


Hi,

I have been locally making modified pbuilder which supports all Ubuntu
and Debian.  It is getting some success.  Missing support of sarge in
cdebootstrap is a problem I found in this course.  

Now, everything happens under /var/cache/pbuilder/<mode> for
each --mode option.  

This should address: 373807 272354 

Unlike classic pbuilder, --mode option always upate apt-line (or entire
/etc/apt/*) contets overwriting with
 * /usr/share/pbuilder/<modename>/apt/*,
 * /etc/pbuilder/<modename>/apt/*,
 * ~/.pbuilder/<modename>/apt/*,
in this sequence.  If no <modename> configuration found,

As for pbuilderrc files under --mode option
 * /usr/share/pbuilder/pbuilderrc,  (common for all --mode)
 * /etc/pbuilder/<modename>/pbuilderrc,
 * ~/.pbuilder/<modename>/pbuilderrc,
are read but the <modename> directory based configurations ovride some setting.

(hook may need a bit more integration)

I needed to "dpkg -i ubuntu-keyring_2008.03.04_all.deb" and packahge
modification.  It know a bit of cleaning though.  I upload current one to

    http://people.debian.org/~osamu/package/

Here is how it works, e.g., hardy. (packages properly chacked by gnupg
all the time.)

 $ sudo pbuilder --mode hardy --create
I: Loading  /usr/share/pbuilder/pbuilderrc
I: Skipping /etc/pbuilder/hardy/pbuilderrc (not found)
I: Skipping /home/osamu/.pbuilder/hardy/pbuilderrc (not found)
Building the build environment
 -> running cdebootstrap to get hardy from http://archive.ubuntu.com/ubuntu/
/usr/bin/cdebootstrap
P: Retrieving Release
P: Retrieving Release.gpg
P: Validating Release
I: Good signature from "Ubuntu Archive Automatic Signing Key <ftpmaster at ubuntu.com>"
P: Parsing Release
P: Retrieving Packages.gz
P: Validating Packages.gz
P: Parsing Packages
P: Retrieving gcc-4.2-base
P: Validating gcc-4.2-base
P: Retrieving libgcc1
P: Validating libgcc1
P: Retrieving libc6
P: Validating libc6
P: Retrieving libstdc++6
P: Validating libstdc++6

 ... snip ...

O: Selecting previously deselected package dpkg.
O: dpkg: regarding .../dpkg_1.14.16.6ubuntu3_amd64.deb containing dpkg, pre-dependency problem:
O:  dpkg pre-depends on coreutils (>= 5.93-1)
O: dpkg: warning - ignoring pre-dependency problem !
O: dpkg: regarding .../dpkg_1.14.16.6ubuntu3_amd64.deb containing dpkg, pre-dependency problem:
O:  dpkg pre-depends on libc6 (>= 2.7-1)
O: dpkg: warning - ignoring pre-dependency problem !

 ... snip ...

O: Processing triggers for libc6 ...
O: ldconfig deferred processing now taking place
P: Deconfiguring helper cdebootstrap-helper-apt
O: (Reading database ... 8846 files and directories currently installed.)
O: Removing cdebootstrap-helper-apt ...
O: Purging configuration files for cdebootstrap-helper-apt ...
O: Reading package lists...
O: 
P: Deconfiguring helper cdebootstrap-helper-makedev
O: (Reading database ... 8845 files and directories currently installed.)
O: Removing cdebootstrap-helper-makedev ...
O: Purging configuration files for cdebootstrap-helper-makedev ...
P: Writing apt sources.list
P: Writing hosts
P: Writing resolv.conf
 -> debootstrap finished
 -> copying local configuration
  -> Installing apt-lines and other apt-directory contents
I: Loading  /usr/share/pbuilder/hardy/apt
`/usr/share/pbuilder/hardy/apt/preferences' -> `/var/cache/pbuilder/hardy/build//2459/etc/apt/preferences'
`/usr/share/pbuilder/hardy/apt/sources.list' -> `/var/cache/pbuilder/hardy/build//2459/etc/apt/sources.list'
I: Skipping /etc/pbuilder/hardy/apt (not found)
I: Skipping /home/osamu/.pbuilder/hardy/apt (not found)
I: ==== Using /etc/apt/sources.list          ====
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
I: ==== Using /etc/apt/preferences           ====
I: ==============================================
Refreshing the base.tgz 
 -> upgrading packages
 -> mounting /proc filesystem
 -> mounting /dev/pts filesystem
 -> policy-rc.d already exists
Get:1 http://archive.ubuntu.com hardy Release.gpg [191B]
Get:2 http://archive.ubuntu.com hardy Release [65.9kB]
Get:3 http://archive.ubuntu.com hardy/main Packages [1173kB]
Get:4 http://archive.ubuntu.com hardy/restricted Packages [6397B]                                                                          
Get:5 http://archive.ubuntu.com hardy/universe Packages [4257kB]                                                                           
Get:6 http://archive.ubuntu.com hardy/multiverse Packages [174kB]                                                                          
Fetched 5676kB in 26s (216kB/s)                                                                                                            
Reading package lists... Done
dpkg - warning: ignoring request to remove lilo which isn't installed.
Obtaining the cached apt archive contents
find: `/var/cache/pbuilder/hardy/aptcache/': No such file or directory
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
dpkg-dev is already the newest version.
apt is already the newest version.
The following extra packages will be installed:
  libcwidget3 libncursesw5 libsigc++-2.0-0c2a
Suggested packages:
  debtags tasksel libcwidget-dev
Recommended packages:
  aptitude-doc-en aptitude-doc libparse-debianchangelog-perl libgpmg1
The following NEW packages will be installed:
  aptitude libcwidget3 libncursesw5 libsigc++-2.0-0c2a
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.

 ... snip ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Copying back the cached apt archive contents
 -> new cache content libcwidget3_0.5.8-1ubuntu1_amd64.deb added
 -> new cache content aptitude_0.4.9-2ubuntu5_amd64.deb added
 -> new cache content libncursesw5_5.6+20071124-1ubuntu2_amd64.deb added
 -> new cache content libsigc++-2.0-0c2a_2.0.17-2ubuntu3_amd64.deb added
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> creating base tarball [/var/cache/pbuilder/hardy/base.tgz]
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/hardy/build//2459 and its subdirectories







More information about the Pbuilder-maint mailing list