Can't build dpkg: fails to get libselinux1-dev builddep

Bug #737566 reported by Adam Porter
14
This bug affects 3 people
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://launchpad.net/ubuntu/natty/+source/dpkg/1.16.0~ubuntu4/+files/dpkg_1.16.0~ubuntu4.dsc
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 1943 100 1943 0 0 879 0 0:00:02 0:00:02 --:--:-- 3438
dget: retrieving http://launchpad.net/ubuntu/natty/+source/dpkg/1.16.0~ubuntu4/+files/dpkg_1.16.0~ubuntu4.tar.bz2
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 5140k 100 5140k 0 0 359k 0 0:00:14 0:00:14 --:--:-- 587k
dpkg_1.16.0~ubuntu4.dsc:
dscverify: dpkg_1.16.0~ubuntu4.dsc failed signature check:
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_1.16.0~ubuntu4.dsc
dpkg-source: info: extracting dpkg in dpkg-1.16.0~ubuntu4
dpkg-source: info: unpacking dpkg_1.16.0~ubuntu4.tar.bz2
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~ubuntu4~10.10prevu1) is less than
the current version number (1.16.0~ubuntu4).
dch warning: your current directory has been renamed to:
../dpkg-1.16.0~ubuntu4~10.10prevu1
dch warning: no orig tarball found for the new version.
W: /home/me/.pbuilderrc does not exist
W: /home/me/.pbuilderrc does not exist
I: Building the build Environment
I: extracting base tarball [/var/cache/prevu/maverick.tgz]
I: creating local configuration
I: copying local configuration
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: Mounting /var/cache/pbuilder/ccache
I: Mounting /var/cache/prevu/maverick-debs
I: Mounting /var/cache/prevu/src/21651
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_1.12-1.1ubuntu3_i386.deb) ...
Selecting previously deselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.28ubuntu1~maverick1_all.deb) ...
Selecting previously deselected package pbuilder.
Unpacking pbuilder (from .../pbuilder_0.198ubuntu2_all.deb) ...
Setting up wget (1.12-1.1ubuntu3) ...
Setting up debootstrap (1.0.28ubuntu1~maverick1) ...
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-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
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-satisfydepends-dummy' in `/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously deselected package pbuilder-satisfydepends-dummy.
(Reading database ... 13410 files and directories currently installed.)
Unpacking pbuilder-satisfydepends-dummy (from .../pbuilder-satisfydepends-dummy.deb) ...
dpkg: dependency problems prevent configuration of pbuilder-satisfydepends-dummy:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 6.0.7); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on pkg-config; however:
  Package pkg-config is not installed.
 pbuilder-satisfydepends-dummy depends on gettext (>= 0.18); however:
  Package gettext is not installed.
 pbuilder-satisfydepends-dummy depends on po4a (>= 0.33.1); however:
  Package po4a is not installed.
 pbuilder-satisfydepends-dummy depends on libncursesw5-dev; however:
  Package libncursesw5-dev is not installed.
 pbuilder-satisfydepends-dummy depends on zlib1g-dev (>= 1:1.1.3-19.1); however:
  Package zlib1g-dev is not installed.
 pbuilder-satisfydepends-dummy depends on libbz2-dev; however:
  Package libbz2-dev is not installed.
 pbuilder-satisfydepends-dummy depends on flex; however:
  Package flex is not installed.
 pbuilder-satisfydepends-dummy depends on libio-string-perl; however:
  Package libio-string-perl is not installed.
