[debhelper-devel] Bug#793440: debhelper: Could use dpkg-architecture env vars if present

Guillem Jover guillem at debian.org
Fri Jul 24 03:43:20 UTC 2015


Package: debhelper
Version: 9.20150629
Severity: wishlist
Control: block 793404 by -1

Hi!

When a package is built by using dpkg-buildpackage, it will set all
dpkg-architecture variables in the environment, so that the common
idiom:

  DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

avoids having to run dpkg-architecture again.

But when using debhelper/dh, it always calls dpkg-architecture even if
those variables are already set in the environment, which can be quite
costly.

Here's a tentative untested patch that tries to do that.

Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Dh_Lib-Try-to-use-dpkg-architecture-variables-from-t.patch
Type: text/x-diff
Size: 1215 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20150724/09c8354b/attachment-0001.patch>


More information about the debhelper-devel mailing list