mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
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>
(cherry picked from commit 42c71fae32)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
788aa3057f
commit
4accb95ac4
@@ -29,6 +29,12 @@ do_configure_append() {
|
|||||||
cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/
|
cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/
|
||||||
cd ${S}/libgphoto2_port/
|
cd ${S}/libgphoto2_port/
|
||||||
autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
|
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}
|
cd ${S}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user