Different behaviour between bzr builddeb and pbuilder-dist

Marius Gedminas marius at pov.lt
Sat Aug 31 17:52:00 UTC 2013


On Sat, Aug 31, 2013 at 10:35:05AM +0200, Andrea Cerisara wrote:
> 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):
...
> override_dh_auto_install:
>     dh_auto_install
>     rm $(TMP)/usr/share/info/dir
> 
> 2. bzr builddeb -- -us -uc and bzr builddeb -S work correctly:
...
> 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
...
> Any idea?

You could avoid that error by doing

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

i.e. pass -f to rm so it won't fail when the file doesn't exist.

Marius Gedminas
-- 
"...the only place for 63,000 bugs is a rain forest"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20130831/f52f9c3c/attachment.sig>


More information about the Ubuntu-devel-discuss mailing list