[Bug 326216] Re: pdebuild host --debbuildopts inherited by target pbuild
Bug Watch Updater
326216 at bugs.launchpad.net
Mon May 16 04:52:33 UTC 2016
** 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/326216
Title:
pdebuild host --debbuildopts inherited by target pbuild
Status in pbuilder package in Ubuntu:
Invalid
Status in pbuilder package in Debian:
Fix Released
Bug description:
Binary package hint: pbuilder
This is a latent bug, exposed as a by-product of the fix I created for
bug #278213 "Does not accept multiple --debbuildopts options" which
resulted in "pbuilder (0.181ubuntu6)".
The problem is that when using pdebuilder and passing --debbuildopts
to both 'sides' (host and target), the target pbuilder dpkg-source
incorrectly inherits the host --debbuildopts.
For example:
HOST_DEB_OPTIONS="--debbuildopts -i -I"
PBUILDER_DEB_OPTIONS="--debbuildopts -Idebian/dpkg-source.excludes"
pdebuild --logfile $LOGNAME ${HOST_DEB_OPTIONS} -- ${PBUILDER_DEB_OPTIONS}
results in the inner dpkg-source seeing:
dpkg-source -i -I -Idebian/dpkg-source.excludes -b kvm-83+dfsg
Which in Hardy and later isn't a problem (since -I is acceptable to
dpkg-source >= v1.14.7). However, if working on back-porting a package
to Gutsy or Feisty or Edgy the versions of dpkg-source in those
releases do not understand the -I option without a file specification
(-I<exclusion.list>).
This will cause the target pbuild to fail since the source can't be
extracted.
This wouldn't have come to light if it wasn't for my desire to back-
port some packages for use on long-lived servers that are running
stable older releases. In these cases my build_test script generates
two different sets of --debbuildopts for the host (more recent) and
target (older) dpkg-source.
The builds were failing and as can be seen in the example above it is
because the host's --debbuildopts are passing to the target.
Patches to follow.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/326216/+subscriptions
More information about the foundations-bugs
mailing list