Package: src:python-lockfile
Version: 1:0.10.2-2
Tags: patch
Usertags: origin-ubuntu ubuntu-patch wily

In some cases, is it possible to get FTBFS due to missing build dependencies python*-setuptools.

In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/Build-Depends on python*-setuptools to fix FTBFS.

We thought you might be interested in doing the same.
I: using fakeroot in build.
I: Current time: Wed Jun 24 19:53:03 CEST 2015
I: pbuilder-time-stamp: 1435168383
I: Building the build Environment
I: extracting base tarball [/home/ari/pbuilder/wily-base.tgz]
I: creating local configuration
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for 
details.
I: mounting /proc filesystem
I: mounting /run/shm filesystem
I: mounting /dev/pts filesystem
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <pbuilder-ma...@lists.alioth.debian.org>
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 (>= 9~), dh-python, python3-pbr, python3-nose, python3, 
python-pbr, python-nose, python
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in 
`/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 11718 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring 
anyway as you requested:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 9~); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on dh-python; however:
  Package dh-python is not installed.
 pbuilder-satisfydepends-dummy depends on python3-pbr; however:
  Package python3-pbr is not installed.
 pbuilder-satisfydepends-dummy depends on python3-nose; however:
  Package python3-nose is not installed.
 pbuilder-satisfydepends-dummy depends on python3; however:
  Package python3 is not installed.
 pbuilder-satisfydepends-dummy depends on python-pbr; however:
  Package python-pbr is not installed.
 pbuilder-satisfydepends-dummy depends on python-nose; however:
  Package python-nose is not installed.
 pbuilder-satisfydepends-dummy depends on python; however:
  Package python is not installed.

Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
Building tag database...
The following NEW packages will be installed:
  bsdmainutils{a} debhelper{a} dh-apparmor{a} dh-python{a} file{a} 
  gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} 
  libasprintf0c2{a} libcroco3{a} libexpat1{a} libffi6{a} libglib2.0-0{a} 
  libicu52{a} libmagic1{a} libmpdec2{a} libpipeline1{a} libpython-stdlib{a} 
  libpython2.7-minimal{a} libpython2.7-stdlib{a} libpython3-stdlib{a} 
  libpython3.4-minimal{a} libpython3.4-stdlib{a} libssl1.0.0{a} 
  libunistring0{a} libxml2{a} man-db{a} mime-support{a} po-debconf{a} 
  python{a} python-minimal{a} python-nose{a} python-pbr{a} 
  python-pkg-resources{a} python2.7{a} python2.7-minimal{a} python3{a} 
  python3-minimal{a} python3-nose{a} python3-pbr{a} 
  python3-pkg-resources{a} python3.4{a} python3.4-minimal{a} 
0 packages upgraded, 44 newly installed, 0 to remove and 0 not upgraded.
Need to get 3951 kB/23.2 MB of archives. After unpacking 93.7 MB will be used.
Writing extended state information...
Get: 1 http://archive.ubuntu.com/ubuntu/ wily/main libpython2.7-minimal amd64 
2.7.10-2 [338 kB]
Get: 2 http://archive.ubuntu.com/ubuntu/ wily/main python2.7-minimal amd64 
2.7.10-2 [1365 kB]
Get: 3 http://archive.ubuntu.com/ubuntu/ wily/main libpython2.7-stdlib amd64 
2.7.10-2 [1848 kB]
Get: 4 http://archive.ubuntu.com/ubuntu/ wily/main python2.7 amd64 2.7.10-2 
[210 kB]
Get: 5 http://archive.ubuntu.com/ubuntu/ wily/main python3-pbr all 
1.0.1-1ubuntu1 [33.0 kB]
Get: 6 http://archive.ubuntu.com/ubuntu/ wily/main python-pbr all 
1.0.1-1ubuntu1 [44.6 kB]
Get: 7 http://archive.ubuntu.com/ubuntu/ wily/main python-pkg-resources all 
17.0-1 [70.5 kB]
Get: 8 http://archive.ubuntu.com/ubuntu/ wily/main python3-pkg-resources all 
17.0-1 [41.0 kB]
Fetched 3951 kB in 13s (290 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or 
directory)
Selecting previously unselected package libexpat1:amd64.
(Reading database ... 11718 files and directories currently installed.)
Preparing to unpack .../libexpat1_2.1.0-6ubuntu1_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-6ubuntu1) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.2.1-2_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-2) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../libmpdec2_2.4.1-1_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.1-1) ...
Selecting previously unselected package libssl1.0.0:amd64.
Preparing to unpack .../libssl1.0.0_1.0.2c-1ubuntu1_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2c-1ubuntu1) ...
Selecting previously unselected package libpython3.4-minimal:amd64.
Preparing to unpack .../libpython3.4-minimal_3.4.3-7_amd64.deb ...
Unpacking libpython3.4-minimal:amd64 (3.4.3-7) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../mime-support_3.58ubuntu1_all.deb ...
Unpacking mime-support (3.58ubuntu1) ...
Selecting previously unselected package libpython3.4-stdlib:amd64.
Preparing to unpack .../libpython3.4-stdlib_3.4.3-7_amd64.deb ...
Unpacking libpython3.4-stdlib:amd64 (3.4.3-7) ...
Selecting previously unselected package python3.4-minimal.
Preparing to unpack .../python3.4-minimal_3.4.3-7_amd64.deb ...
Unpacking python3.4-minimal (3.4.3-7) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../python3-minimal_3.4.3-1_amd64.deb ...
Unpacking python3-minimal (3.4.3-1) ...
Selecting previously unselected package python3.4.
Preparing to unpack .../python3.4_3.4.3-7_amd64.deb ...
Unpacking python3.4 (3.4.3-7) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../libpython3-stdlib_3.4.3-1_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.4.3-1) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../dh-python_1.20141111-2ubuntu1_all.deb ...
Unpacking dh-python (1.20141111-2ubuntu1) ...
Setting up libssl1.0.0:amd64 (1.0.2c-1ubuntu1) ...
Setting up libpython3.4-minimal:amd64 (3.4.3-7) ...
Setting up libexpat1:amd64 (2.1.0-6ubuntu1) ...
Setting up python3.4-minimal (3.4.3-7) ...
Setting up python3-minimal (3.4.3-1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Selecting previously unselected package python3.
(Reading database ... 12680 files and directories currently installed.)
Preparing to unpack .../python3_3.4.3-1_amd64.deb ...
Unpacking python3 (3.4.3-1) ...
Selecting previously unselected package libasprintf0c2:amd64.
Preparing to unpack .../libasprintf0c2_0.19.4-1ubuntu1_amd64.deb ...
Unpacking libasprintf0c2:amd64 (0.19.4-1ubuntu1) ...
Selecting previously unselected package libpipeline1:amd64.
Preparing to unpack .../libpipeline1_1.4.0-1_amd64.deb ...
Unpacking libpipeline1:amd64 (1.4.0-1) ...
Selecting previously unselected package libicu52:amd64.
Preparing to unpack .../libicu52_52.1-9_amd64.deb ...
Unpacking libicu52:amd64 (52.1-9) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../libxml2_2.9.2+dfsg1-3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.2+dfsg1-3) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../groff-base_1.22.3-1_amd64.deb ...
Unpacking groff-base (1.22.3-1) ...
Selecting previously unselected package bsdmainutils.
Preparing to unpack .../bsdmainutils_9.0.6ubuntu1_amd64.deb ...
Unpacking bsdmainutils (9.0.6ubuntu1) ...
Selecting previously unselected package man-db.
Preparing to unpack .../man-db_2.7.0.2-5_amd64.deb ...
Unpacking man-db (2.7.0.2-5) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.45.2-1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.45.2-1) ...
Selecting previously unselected package libcroco3:amd64.
Preparing to unpack .../libcroco3_0.6.8-3_amd64.deb ...
Unpacking libcroco3:amd64 (0.6.8-3) ...
Selecting previously unselected package libunistring0:amd64.
Preparing to unpack .../libunistring0_0.9.3-5.2ubuntu1_amd64.deb ...
Unpacking libunistring0:amd64 (0.9.3-5.2ubuntu1) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../libpython2.7-minimal_2.7.10-2_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.10-2) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.10-2_amd64.deb ...
Unpacking python2.7-minimal (2.7.10-2) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.9-1_amd64.deb ...
Unpacking python-minimal (2.7.9-1) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.10-2_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.10-2) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.10-2_amd64.deb ...
Unpacking python2.7 (2.7.10-2) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.9-1_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.9-1) ...
Setting up libpython2.7-minimal:amd64 (2.7.10-2) ...
Setting up python2.7-minimal (2.7.10-2) ...
Setting up python-minimal (2.7.9-1) ...
Selecting previously unselected package python.
(Reading database ... 14016 files and directories currently installed.)
Preparing to unpack .../python_2.7.9-1_amd64.deb ...
Unpacking python (2.7.9-1) ...
Selecting previously unselected package python3-pbr.
Preparing to unpack .../python3-pbr_1.0.1-1ubuntu1_all.deb ...
Unpacking python3-pbr (1.0.1-1ubuntu1) ...
Selecting previously unselected package python-pbr.
Preparing to unpack .../python-pbr_1.0.1-1ubuntu1_all.deb ...
Unpacking python-pbr (1.0.1-1ubuntu1) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../libmagic1_1%3a5.22+15-2ubuntu1_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.22+15-2ubuntu1) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.22+15-2ubuntu1_amd64.deb ...
Unpacking file (1:5.22+15-2ubuntu1) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../gettext-base_0.19.4-1ubuntu1_amd64.deb ...
Unpacking gettext-base (0.19.4-1ubuntu1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../gettext_0.19.4-1ubuntu1_amd64.deb ...
Unpacking gettext (0.19.4-1ubuntu1) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../intltool-debian_0.35.0+20060710.2_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.2) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../po-debconf_1.0.18_all.deb ...
Unpacking po-debconf (1.0.18) ...
Selecting previously unselected package dh-apparmor.
Preparing to unpack .../dh-apparmor_2.9.2-0ubuntu1_all.deb ...
Unpacking dh-apparmor (2.9.2-0ubuntu1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../debhelper_9.20150507ubuntu1_all.deb ...
Unpacking debhelper (9.20150507ubuntu1) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_17.0-1_all.deb ...
Unpacking python-pkg-resources (17.0-1) ...
Selecting previously unselected package python-nose.
Preparing to unpack .../python-nose_1.3.6-1_all.deb ...
Unpacking python-nose (1.3.6-1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_17.0-1_all.deb ...
Unpacking python3-pkg-resources (17.0-1) ...
Selecting previously unselected package python3-nose.
Preparing to unpack .../python3-nose_1.3.6-1_all.deb ...
Unpacking python3-nose (1.3.6-1) ...
Setting up libffi6:amd64 (3.2.1-2) ...
Setting up libmpdec2:amd64 (2.4.1-1) ...
Setting up mime-support (3.58ubuntu1) ...
Setting up libpython3.4-stdlib:amd64 (3.4.3-7) ...
Setting up python3.4 (3.4.3-7) ...
Setting up libpython3-stdlib:amd64 (3.4.3-1) ...
Setting up libasprintf0c2:amd64 (0.19.4-1ubuntu1) ...
Setting up libpipeline1:amd64 (1.4.0-1) ...
Setting up libicu52:amd64 (52.1-9) ...
Setting up libxml2:amd64 (2.9.2+dfsg1-3) ...
Setting up groff-base (1.22.3-1) ...
Setting up bsdmainutils (9.0.6ubuntu1) ...
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.7.0.2-5) ...
Building database of manual pages ...
Setting up libglib2.0-0:amd64 (2.45.2-1) ...
No schema files found: doing nothing.
Setting up libcroco3:amd64 (0.6.8-3) ...
Setting up libunistring0:amd64 (0.9.3-5.2ubuntu1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.10-2) ...
Setting up python2.7 (2.7.10-2) ...
Setting up libpython-stdlib:amd64 (2.7.9-1) ...
Setting up python (2.7.9-1) ...
Setting up python-pbr (1.0.1-1ubuntu1) ...
update-alternatives: using /usr/bin/python2-pbr to provide /usr/bin/pbr (pbr) 
in auto mode
Setting up libmagic1:amd64 (1:5.22+15-2ubuntu1) ...
Setting up file (1:5.22+15-2ubuntu1) ...
Setting up gettext-base (0.19.4-1ubuntu1) ...
Setting up gettext (0.19.4-1ubuntu1) ...
Setting up intltool-debian (0.35.0+20060710.2) ...
Setting up po-debconf (1.0.18) ...
Setting up dh-apparmor (2.9.2-0ubuntu1) ...
Setting up debhelper (9.20150507ubuntu1) ...
Setting up python-pkg-resources (17.0-1) ...
Setting up python-nose (1.3.6-1) ...
Setting up python3 (3.4.3-1) ...
Setting up python3-pbr (1.0.1-1ubuntu1) ...
Setting up python3-pkg-resources (17.0-1) ...
Setting up python3-nose (1.3.6-1) ...
Setting up dh-python (1.20141111-2ubuntu1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...
 -> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libfakeroot
The following NEW packages will be installed:
  fakeroot libfakeroot
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/87.3 kB of archives.
After this operation, 441 kB of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or 
directory)
Selecting previously unselected package libfakeroot:amd64.
(Reading database ... 15064 files and directories currently installed.)
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot 
(fakeroot) in auto mode
I: Copying back the cached apt archive contents
I: new cache content python3-pbr_1.0.1-1ubuntu1_all.deb added
I: new cache content python2.7_2.7.10-2_amd64.deb added
I: new cache content python3-pkg-resources_17.0-1_all.deb added
I: new cache content libpython2.7-minimal_2.7.10-2_amd64.deb added
I: new cache content libpython2.7-stdlib_2.7.10-2_amd64.deb added
I: new cache content python-pkg-resources_17.0-1_all.deb added
I: new cache content python2.7-minimal_2.7.10-2_amd64.deb added
I: new cache content python-pbr_1.0.1-1ubuntu1_all.deb added
I: Copying source file
I: copying [python-lockfile_0.10.2-2.dsc]
I: copying [./python-lockfile_0.10.2.orig.tar.gz]
I: copying [./python-lockfile_0.10.2-2.debian.tar.xz]
I: Extracting source
gpgv: Signature made Wed May 20 22:15:48 2015 UTC using RSA key ID A74B06BF
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on 
./python-lockfile_0.10.2-2.dsc
dpkg-source: info: extracting python-lockfile in python-lockfile-0.10.2
dpkg-source: info: unpacking python-lockfile_0.10.2.orig.tar.gz
dpkg-source: info: unpacking python-lockfile_0.10.2-2.debian.tar.xz
dpkg-source: info: applying 001.doctests-compatible-py2and3.patch
I: Building the package
I: Running cd tmp/buildd/*/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" 
dpkg-buildpackage -us -uc  -rfakeroot
dpkg-buildpackage: source package python-lockfile
dpkg-buildpackage: source version 1:0.10.2-2
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Ben Finney <ben+deb...@benfinney.id.au>
 dpkg-source --before-build python-lockfile-0.10.2
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh clean --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py clean 
Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    import setuptools
ImportError: No module named setuptools
E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=1: 
python2.7 setup.py clean 
dh_auto_clean: pybuild --clean -i python{version} -p 2.7 --dir . returned exit 
code 13
debian/rules:24: recipe for target 'clean' failed
make: *** [clean] Error 13
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
E: Failed autobuilding of package
I: unmounting dev/pts filesystem
W: Could not unmount dev/pts: umount: /var/cache/pbuilder/build//18994/dev/pts: 
not mounted
W: Ignored error in unmount
I: unmounting run/shm filesystem
I: unmounting proc filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//18994 and its subdirectories
diff -pruN -x '*~' python-lockfile-0.10.2.orig/debian/control python-lockfile-0.10.2/debian/control
--- python-lockfile-0.10.2.orig/debian/control	2015-05-20 23:59:30.000000000 +0200
+++ python-lockfile-0.10.2/debian/control	2015-06-24 22:31:27.039988225 +0200
@@ -10,9 +10,11 @@ Build-Depends:
     dh-python,
     python3-pbr,
     python3-nose,
+    python3-setuptools,
     python3,
     python-pbr,
     python-nose,
+    python-setuptools,
     python
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.6

Reply via email to