summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/reproducible_build_simple.bbclass1
-rw-r--r--meta/classes/rootfs-postcommands.bbclass5
2 files changed, 1 insertions, 5 deletions
diff --git a/meta/classes/reproducible_build_simple.bbclass b/meta/classes/reproducible_build_simple.bbclass
index d0842f0f90..153a076072 100644
--- a/meta/classes/reproducible_build_simple.bbclass
+++ b/meta/classes/reproducible_build_simple.bbclass
@@ -7,5 +7,6 @@ export PERL_HASH_SEED = "0"
7export SOURCE_DATE_EPOCH ??= "1520598896" 7export SOURCE_DATE_EPOCH ??= "1520598896"
8 8
9REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896" 9REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896"
10BUILDNAME ??= "${REPRODUCIBLE_TIMESTAMP_ROOTFS}"
10 11
11inherit podfix 12inherit podfix
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index 2f171836fa..e40097444d 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -356,11 +356,6 @@ python rootfs_log_check_recommends() {
356# Perform any additional adjustments needed to make rootf binary reproducible 356# Perform any additional adjustments needed to make rootf binary reproducible
357rootfs_reproducible () { 357rootfs_reproducible () {
358 if [ "${REPRODUCIBLE_TIMESTAMP_ROOTFS}" != "" ]; then 358 if [ "${REPRODUCIBLE_TIMESTAMP_ROOTFS}" != "" ]; then
359 # Convert UTC into %4Y%2m%2d%2H%2M%2S
360 sformatted=`date -u -d @${REPRODUCIBLE_TIMESTAMP_ROOTFS} +%4Y%2m%2d%2H%2M%2S`
361 echo $sformatted > ${IMAGE_ROOTFS}/etc/version
362 bbnote "rootfs_reproducible: set /etc/version to $sformatted"
363
364 if [ -d ${IMAGE_ROOTFS}${sysconfdir}/gconf ]; then 359 if [ -d ${IMAGE_ROOTFS}${sysconfdir}/gconf ]; then
365 find ${IMAGE_ROOTFS}${sysconfdir}/gconf -name '%gconf.xml' -print0 | xargs -0r \ 360 find ${IMAGE_ROOTFS}${sysconfdir}/gconf -name '%gconf.xml' -print0 | xargs -0r \
366 sed -i -e 's@\bmtime="[0-9][0-9]*"@mtime="'${REPRODUCIBLE_TIMESTAMP_ROOTFS}'"@g' 361 sed -i -e 's@\bmtime="[0-9][0-9]*"@mtime="'${REPRODUCIBLE_TIMESTAMP_ROOTFS}'"@g'