summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-05-15 12:17:49 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-17 04:12:30 +0200
commit0f94340197970ab5f6f610f2b00750522e3d89b8 (patch)
tree446a74ff297b443b0e7549bb023a7619ac198b66
parent1b09e62ee473a67cebb051ad981a16db355087e7 (diff)
downloadopenembedded-core-contrib-0f94340197970ab5f6f610f2b00750522e3d89b8.tar.gz
openembedded-core-contrib-0f94340197970ab5f6f610f2b00750522e3d89b8.tar.bz2
openembedded-core-contrib-0f94340197970ab5f6f610f2b00750522e3d89b8.zip
gdbm: improve reproducibility
Prevent build time stamp in the version string. Rather than patching the source file, we do this by undefining the macro for __DATE__. If the macro is not defined, the version string does not contain the build time. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-rw-r--r--meta/recipes-support/gdbm/gdbm_1.13.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-support/gdbm/gdbm_1.13.bb b/meta/recipes-support/gdbm/gdbm_1.13.bb
index 4bbe147df5..a14407b97d 100644
--- a/meta/recipes-support/gdbm/gdbm_1.13.bb
+++ b/meta/recipes-support/gdbm/gdbm_1.13.bb
@@ -23,6 +23,12 @@ CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no"
BBCLASSEXTEND = "native nativesdk"
+do_configure_prepend() {
+ if [ ! -z "${SOURCE_DATE_EPOCH}" ]; then
+ export CFLAGS="${CFLAGS} -U__DATE__ -Wno-builtin-macro-redefined"
+ fi
+}
+
do_install_append () {
# Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
# these headers