aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2020-10-01 17:26:43 +0800
committerArmin Kuster <akuster808@gmail.com>2020-11-09 18:46:39 -0800
commita51c0d9b3a0d7dc5986ce46e7de65ef26cd06373 (patch)
treea72a35adb393f55ddc5cb069a6fdc1ae707343f5
parent8ce3a09b1341eb795c7c2846c7e19bf8d78277b5 (diff)
downloadmeta-openembedded-a51c0d9b3a0d7dc5986ce46e7de65ef26cd06373.tar.gz
meta-openembedded-a51c0d9b3a0d7dc5986ce46e7de65ef26cd06373.tar.bz2
meta-openembedded-a51c0d9b3a0d7dc5986ce46e7de65ef26cd06373.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> (cherry picked from commit be95549f2ea5c59c6da6ace852b918cdba3c7822) Signed-off-by: Armin Kuster <akuster808@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
+}