Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package obs-service-kiwi_metainfo_helper for 
openSUSE:Factory checked in at 2026-07-26 11:27:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-kiwi_metainfo_helper (Old)
 and      /work/SRC/openSUSE:Factory/.obs-service-kiwi_metainfo_helper.new.2004 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "obs-service-kiwi_metainfo_helper"

Sun Jul 26 11:27:39 2026 rev:23 rq:1367346 version:0.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/obs-service-kiwi_metainfo_helper/obs-service-kiwi_metainfo_helper.changes
        2026-04-28 14:30:48.155532235 +0200
+++ 
/work/SRC/openSUSE:Factory/.obs-service-kiwi_metainfo_helper.new.2004/obs-service-kiwi_metainfo_helper.changes
      2026-07-26 11:29:33.664942016 +0200
@@ -1,0 +2,5 @@
+Wed Jul 22 10:31:29 UTC 2026 - Dirk Müller <[email protected]>
+
+- use BUILD_BUILDTIME if set, this is set by reproducible build jobs
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kiwi_metainfo_helper ++++++
--- /var/tmp/diff_new_pack.6Yn6w6/_old  2026-07-26 11:29:35.957021161 +0200
+++ /var/tmp/diff_new_pack.6Yn6w6/_new  2026-07-26 11:29:35.961021299 +0200
@@ -158,11 +158,15 @@
     fi
 fi
 
+if [ -z "${BUILD_BUILDTIME:-}" ]; then
+    BUILD_BUILDTIME=$(date +%s.%N)
+fi
+
 sed -i"" \
     -e "s#%DISTURL%#${DISTURL}#g" \
     -e "s#%SOURCEURL%#${SOURCEURL}#g" \
     -e "s#%SOURCEURL_WITH(\([^)]\+\))%#${SOURCEURL_PLACEHOLDER}#g" \
     -e "s/%RELEASE%/${RELEASE}/g" \
     -e "s/%ARCH%/${BUILD_ARCH}/g" \
-    -e "s/%BUILDTIME%/$(date --utc +%FT%T.%NZ)/g" "${files[@]}"
+    -e "s/%BUILDTIME%/$(date -d @${BUILD_BUILDTIME} --utc +%FT%T.%NZ)/g" 
"${files[@]}"
 

++++++ test.sh ++++++
--- /var/tmp/diff_new_pack.6Yn6w6/_old  2026-07-26 11:29:35.993022404 +0200
+++ /var/tmp/diff_new_pack.6Yn6w6/_new  2026-07-26 11:29:35.997022543 +0200
@@ -212,3 +212,24 @@
 
 rm test.kiwi config.sh
 
+# test different build time from reproducible buidls
+cat >.data <<EOF
+DISTURL="obs://build.suse.de/SUSE:SLE-15-SP3:Update:CR/images/5f0a221b7877396cbf977205e64690d2-sles15-image"
+RELEASE=4.2
+RECIPEFILE=_service:foobar:Dockerfile
+BUILD_ARCH=aarch64:aarch64_ilp32:armv8l
+BUILD_BUILDTIME=0
+EOF
+
+cat >Dockerfile <<EOF
+LABEL org.opencontainers.image.created="%BUILDTIME%"
+EOF
+
+bash "${script}"
+
+diff -u Dockerfile - <<EOF
+LABEL org.opencontainers.image.created="1970-01-01T00:00:00.000000000Z"
+EOF
+
+
+

Reply via email to