@@ -10,3 +10,17 @@ do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install[depends] += "virtual/${MLPREFIX}libc:do_stash_locale"
+
+do_deploy_source_date_epoch[depends] += "virtual/${MLPREFIX}libc:do_stash_locale"
+do_deploy_source_date_epoch () {
+ mkdir -p ${SDE_DEPLOYDIR} ${SDE_DIR}
+ if [ -e "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale/__source_date_epoch.txt" ]; then
+ echo "Deploying SDE from glibc stash -> ${SDE_DEPLOYDIR}."
+ cp -p ${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale/__source_date_epoch.txt \
+ ${SDE_DEPLOYDIR}/__source_date_epoch.txt
+ cp -p ${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale/__source_date_epoch.txt \
+ ${SDE_FILE}
+ else
+ echo "SDE_FILE not found!"
+ fi
+}
@@ -215,6 +215,10 @@ do_stash_locale () {
cp ${D}${bindir}/$i $target/
fi
done
+
+ # Stash the source date epoch file so RPMs have the
+ # same build time.
+ cp -a "${SDE_FILE}" $dest/__source_date_epoch.txt
}
addtask do_stash_locale after do_install before do_populate_sysroot do_package
@@ -238,6 +242,7 @@ stash_locale_cleanup () {
for i in ${bashscripts}; do
rm -f $cleanupdir${bindir}/$i
done
+ rm -f $cleanupdir/__source_date_epoch.txt
rm -f $cleanupdir${bindir}/localedef
rm -rf $cleanupdir${datadir}/i18n
rm -rf $cleanupdir${libdir}/gconv