summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2020-09-28 09:06:17 +0800
committerKhem Raj <raj.khem@gmail.com>2020-09-27 22:04:53 -0700
commit42c71fae324c9e9fec0677044a5011d63bc60a11 (patch)
tree2e5b33822936fa3f8364a9f084316e40c3befaa0
parent92524727d456fca85277bfb3bb3140d0c7b52005 (diff)
downloadmeta-openembedded-42c71fae324c9e9fec0677044a5011d63bc60a11.tar.gz
libgphoto2: improve reproducibility
remove WORKDIR information from config to improve reproducibility. libgphoto2_port recheck config during compile will set the WORKDIR info again, so remove this steps after configure. 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-graphics/gphoto2/libgphoto2_2.5.25.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.25.bb b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.25.bb
index 8daf737a5e..fe7657f54c 100644
--- a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.25.bb
+++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.25.bb
@@ -29,6 +29,12 @@ do_configure_append() {
29 cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ 29 cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/
30 cd ${S}/libgphoto2_port/ 30 cd ${S}/libgphoto2_port/
31 autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths 31 autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
32
33 # remove WORKDIR information from config to improve reproducibility
34 # libgphoto2_port recheck config will set the WORKDIR info again, so dont do that
35 sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/config.h
36 sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/libgphoto2_port/config.status
37 sed -i '/config\.status/ s/\-\-recheck//' ${B}/libgphoto2_port/Makefile
32 cd ${S} 38 cd ${S}
33} 39}
34 40