Can't build dpkg: fails to get libselinux1-dev builddep
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prevu |
New
|
Undecided
|
Unassigned |
Bug Description
I can't explain why, but prevu isn't installing the libselinux1-dev builddep and so the build fails. Before I understood as much as I do now, I tried using prevu to build libselinux1, thinking that would fix it...but libselinux1 from natty depends on the version of dpkg in natty, so it's a circular dependency.
The thing is, the dpkg from natty depends on a version of libselinux1-dev that's much older than what's in Maverick. Prevu just isn't even trying to install libselinux1-dev into the chroot. Here's the log:
$ prevu dpkg
I: Building against currently running distro: maverick
Launchpad Fetcher: No distro version specified, assuming natty
dget: retrieving http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 1943 100 1943 0 0 879 0 0:00:02 0:00:02 --:--:-- 3438
dget: retrieving http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 5140k 100 5140k 0 0 359k 0 0:00:14 0:00:14 --:--:-- 587k
dpkg_1.
dscverify: dpkg_1.
gpg: Signature made Mon 14 Mar 2011 08:13:14 PM CDT using RSA key ID 21B2133D
gpg: Can't check signature: public key not found
Validation FAILED!!
gpgv: Signature made Mon 14 Mar 2011 08:13:14 PM CDT using RSA key ID 21B2133D
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./dpkg_
dpkg-source: info: extracting dpkg in dpkg-1.16.0~ubuntu4
dpkg-source: info: unpacking dpkg_1.
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
dch warning: new version (1.16.0~
the current version number (1.16.0~ubuntu4).
dch warning: your current directory has been renamed to:
../dpkg-
dch warning: no orig tarball found for the new version.
W: /home/me/
W: /home/me/
I: Building the build Environment
I: extracting base tarball [/var/cache/
I: creating local configuration
I: copying local configuration
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: Mounting /var/cache/
I: Mounting /var/cache/
I: Mounting /var/cache/
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
Reading package lists...
Building dependency tree...
Reading state information...
passwd is already the newest version.
The following extra packages will be installed:
debootstrap wget
Suggested packages:
pbuilder-uml gdebi-core cowdancer
Recommended packages:
fakeroot devscripts
The following NEW packages will be installed:
debootstrap pbuilder wget
Preconfiguring packages ...
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/700kB of archives.
After this operation, 2052kB of additional disk space will be used.
Selecting previously deselected package wget.
(Reading database ... 13249 files and directories currently installed.)
Unpacking wget (from .../wget_
Selecting previously deselected package debootstrap.
Unpacking debootstrap (from .../debootstrap
Selecting previously deselected package pbuilder.
Unpacking pbuilder (from .../pbuilder_
Setting up wget (1.12-1.1ubuntu3) ...
Setting up debootstrap (1.0.28ubuntu1~
Setting up pbuilder (0.198ubuntu2) ...
I: Setting DEBBUILDOPTS=
I: Setting DEBBUILDOPTS=
W: no hooks of type D found -- ignoring
ccache: failed to create /home/me/.ccache (No such file or directory)
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
-> Attempting to satisfy build-dependencies
-> Creating pbuilder-
Package: pbuilder-
Version: 0.invalid.0
Architecture: i386
Maintainer: Debian Pbuilder Team <email address hidden>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
This package was created automatically by pbuilder to satisfy the
build-dependencies of the package being currently built.
Depends: debhelper (>= 6.0.7), pkg-config, gettext (>= 0.18), po4a (>= 0.33.1), libncursesw5-dev, zlib1g-dev (>= 1:1.1.3-19.1), libbz2-dev, flex, libtimedate-perl, libio-string-perl
dpkg-deb: building package `pbuilder-
Selecting previously deselected package pbuilder-
(Reading database ... 13410 files and directories currently installed.)
Unpacking pbuilder-
dpkg: dependency problems prevent configuration of pbuilder-
pbuilder-
Package debhelper is not installed.
pbuilder-
Package pkg-config is not installed.
pbuilder-
Package gettext is not installed.
pbuilder-
Package po4a is not installed.
pbuilder-
Package libncursesw5-dev is not installed.
pbuilder-
Package zlib1g-dev is not installed.
pbuilder-
Package libbz2-dev is not installed.
pbuilder-
Package flex is not installed.
pbuilder-
Package libio-string-perl is not installed.
dpkg: error processing pbuilder-
dependency problems - leaving unconfigured
Errors were encountered while processing:
pbuilder-
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
The following NEW packages will be installed:
bsdmainutils{a} debhelper{a} flex{a} gettext{a} gettext-base{a}
groff-base{a} html2text{a} intltool-debian{a} libbz2-dev{a} libcroco3{a}
libio-
libunistring0{a} libxml2{a} m4{a} man-db{a} pkg-config{a} po-debconf{a}
po4a{a} sp{a} zlib1g-dev{a}
The following partially installed packages will be configured:
pbuilder-
0 packages upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/9658kB of archives. After unpacking 27.4MB will be used.
Writing extended state information...
Preconfiguring packages ...
Selecting previously deselected package html2text.
(Reading database ... 13410 files and directories currently installed.)
Unpacking html2text (from .../html2text_
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_
Selecting previously deselected package libcroco3.
Unpacking libcroco3 (from .../libcroco3_
Selecting previously deselected package libunistring0.
Unpacking libunistring0 (from .../libunistrin
Selecting previously deselected package gettext-base.
Unpacking gettext-base (from .../gettext-
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-
Selecting previously deselected package groff-base.
Unpacking groff-base (from .../groff-
Selecting previously deselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutil
Selecting previously deselected package man-db.
Unpacking man-db (from .../man-
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_
Selecting previously deselected package pkg-config.
Unpacking pkg-config (from .../pkg-
Selecting previously deselected package libsgmls-perl.
Unpacking libsgmls-perl (from .../libsgmls-
Selecting previously deselected package libsp1c2.
Unpacking libsp1c2 (from .../libsp1c2_
Selecting previously deselected package sp.
Unpacking sp (from .../sp_
Selecting previously deselected package po4a.
Unpacking po4a (from .../archives/
Selecting previously deselected package libncursesw5-dev.
Unpacking libncursesw5-dev (from .../libncursesw
Selecting previously deselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-
Selecting previously deselected package libbz2-dev.
Unpacking libbz2-dev (from .../libbz2-
Selecting previously deselected package m4.
Unpacking m4 (from .../archives/
Selecting previously deselected package flex.
Unpacking flex (from .../flex_
Selecting previously deselected package libio-string-perl.
Unpacking libio-string-perl (from .../libio-
Setting up html2text (1.3.2a-15) ...
Setting up libxml2 (2.7.7.
Setting up libcroco3 (0.6.2-1) ...
Setting up libunistring0 (0.9.3-1) ...
Setting up gettext-base (0.18.1.1-1ubuntu2) ...
Setting up gettext (0.18.1.1-1ubuntu2) ...
Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.16) ...
Setting up groff-base (1.20.1-10) ...
Setting up bsdmainutils (8.0.11ubuntu1) ...
update-
update-
Setting up man-db (2.5.7-4) ...
Building database of manual pages ...
Setting up debhelper (8.0.0ubuntu1) ...
Setting up pkg-config (0.25-1) ...
Setting up libsgmls-perl (1.03ii-32) ...
Setting up libsp1c2 (1.3.4-
Setting up sp (1.3.4-
Setting up po4a (0.40-1) ...
Setting up libncursesw5-dev (5.7+20100626-
Setting up zlib1g-dev (1:1.2.
Setting up libbz2-dev (1.0.5-4ubuntu1) ...
Setting up m4 (1.4.14-3) ...
Setting up flex (2.5.35-9.1) ...
Setting up libio-string-perl (1.08-2) ...
Setting up pbuilder-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
-> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
fakeroot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/118kB of archives.
After this operation, 451kB of additional disk space will be used.
Selecting previously deselected package fakeroot.
(Reading database ... 14979 files and directories currently installed.)
Unpacking fakeroot (from .../fakeroot_
Processing triggers for man-db ...
Setting up fakeroot (1.14.4-1ubuntu1) ...
update-
W: no hooks of type A found -- ignoring
I: Running /usr/bin/
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-
dpkg-buildpackage: source package dpkg
dpkg-buildpackage: source version 1.16.0~
dpkg-buildpackage: source changed by <email address hidden>
dpkg-source --before-build dpkg-1.
dpkg-buildpackage: host architecture i386
dpkg-source: info: using options from dpkg-1.
dpkg-checkbuild
dpkg-buildpackage: warning: Build dependencies/
dpkg-buildpackage: warning: (Use -d flag to override.)
W: no hooks of type C found -- ignoring
I: Copying back the cached apt archive contents
I: unmounting /var/cache/
I: unmounting /var/cache/
I: unmounting /var/cache/
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/
=======
Prevu Error: Build failed.
Prevu encountered an error performing your build. The actual
error message may be further up in the scrollback before pbuilder
exited. Please look for a failed dependency or compile error in
the full output.
I encountered this problem while trying to backport dpkg from oneiric.
It seems that the "[linux-any]" in debian/control is not being recognized properly by pbuilder.
I added the line:
PBUILDERSATISFY DEPENDSCMD= "/usr/lib/ pbuilder/ pbuilder- satisfydepends- classic"
in /etc/pbuilderrc and run prevu again and I saw the error:
-> Considering libselinux1-dev (>= 1.28-4) [linux-any]
-> This package is not for this architecture
This is fixed in the latest pbuilder package (see http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 363193).