Does not accept multiple --debbuildopts options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbuilder (Debian) |
Fix Released
|
Unknown
|
|||
pbuilder (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: pbuilder
pbuilder and pdebuild do not accept or cope with multiple --debbuildopts. For example (slightly nonsensical example):
HOST_DEB_
PBUILDER_
pdebuild --logfile $LOGNAME ${HOST_DEB_OPTIONS} -- ${PBUILDER_
Command line parameter [-I] is not a valid .dsc file name
The cause is the two helper shell function libraries.
/usr/lib/
/usr/lib/
/usr/lib/
because they are coded to only accept one option, and to over-write any previous option:
--debbuildopts)
DEBBUILDOP
shift; shift;
;;
The solution is to use:
DEBBUILDOP
As a by-product, this change allows the script to accept and use any options exported to the environment before the tool starts.
Related branches
Changed in pbuilder: | |
status: | Unknown → New |
Changed in pbuilder (Debian): | |
status: | New → Fix Released |
SRU Justification:
Impact: Passing multiple debbuildopts through pbuilder/pdebuild results in the dpkg-source and other devscripts either failing or not using the specified options (especially problematic when wanting to prevent VCS files being included (-i -I).
testcase: Using a source package that has VCS directories (i.e. ./.git/ ) and "pbuilder ... --debbuildopts -i -I" or "pbuilder ... --debbootopts -i --debbuildopts -I" results in an error in the first case, or a tar.gz file that includes the VCS files in the latter.
The fix enables all debbuildopts to be set and the package sources created correctly.