Bug#910354: pjproject: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Oct 5 09:27:05 BST 2018


Source: pjproject
Version: 2.7.2~dfsg-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that pjproject could not be built reproducibly.

This is because the pkgconfig file includes the absolute build path 
via CFLAGS.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/0008-reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0008-reproducible-build.patch	2018-10-05 09:04:37.550799096 +0100
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2018-10-05
+
+--- pjproject-2.7.2~dfsg.orig/Makefile
++++ pjproject-2.7.2~dfsg/Makefile
+@@ -133,7 +133,8 @@ install:
+ 		sed -e "s!@PJ_LDLIBS@!!" | \
+ 		sed -e "s!@PJ_LDXXLIBS@!$(PJ_LDXXLIBS)!" | \
+ 		sed -e "s!@PJ_INSTALL_CFLAGS@!!" | \
+-		sed -e "s!@PJ_INSTALL_CXXFLAGS@!$(PJ_INSTALL_CXXFLAGS)!" > $(DESTDIR)/$(libdir)/pkgconfig/libpjproject.pc
++		sed -e "s!@PJ_INSTALL_CXXFLAGS@!$(PJ_INSTALL_CXXFLAGS)!" | \
++		sed -e 's@ [^ ]*-f\(file\|debug\)-prefix-map=[^ ]*@@g' > $(DESTDIR)/$(libdir)/pkgconfig/libpjproject.pc
+ 
+ uninstall:
+ 	$(RM) $(DESTDIR)$(libdir)/pkgconfig/libpjproject.pc
--- a/debian/patches/series	2018-10-05 08:43:26.179095268 +0100
--- b/debian/patches/series	2018-10-05 09:04:35.838789174 +0100
@@ -3,3 +3,4 @@
 0005-Remove-video-libs-dependency-for-pj-utils-and-pjnath.patch
 0007-add-v5-suffix-to-soname-of-libpjsua2-2.patch
 ffmpeg-4.0.patch
+0008-reproducible-build.patch


More information about the Pkg-voip-maintainers mailing list