[elbe-devel] pbuilder on wheezy targets: incompatible "-jauto" option
Lukasz Walewski
lwalewski at s-can.at
Wed Jan 24 16:28:22 CET 2018
Hi,
When building Debian packages for <suite>wheezy</suite> images with pbuilder, elbe calls pdebuild with --debbuildopts "-jauto", which is supported by dpkg since version 1.17.10:
dpkg-buildpackage(1):
-j, --jobs[=jobs|auto]
Number of jobs allowed to be run simultaneously, number of jobs matching the number of online
processors if auto is specified (since dpkg 1.17.10), or unlimited number if jobs is not specified,
However, pbuilder for a <suite>wheezy</suite> image is (not surprisingly) created as Debian 7.x (wheezy) pbuilder:
running cmd +pbuilder --create --configfile "/var/cache/elbe/ID/pbuilderrc" --aptconfd
ir "/var/cache/elbe/ID/aptconfdir" --extrapackages git+
------------------------------------------------------------------------------
W: /.pbuilderrc does not exist
I: Distribution is wheezy.
and dpkg in Debian 7.x (wheezy) is 1.16.18, so pbuilder fails due to unrecognized option:
running cmd +cd "/var/cache/elbe/ID/pdebuilder/current"; pdebuild --debbuildopts "-jau
to -sa" --configfile "/var/cache/elbe/ID/pbuilderrc" --use-pdebuild-internal --buildre
sult "/var/cache/elbe/ID/pbuilder/result"+
[...]
I: Running /usr/bin/dpkg-buildpackage -rfakeroot -us -uc ${DEBBUILDOPTS}
dpkg-buildpackage: unknown option or argument -jauto
[...]
Command failed with errorcode 1
Package fails to build.
On the other hand "-jauto" is a convenient option esp. for large packages. Maybe elbe could emulate it on wheezy pbuilders with something similar to:
"-j$(nproc --all)"
???
Best,
Lukasz
----------------------------------------
[http://www.s-can.at/disclaimer/scan_industrial.jpg]
----------------------------------------
scan Messtechnik GmbH
Brigittagasse 22-24
A-1200 Wien/Vienna
tel. +43 1 219 73 93 - 0
fax +43 1 219 73 93 - 12
http://www.s-can.at
office at s-can.at
Geschaeftsfuehrer/President: DI Andreas Weingartner
Firmenbuchnummer/Incorporation No: FN178880i
Gerichtsstand/Court of Jurisdiction: Wien/Vienna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180124/b83ed1de/attachment.html>
More information about the elbe-devel
mailing list