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

Bug#845229: libnss-ldap: please make the build reproducible (buildpath)



Source: libnss-ldap
Version: 265-5
Severity: wishlist
Tags: patch upstream
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org, danielsh@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 <danielsh@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 to: