[Bug 278213] Re: Does not accept multiple --debbuildopts options
Bug Watch Updater
278213 at bugs.launchpad.net
Thu Aug 11 09:49:50 UTC 2011
** Changed in: pbuilder (Debian)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pbuilder in Ubuntu.
https://bugs.launchpad.net/bugs/278213
Title:
Does not accept multiple --debbuildopts options
Status in “pbuilder” package in Ubuntu:
Fix Released
Status in “pbuilder” package in Debian:
Fix Released
Bug description:
Binary package hint: pbuilder
pbuilder and pdebuild do not accept or cope with multiple
--debbuildopts. For example (slightly nonsensical example):
HOST_DEB_OPTIONS="--debbuildopts -i -I"
PBUILDER_DEB_OPTIONS="--debbuildopts -i -I"
pdebuild --logfile $LOGNAME ${HOST_DEB_OPTIONS} -- ${PBUILDER_DEB_OPTIONS}
Command line parameter [-I] is not a valid .dsc file name
The cause is the two helper shell function libraries.
/usr/lib/pbuilderpbuilder-checkparams
/usr/lib/pbuilder/pdebuild-checkparams
/usr/lib/pbuilder/pdebuild-uml-checkparams
because they are coded to only accept one option, and to over-write any previous option:
--debbuildopts)
DEBBUILDOPTS="$2";
shift; shift;
;;
The solution is to use:
DEBBUILDOPTS="$DEBBUILDOPTS $2";
As a by-product, this change allows the script to accept and use any
options exported to the environment before the tool starts.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/278213/+subscriptions
More information about the foundations-bugs
mailing list