summaryrefslogtreecommitdiff
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-03-31 14:28:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-01 08:16:27 +0100
commit46c757d0ca7ff294a7e55c130698fd256b69b62e (patch)
tree9b04cb3c06abde5fc1f7ebb714dc0a2a0b8e8a94 /meta/recipes-core
parentae13f580b759211c1a6b59a276f75d589f1db11c (diff)
downloadopenembedded-core-46c757d0ca7ff294a7e55c130698fd256b69b62e.tar.gz
openembedded-core-46c757d0ca7ff294a7e55c130698fd256b69b62e.tar.bz2
openembedded-core-46c757d0ca7ff294a7e55c130698fd256b69b62e.zip
ncurses_6.0: Improve reproducibility
Build static libraries without the binutils "ar" -U option. This option deliberately breaks deterministic mode. The option seems to be a relic from 2015, intended as a workaround for some unspecified build problems. [YOCTO#11247] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/ncurses/files/configure-reproducible.patch20
-rw-r--r--meta/recipes-core/ncurses/ncurses_6.0+20161126.bb1
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/files/configure-reproducible.patch b/meta/recipes-core/ncurses/files/configure-reproducible.patch
new file mode 100644
index 0000000000..54a8bdc6b8
--- /dev/null
+++ b/meta/recipes-core/ncurses/files/configure-reproducible.patch
@@ -0,0 +1,20 @@
+"configure" enforces -U for ar flags, breaking deterministic builds.
+The flag was added to fix some vaguely specified "recent POSIX binutil
+build problems" in 2015.
+
+Upstream-Status: Pending
+Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
+
+diff --git a/configure b/configure
+index 7f31208..aa80911 100755
+--- a/configure
++++ b/configure
+@@ -4428,7 +4428,7 @@ if test "${cf_cv_ar_flags+set}" = set; then
+ else
+
+ cf_cv_ar_flags=unknown
+- for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
++ for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
+ do
+
+ # check if $ARFLAGS already contains this choice
diff --git a/meta/recipes-core/ncurses/ncurses_6.0+20161126.bb b/meta/recipes-core/ncurses/ncurses_6.0+20161126.bb
index e95741f4c3..ace3108007 100644
--- a/meta/recipes-core/ncurses/ncurses_6.0+20161126.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.0+20161126.bb
@@ -3,6 +3,7 @@ require ncurses.inc
SRC_URI += "file://tic-hang.patch \
file://fix-cflags-mangle.patch \
file://config.cache \
+ file://configure-reproducible.patch \
"
# commit id corresponds to the revision in package version
SRCREV = "3db0bd19cb50e3d9b4f2cf15b7a102fe11302068"