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

Etienne Champetier champetier.etienne at gmail.com
Wed Jun 19 01:30:33 PDT 2024


Le mer. 19 juin 2024 à 09:49, Florian Eckert <fe at dev.tdt.de> a écrit :
>
> 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].

This is not directly related to your patch, what I'm trying to say is
why spend cpu cycles
getting the last commit date for each package and not just hardcode it ?

> > 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