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

Re: [Pkg-octave-devel] Trying to fix random_buildpath_by_octave



* Oliver Heimlich <oheim@posteo.de> [2015-10-26 07:25]:

According to [3] the build log will be considered in the build id, because the text suggests that log files should not differ.

You could start by either normalizing or suppressing the output of the temppath.

3. https://wiki.debian.org/ReproducibleBuilds/Contribute#Fixing_issues

Thanks for the suggestion, Oliver.

I think that the patch attached below will do the normalization that you mention, by replacing all instances of '/tmp/oct-*' by the tag '[tmp-build-dir]' in the build log.

Should I commit this patch?

Rafael
diff --git a/octave-pkg.mk b/octave-pkg.mk
index 1ed2d46..8b60813 100644
--- a/octave-pkg.mk
+++ b/octave-pkg.mk
@@ -110,7 +110,8 @@ install-pkg:
 		 if (exist ('PKG_ADD.bak') == 2),			\
 		     movefile ('PKG_ADD.bak', 'PKG_ADD');		\
 		 endif;							\
-		 pkg -verbose -nodeps install ."
+		 pkg -verbose -nodeps install ."			\
+	    | sed 's:/tmp/oct-[a-zA-Z0-9]\{6\}:[tmp-build-dir]:g'
 	$(shrpkg)/dh/octave-pkg-helper
 	dh_install --package=$(package)
 

Reply to: