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

Etienne Champetier champetier.etienne at gmail.com
Tue Jun 18 07:56:37 PDT 2024


Hello Florian,

Le mar. 18 juin 2024 à 15:25, Florian Eckert <fe at dev.tdt.de> a écrit :
>
> 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 ?
(setting it to 0 might break stuff)
Having the last commit date in os-release is still interesting

Best
Etienne



More information about the openwrt-devel mailing list