libgphoto2: improve reproducibility
PATCH 1/1 libgphoto2: improve reproducibility
From: Lee Chee Yang <[email protected]>
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 <[email protected]>
--- meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.25.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.25.bb +6 -0
@@ -29,6 +29,12 @@ do_configure_append() { cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ cd ${S}/libgphoto2_port/ autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths + + # remove WORKDIR information from config to improve reproducibility + # libgphoto2_port recheck config will set the WORKDIR info again, so dont do that + sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/config.h + sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/libgphoto2_port/config.status + sed -i '/config\.status/ s/\-\-recheck//' ${B}/libgphoto2_port/Makefile cd ${S} }
Signature · 1 line
2.17.1