Source: npth
Version: 1.5-2
Severity: normal
Tags: patch

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/npth.html
shows that npth is embedding the buildpath in the "arch-independent"
windows builds.

The attached patch should fix this problem.

Since npth appears to only be used in debian by the GnuPG suite, i
would be fine with moving it under the pkg-gnupg team umbrella, if you
wanted to do that.

    --dkg

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'oldstable'), 
(200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
>From 6ec7d08a08f050f68b6d804fc797763104b9abeb Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <[email protected]>
Date: Wed, 8 Nov 2017 11:25:15 +0100
Subject: [PATCH] Avoid embedding build path in windows binaries

The reproducible-builds infrastructure shows that when the build path
varies, the resultant npth binaries also vary, because the build path
is embedded in them:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/
       amd64/diffoscope-results/npth.html

I think this changeset should remove the embedded buildpath.

A similar change worked for libgpg-error.  See

commit ID 00c976f9947a5b00185aa1a36106be0133108228 in
https://anonscm.debian.org/git/pkg-gnupg/libgpg-error.git/
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ce8e086..044529e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ override_dh_strip:
 
 ### "arch-independent" Windows builds: ###
 
-WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os" CPPFLAGS=
+WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os 
-fdebug-prefix-map=$(shell pwd)=." CPPFLAGS=
 
 override_dh_auto_build-indep:
        for cpu in i686 x86_64; do \
-- 
2.14.2

Reply via email to