[PATCH] base-files: add SOURCE_DATE_EPOCH /usr/lib/os-release

Florian Eckert fe at dev.tdt.de
Wed Jun 19 00:48:59 PDT 2024


Hello Etienne,

>> The variable 'SOURCE_DATE_EPOCH' is used in the build system to have a
>> defined build time for the entire software. This information is 
>> discovered
>> with the script '/scripts/get_source_date_epoch.sh'.
>> 
>> This information is used to generate reproducible binary builds and 
>> should
>> therefore be available in the file '/usr/lib/os-release' on the 
>> target.
> 
> Why not set SOURCE_DATE_EPOCH to 1 and never change it again ?

Unfortunately, I don't understand what you're trying to tell me. The
'SOURCE_DATE_EPOCH' is the last commit time in OpenWrt git repo. This
is discovered with the script '/scripts/get_source_date_epoch.sh' [1].


> Having the last commit date in os-release is still interesting

:+1:

Best regards

Florian

[1] 
https://github.com/openwrt/openwrt/blob/main/scripts/get_source_date_epoch.sh



More information about the openwrt-devel mailing list