Bug#841783: patchutils: please make the build reproducible

Reiner Herrmann reiner at reiner-h.de
Sun Oct 23 14:08:39 UTC 2016


On Sun, Oct 23, 2016 at 03:29:36PM +0200, Reiner Herrmann wrote:
> --- a/debian/rules
> +++ b/debian/rules
> @@ -13,7 +13,7 @@ else
>  CONFFLAGS = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
>  endif
>  
> -CFLAGS = -g
> +CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
>  
>  ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
>  CFLAGS += -O2

Niels Thykier suggested another approach.
dh_auto_configure already handles CFLAGS and cross-building, so the
rules can be simplified a bit.
An updated patch is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchutils.patch
Type: text/x-diff
Size: 2460 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20161023/3adf6531/attachment.patch>


More information about the Reproducible-builds mailing list