[Bug 317761] Re: dpkg-source sets -i -I by default

Jason Abernathy jabernathy at generallyrelative.ca
Fri Mar 22 23:29:43 UTC 2013


Has this bug regressed to dpkg 1.16.1.2?

> tar -xzf foo-app-full.tgz
> cd fooapp-1.0

> cat debian/source/include-binaries
extra/bar
extra/bar.so
extra/bar.a

> dpkg-source -b .
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building fooapp using existing ./fooapp_1.0.orig.tar.gz
dpkg-source: info: building fooapp in fooapp_1.0-1.debian.tar.gz
dpkg-source: info: building fooapp in fooapp_1.0-1.dsc

> tar -ztf ../fooapp_1.0-1.debian.tar.gz  | grep bar
extra/bar

> dpkg-source -b -I*.dat .
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building fooapp using existing ./fooapp_1.0.orig.tar.gz
dpkg-source: info: building fooapp in fooapp_1.0-1.debian.tar.gz
dpkg-source: info: building fooapp in fooapp_1.0-1.dsc

> tar -ztf ../fooapp_1.0-1.debian.tar.gz  | grep bar
extra/bar.so
extra/bar.a
extra/bar

** Attachment added: "files required to demonstrate the bug"
   https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/317761/+attachment/3591199/+files/fooapp-full.tgz

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/317761

Title:
  dpkg-source sets -i -I by default

Status in “dpkg” package in Ubuntu:
  Fix Released
Status in “dpkg” source package in Intrepid:
  Fix Released
Status in “dpkg” package in Debian:
  Fix Released

Bug description:
  The version of dpkg-source in Ubuntu 8.10 erroneously sets the -i and
  -I options by default for version 1.0 source packages (i.e. the
  version of the source format that we actually use). This causes
  various files to be omitted unexpectedly from tarballs and diffs,
  which causes problems in particular for people building private source
  packages that need to contain binary objects.

  This bug was fixed by Debian in dpkg 1.14.21, so is fixed in Jaunty
  and was not present in earlier releases:

  http://git.debian.org/?p=dpkg/dpkg.git;a=commit;h=21d69014f424f670a9ccdce3a7aad11e3b3f1b60

  Proposed patch:

    http://launchpadlibrarian.net/23510120/dpkg_1.14.20ubuntu6.2.debdiff

  TEST CASE: Download http://launchpadlibrarian.net/21270813/tests.zip,
  unpack, cd to test-1.0/, and run 'debuild -S -sa; tar tzvf
  ../test_1.0.orig.tar.gz'. The bug is that the files test-1.0.orig
  /libsmbclient-x86_64-linux.a and
  test-1.0.orig/libsmbclient-i486-linux.a are missing from the tarball.
  Now remove ../test_1.0.orig.tar.gz and repeat 'debuild -S -sa', but
  this time 'tar tzvf ../test_1.0-1.tar.gz' (this tests native-mode
  source package building). Again, the .a files will be missing from the
  tarball if this bug is present. You'll need to remove all these files
  and start again in order to verify the fix.

  Regression potential: Well, it's dpkg. dpkg itself shouldn't change,
  but I'd recommend running for a while to spot any upgrade problems
  anyway. If you can, build some other packages and check that the
  resulting debdiffs are sensible.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/317761/+subscriptions




More information about the foundations-bugs mailing list