This is an automated email from Gerrit.

"Sofiane HAMAM <sofiane.ha...@smile.fr>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8621

-- gerrit

commit 67fd0dbb51dbb68bb1b8acb8c2a21bf56938459c
Author: Sofiane HAMAM <sofiane.ha...@smile.fr>
Date:   Thu Mar 27 17:41:56 2025 +0100

    configure: Use SOURCE_DATE_EPOCH environment variable
    
    This package defines PKGBLDDATE as build timestamp which makes
    it non reproducible. Use SOURCE_DATE_EPOCH if it is found, otherwise
    use build timestamp. Following best practices, see :
    https://reproducible-builds.org/docs/source-date-epoch/
    
    Yocto, Fedora and others projects need this for reproducibility.
    
    Change-Id: I97526be8818756803340905c6fda73334c9ce6e0
    Signed-off-by: Sofiane HAMAM <sofiane.ha...@smile.fr>

diff --git a/src/Makefile.am b/src/Makefile.am
index 4d1c1a2509..b6731393c4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -34,7 +34,7 @@ if RELEASE
 else
 %C%_libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh 
$(top_srcdir)`\"
 %C%_libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git 
describe`\"
-%C%_libopenocd_la_CPPFLAGS += -DPKGBLDDATE=\"`date +%F-%R`\"
+%C%_libopenocd_la_CPPFLAGS += -DPKGBLDDATE=\"`date $${SOURCE_DATE_EPOCH:+-d 
@$${SOURCE_DATE_EPOCH}} +%F-%R`\"
 endif
 
 # add default CPPFLAGS

-- 

Reply via email to