[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1010859: marked as done (libnss-gw-name: reproducible-builds: embedded build paths in libnss_gw_name.so.*)



Your message dated Wed, 11 May 2022 18:48:56 +0000
with message-id <E1norOK-0000ik-C4@fasolo.debian.org>
and subject line Bug#1010859: fixed in libnss-gw-name 0.3-4
has caused the Debian Bug report #1010859,
regarding libnss-gw-name: reproducible-builds: embedded build paths in libnss_gw_name.so.*
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1010859: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010859
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libnss-gw-name
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path is embedded in /usr/lib/x86_64-linux-gnu/libnss_gw_name.so.2:

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

  /build/1st/libnss-gw-name-0.3/libnss_gw_name.c:107
  vs.
  /build/2/libnss-gw-name-0.3/2nd/libnss_gw_name.c:107

The attached patch fixes this by updating to use debhelper compat level
13 and switching to use "dh" in debian/rules. This passes the default
CFLAGS from dpkg-buildflags, which includes the -ffile-prefix-map
argument to avoid embedding the absolute path in compiled files.


With this patch applied, libnss-gw-name should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
From ed3f536000aa1cd8c9d88882028abf4a6cb0b679 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 11 May 2022 16:51:25 +0000
Subject: [PATCH 2/8] Update to debhelper-compat 13 and switch to "dh".

---
 debian/compat  |  1 -
 debian/control |  2 +-
 debian/rules   | 66 ++++++--------------------------------------------
 3 files changed, 9 insertions(+), 60 deletions(-)
 delete mode 100644 debian/compat

diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index 45a4fb7..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-8
diff --git a/debian/control b/debian/control
index 63cb699..3b3a844 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: admin
 Priority: extra
 Maintainer: Debian QA Group <packages@qa.debian.org>
 Build-Depends:
-  debhelper (>= 8.1.3),
+  debhelper-compat (= 13),
   pkg-config,
   libnl-3-dev,
   libnl-route-3-dev,
diff --git a/debian/rules b/debian/rules
index 14dad24..cc1b8f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,64 +1,14 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+	dh $@
 
-DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+override_dh_auto_build:
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
 
-CFLAGS = -Wall -g -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 
-ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -O0
-else
-        CFLAGS += -O2
-endif
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-        MAKEFLAGS += -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-endif
+override_dh_auto_install:
+	dh_auto_install -- libprefix=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
 
-build-arch: build-arch-stamp
-build-indep:
-build: build-arch-stamp
-
-build-arch-stamp:
-	dh_testdir
-	$(MAKE) CFLAGS="$(CFLAGS)"
-	touch build-arch-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-arch*-stamp
-	$(MAKE) clean
+override_dh_auto_clean:
+	dh_auto_clean
 	rm -f *.o *.so *.so.*
-	dh_clean
-
-# Build architecture-independent files here.
-binary-indep: build-indep
-# We have nothing to do
-
-LIBNAME = libnss_gw_name.so.2
-
-# Build architecture-dependent files here.
-binary-arch: build-arch
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-	$(MAKE) install libprefix=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) DESTDIR=$(CURDIR)/debian/libnss-gw-name
-	dh_lintian
-	dh_installchangelogs
-	dh_installdocs
-	dh_link
-	dh_strip
-	dh_makeshlibs
-	dh_shlibdeps
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build build-arch build-indep clean binary-indep binary-arch binary
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: libnss-gw-name
Source-Version: 0.3-4
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

We believe that the bug you reported is fixed in the latest version of
libnss-gw-name, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1010859@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated libnss-gw-name package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 May 2022 11:06:19 -0700
Source: libnss-gw-name
Architecture: source
Version: 0.3-4
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 990888 1009910 1010859
Changes:
 libnss-gw-name (0.3-4) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Vagrant Cascadian ]
   * Update to debhelper-compat 13 and switch to "dh". (Closes: #1010859)
   * postinst/postrm: Remove call to ldconfig, now handled with
     dpkg-triggers.
   * debian/control: Set Priority to "optional".
   * debian/control: Comment out obsolete Vcs-* headers. (Closes: #1009910)
   * debian/control: Set Rules-Requires-Root to "no".
   * Remove obsolete lintian override.
 .
   [ Helmut Grohne ]
   * Make pkg-config substitutable. Fixes FTCBFS. (Closes: #990888)
 .
   [ Vagrant Cascadian ]
   * debian/control: Update Standards-Version to 4.6.0.
Checksums-Sha1:
 cb6c7c7e865f1b33d4ab0b60bc7c1b50ec58ae30 1389 libnss-gw-name_0.3-4.dsc
 875ade1fe7c2e3fbe6ac75f3b21447c953e3b3d7 3564 libnss-gw-name_0.3-4.debian.tar.xz
Checksums-Sha256:
 8a1a7466adbb35e843bf0b6be787f9c2942306481d4724460f1be9bb05a03d81 1389 libnss-gw-name_0.3-4.dsc
 709e461f47b2284cc1970b071137ee82161b1be1b8d217f3c2384a4d60a5b5c8 3564 libnss-gw-name_0.3-4.debian.tar.xz
Files:
 2a2ee2968c51aa8aee1d836a743ef36b 1389 admin optional libnss-gw-name_0.3-4.dsc
 4dd52c6534e65556413cedcae8ae65f9 3564 admin optional libnss-gw-name_0.3-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYnwAJyAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWql8qAQCId9djlmbG5Wr0
TRgkAQb6FFtw2hiLKspEzpMXkVOK8gEAzC+m1cgzywu7pLK5kZHog3eGOCbJ4Yhb
5H5tSOwMgwg=
=wDQy
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: