[oe-commits] [openembedded-core] 36/44: ltp: improve reproducibility

git at git.openembedded.org git at git.openembedded.org
Sat Dec 2 11:27:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit d4ac52bef9f5364619fcb8e2f8c05927d660fff7
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Wed Nov 22 13:58:29 2017 -0800

    ltp: improve reproducibility
    
    ltp package contains several gzipped files.
    Improve reproducibility of the build by ensuring the gzipped files
    do not contain timestamps in their headers.
    
    https://wiki.debian.org/ReproducibleBuilds/TimestampsInGzipHeaders
    
    Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 .../ltp/ltp/0038-generate-reproducible-gzip.patch    | 20 ++++++++++++++++++++
 meta/recipes-extended/ltp/ltp_20170929.bb            |  1 +
 2 files changed, 21 insertions(+)

diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
new file mode 100644
index 0000000..0153ace
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
@@ -0,0 +1,20 @@
+Do not generate timestamps in gzipped file headers.
+The timestamps prevent reproducible build.
+
+Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]
+
+Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
+
+diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh
+index 00216a6..939f792 100755
+--- a/testcases/network/generate.sh
++++ b/testcases/network/generate.sh
+@@ -55,7 +55,7 @@ fi
+ if [ ! -e "bin.sm" ] ; then
+ 	cnt=0
+ 	while [ $cnt -lt 5 ] ; do
+-		gzip -1 -c ascii.sm >> "bin.sm"
++		gzip -1 -c -n ascii.sm >> "bin.sm"
+ 		cnt=$(($cnt + 1))
+ 	done
+ fi
diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20170929.bb
index 93a59b3..8a870b3 100644
--- a/meta/recipes-extended/ltp/ltp_20170929.bb
+++ b/meta/recipes-extended/ltp/ltp_20170929.bb
@@ -49,6 +49,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
            file://0035-fix-test_proc_kill-hang.patch \
            file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
            file://0037-ltp-fix-format-security-error.patch \
+           file://0038-generate-reproducible-gzip.patch \
            "
 
 S = "${WORKDIR}/git"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list