Source: libnss-ldap
Version: 265-5
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org, danie...@apache.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that libnss-ldap could not be built reproducibly.

Specifically, the last component of the source directory (normally
"libnss-ldap-265", but not guaranteed to be so) was hardcoded into the
package.

This further patch replaces that hardcoding by a constant string.

Thanks,

Daniel

P.S. The repository listed in the Vcs-* d/control headers does not
contain the two latest NMUs, which causes debcheckout(1) to retrieve
out-of-date code.

 [1]: https://wiki.debian.org/ReproducibleBuilds
Description: Make build output independent of basename of source directory
  Needed for reproducible builds.
Author: Daniel Shahaf <danie...@apache.org>
Bug-Debian: https://bugs.debian.org/-1
Last-Update: 2016-11-21

--- a/Makefile.am
+++ b/Makefile.am
@@ -109,5 +109,5 @@
 	@$(NORMAL_UNINSTALL)
 
 vers.c: $(top_srcdir)/CVSVersionInfo.txt
-	CVSVERSIONDIR=$(top_srcdir) $(top_srcdir)/vers_string -v
+	CVSVERSIONDIR=$(top_srcdir) PROGRAM="libnss-ldap-$(VERSION)" $(top_srcdir)/vers_string -v
 

Reply via email to