summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-10-30 10:49:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-04 17:23:57 +0000
commitf8c7eff81d874676377b07cc036d237d7f2e3290 (patch)
treed9e9c86b82134dff42c0a5ef61f09cdbb8242e6e /meta/recipes-support
parent8d3edc98218aad84e747a0ee0f9d6b73e07686eb (diff)
downloadpoky-f8c7eff81d874676377b07cc036d237d7f2e3290.tar.gz
curl_7.54.1.bb: improve reproducibility
Improve reproducible build of curl-dev and curl-dbg packages. curl-dev: Correctly remove build host references from curl-config curl-dbg: Do not generate time stamps in files generated by mkhelp.pl (From OE-Core rev: 4b5bfbf0f474d2657c1ed54a2ff00502d5f419d9) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/curl/curl/reproducible-mkhelp.patch32
-rw-r--r--meta/recipes-support/curl/curl_7.54.1.bb10
2 files changed, 41 insertions, 1 deletions
diff --git a/meta/recipes-support/curl/curl/reproducible-mkhelp.patch b/meta/recipes-support/curl/curl/reproducible-mkhelp.patch
new file mode 100644
index 0000000000..268bbebf09
--- /dev/null
+++ b/meta/recipes-support/curl/curl/reproducible-mkhelp.patch
@@ -0,0 +1,32 @@
1From 1fe92fd3dd64c7228f6ff41e3fc16c4f2392471a Mon Sep 17 00:00:00 2001
2From: Juro Bystricky <juro.bystricky@intel.com>
3Date: Fri, 27 Oct 2017 08:28:25 -0700
4Subject: mkhelp.pl: support reproducible build
5
6Do not generate line with the current date, such as:
7
8* Generation time: Tue Oct-24 18:01:41 2017
9
10This will improve reproducibility. The generated string is only
11part of a comment, so there should be no adverse consequences.
12
13Upstream-Status: Submitted [ https://github.com/curl/curl/pull/2026 ]
14
15Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
16
17diff --git a/src/mkhelp.pl b/src/mkhelp.pl
18index 270daa2..757f024 100755
19--- a/src/mkhelp.pl
20+++ b/src/mkhelp.pl
21@@ -102,11 +102,9 @@ while(<READ>) {
22 }
23 close(READ);
24
25-$now = localtime;
26 print <<HEAD
27 /*
28 * NEVER EVER edit this manually, fix the mkhelp.pl script instead!
29- * Generation time: $now
30 */
31 #ifdef USE_MANUAL
32 #include "tool_hugehelp.h"
diff --git a/meta/recipes-support/curl/curl_7.54.1.bb b/meta/recipes-support/curl/curl_7.54.1.bb
index 9870657ca4..58f05316fe 100644
--- a/meta/recipes-support/curl/curl_7.54.1.bb
+++ b/meta/recipes-support/curl/curl_7.54.1.bb
@@ -13,6 +13,10 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
13 file://CVE-2017-1000254.patch \ 13 file://CVE-2017-1000254.patch \
14" 14"
15 15
16SRC_URI_append_class-target = " \
17 file://reproducible-mkhelp.patch \
18"
19
16# curl likes to set -g0 in CFLAGS, so we stop it 20# curl likes to set -g0 in CFLAGS, so we stop it
17# from mucking around with debug options 21# from mucking around with debug options
18# 22#
@@ -66,7 +70,11 @@ do_install_append() {
66 70
67do_install_append_class-target() { 71do_install_append_class-target() {
68 # cleanup buildpaths from curl-config 72 # cleanup buildpaths from curl-config
69 sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/curl-config 73 sed -i \
74 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
75 -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
76 -e 's|${DEBUG_PREFIX_MAP}||g' \
77 ${D}${bindir}/curl-config
70} 78}
71 79
72PACKAGES =+ "lib${BPN}" 80PACKAGES =+ "lib${BPN}"