dpkg-source: -I implicitly used for 3.0 quilt format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Debian) |
New
|
Unknown
|
|||
dpkg (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
When building source packages (format 3.0 - quilt) with the dpkg-source command, the -I seems to be implicitly used when it isn't specified on the command line.
I've attached a small debian package named foo-app which demonstrates this behaviour.
I've added three binary files (named extra/bar, extra/bar.so and extra/bar.a) to foo-app
> tar -xzf foo-app-full.tgz
> cd fooapp-1.0
According to the man page for dpkg-source, unexpected binaries will cause the build to fail, "unless the maintainer deliberately decided to include that modified binary file in the debian tarball (by listing it in debian/
> cat debian/
extra/bar
extra/bar.so
extra/bar.a
Building the source package without specifying any value for the -I parameter will result in the "extra/bar" file being included in ../fooapp_
> dpkg-source -b .
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building fooapp using existing ./fooapp_
dpkg-source: info: building fooapp in fooapp_
dpkg-source: info: building fooapp in fooapp_1.0-1.dsc
> tar -ztf ../fooapp_
extra/bar
When the source package is built with a dummy value for the -I parameter, all three files are included in ../fooapp_
> dpkg-source -b -I*.dat .
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building fooapp using existing ./fooapp_
dpkg-source: info: building fooapp in fooapp_
dpkg-source: info: building fooapp in fooapp_1.0-1.dsc
> tar -ztf ../fooapp_
extra/bar.so
extra/bar.a
extra/bar
This leads me to believe that -I is being used by default. If this is intentional, then the man page for dpkg-source should be updated so that the requirements for including a binary with the 3.0 quilt format include overriding the -I parameter.
Changed in dpkg (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in dpkg (Debian): | |
status: | Unknown → New |