Source: criu
Version: 1.7-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed that
criu could not be built reproducibly.

The attached patch removes filesystem ordering from the build system.
Once
applied, criu can be built reproducibly using our reproducible
toolchain.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/01-reproducible-build.diff 1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/01-reproducible-build.diff 2015-10-07 15:37:59.643166965 
+0200
@@ -0,0 +1,11 @@
+--- criu-1.7.orig/pycriu/images/Makefile
++++ criu-1.7/pycriu/images/Makefile
+@@ -2,7 +2,7 @@ all: pb.py protobuf magic.py
+ 
+ .PHONY: all protobuf clean pb.py
+ 
+-proto := $(filter-out $(SRC_DIR)/protobuf/rpc.proto, $(wildcard 
$(SRC_DIR)/protobuf/*.proto))
++proto := $(filter-out $(SRC_DIR)/protobuf/rpc.proto, $(sort $(wildcard 
$(SRC_DIR)/protobuf/*.proto)))
+ proto-py-modules := $(foreach m,$(proto),$(subst -,_,$(notdir 
$(m:.proto=_pb2))))
+ 
+ # We don't need rpc_pb2.py here, as it is not related to the
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2015-10-07 15:37:56.927141946 +0200
@@ -0,0 +1 @@
+01-reproducible-build.diff
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to