aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2020-10-01 17:26:43 +0800
committerKhem Raj <raj.khem@gmail.com>2020-10-01 10:32:42 -0700
commitbe95549f2ea5c59c6da6ace852b918cdba3c7822 (patch)
treeccaf373b8fa2e0d529cf482ab033c716d49e2ac7
parentc53b1218e89ff6f917fd7264b9cc7fb7a4590bc4 (diff)
downloadmeta-openembedded-be95549f2ea5c59c6da6ace852b918cdba3c7822.tar.gz
meta-openembedded-be95549f2ea5c59c6da6ace852b918cdba3c7822.tar.bz2
meta-openembedded-be95549f2ea5c59c6da6ace852b918cdba3c7822.zip
glog : improve reproducibility
remove WORKDIR info from config file to improve reproducibility Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/glog/glog_0.3.5.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/glog/glog_0.3.5.bb b/meta-oe/recipes-support/glog/glog_0.3.5.bb
index 9a8332836..56bf51554 100644
--- a/meta-oe/recipes-support/glog/glog_0.3.5.bb
+++ b/meta-oe/recipes-support/glog/glog_0.3.5.bb
@@ -25,3 +25,10 @@ PACKAGECONFIG_remove_riscv32 = "unwind"
PACKAGECONFIG[unwind] = "-DWITH_UNWIND=ON,-DWITH_UNWIND=OFF,libunwind,libunwind"
PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
+
+do_configure_append() {
+ # remove WORKDIR info to improve reproducibility
+ if [ -f "${B}/config.h" ] ; then
+ sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/config.h
+ fi
+}