dpkg: error processing pbuilder-satisfydepends-dummy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pbuilder-satisfydepends-dummy
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-string-perl{a} libncursesw5-dev{a} libsgmls-perl{a} libsp1c2{a}
  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-satisfydepends-dummy
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_1.3.2a-15_i386.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.7.dfsg-4ubuntu0.1_i386.deb) ...
Selecting previously deselected package libcroco3.
Unpacking libcroco3 (from .../libcroco3_0.6.2-1_i386.deb) ...
Selecting previously deselected package libunistring0.
Unpacking libunistring0 (from .../libunistring0_0.9.3-1_i386.deb) ...
Selecting previously deselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.18.1.1-1ubuntu2_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.18.1.1-1ubuntu2_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.16_all.deb) ...
Selecting previously deselected package groff-base.
Unpacking groff-base (from .../groff-base_1.20.1-10_i386.deb) ...
Selecting previously deselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutils_8.0.11ubuntu1_i386.deb) ...
Selecting previously deselected package man-db.
Unpacking man-db (from .../man-db_2.5.7-4_i386.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_8.0.0ubuntu1_all.deb) ...
Selecting previously deselected package pkg-config.
Unpacking pkg-config (from .../pkg-config_0.25-1_i386.deb) ...
Selecting previously deselected package libsgmls-perl.
Unpacking libsgmls-perl (from .../libsgmls-perl_1.03ii-32_all.deb) ...
Selecting previously deselected package libsp1c2.
Unpacking libsp1c2 (from .../libsp1c2_1.3.4-1.2.1-47build3_i386.deb) ...
Selecting previously deselected package sp.
Unpacking sp (from .../sp_1.3.4-1.2.1-47build3_i386.deb) ...
Selecting previously deselected package po4a.
Unpacking po4a (from .../archives/po4a_0.40-1_all.deb) ...
Selecting previously deselected package libncursesw5-dev.
Unpacking libncursesw5-dev (from .../libncursesw5-dev_5.7+20100626-0ubuntu1_i386.deb) ...
Selecting previously deselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu1_i386.deb) ...
Selecting previously deselected package libbz2-dev.
Unpacking libbz2-dev (from .../libbz2-dev_1.0.5-4ubuntu1_i386.deb) ...
Selecting previously deselected package m4.
Unpacking m4 (from .../archives/m4_1.4.14-3_i386.deb) ...
Selecting previously deselected package flex.
Unpacking flex (from .../flex_2.5.35-9.1_i386.deb) ...
Selecting previously deselected package libio-string-perl.
Unpacking libio-string-perl (from .../libio-string-perl_1.08-2_all.deb) ...
Setting up html2text (1.3.2a-15) ...
Setting up libxml2 (2.7.7.dfsg-4ubuntu0.1) ...
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-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode.
update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode.
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-1.2.1-47build3) ...
Setting up sp (1.3.4-1.2.1-47build3) ...
Setting up po4a (0.40-1) ...
Setting up libncursesw5-dev (5.7+20100626-0ubuntu1) ...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu1) ...
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-satisfydepends-dummy (0.invalid.0) ...
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_1.14.4-1ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up fakeroot (1.14.4-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
W: no hooks of type A found -- ignoring
I: Running /usr/bin/dpkg-buildpackage -rfakeroot -us -uc ${DEBBUILDOPTS}
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-functions
dpkg-buildpackage: source package dpkg
dpkg-buildpackage: source version 1.16.0~ubuntu4~10.10prevu1
dpkg-buildpackage: source changed by <email address hidden>
 dpkg-source --before-build dpkg-1.16.0~ubuntu4~10.10prevu1
dpkg-buildpackage: host architecture i386
dpkg-source: info: using options from dpkg-1.16.0~ubuntu4~10.10prevu1/debian/source/options: --compression=bzip2
dpkg-checkbuilddeps: Unmet build dependencies: libselinux1-dev (>= 1.28-4)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
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/prevu/src/21651 filesystem
I: unmounting /var/cache/prevu/maverick-debs filesystem
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/prevu/builds/21752 and its subdirectories
========================
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.

Revision history for this message
Michael Tinsay (tinsami1) wrote :

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:

PBUILDERSATISFYDEPENDSCMD="/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).

Revision history for this message
Michael Tinsay (tinsami1) wrote :

As a workaround

1. I downloaded the dpkg source tarball and .dsc
2. extracted/untarred the .tar.bz file
3. edited debian/control and removed the "[linux-any]" entry
4. created a new .tar.bz2 file
5. edited the sha1, sha256, md5 checksum and file size in the .dsc file
6. ran prevu

prevu completed successfully.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.