Different behaviour between bzr builddeb and pbuilder-dist

Andrea Cerisara andreacerisara at gmail.com
Sat Aug 31 08:35:05 UTC 2013


Hello,

I'm following this guide here
http://developer.ubuntu.com/packaging/html/packaging-new-software.html,
but I get an error when trying to build the package in a clean system
using pbuilder. Some info:

1. To fix a lintian warning I modified debian/rules in the following way
(the goal is to get rid of dir.gz included in /usr/share/info):

PACKAGE = $(shell dh_listpackages)
TMP           = $(CURDIR)/debian/$(PACKAGE)

%:
    dh $@  --with autotools-dev

override_dh_auto_install:
    dh_auto_install
    rm $(TMP)/usr/share/info/dir

2. bzr builddeb -- -us -uc and bzr builddeb -S work correctly:

dpkg-deb: building package `hello' in `../hello_2.7-0ubuntu1_amd64.deb'.
 dpkg-genchanges  >../hello_2.7-0ubuntu1_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build hello-2.7
dpkg-buildpackage: full upload (original source is included)
Now running lintian...
Finished running lintian.
Cleaning build dir: /home/acerisara/Projects/build-area/hello-2.7

but when I try to compile the package using pbuilder-dist raring build
hello_2.7-0ubuntu1.dsc I get the following error:

make[4]: Leaving directory `/tmp/buildd/hello-2.7'
make[3]: Leaving directory `/tmp/buildd/hello-2.7'
make[2]: Leaving directory `/tmp/buildd/hello-2.7'
rm /tmp/buildd/hello-2.7/debian/hello/usr/share/info/dir
rm: cannot remove
'/tmp/buildd/hello-2.7/debian/hello/usr/share/info/dir': No such file or
directory
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory `/tmp/buildd/hello-2.7'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2
E: Failed autobuilding of package
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//8046 and its subdirectories

Any idea?

Thanks,
Andrea.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20130831/bd20794e/attachment.html>


More information about the Ubuntu-devel-discuss mailing list