On 12/4/25 22:00, Ross Burton wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.

On 21 Nov 2025, at 05:46, Changqing Li via 
lists.openembedded.org<[email protected]> wrote:
No, there is no .bbappend. Here is how to reproduce it:
we have a git repo,  which contains downloades sources, which contains jquery's 
sources: ${BP}.js, ${BP}.min.js, ${BP}.min.map .
Create project under path A, and clone source_mirror under A/sources_mirror, 
and set A/sources_mirror as the first PREMIRRORS
Create another project under path B, and clone source_mirror under 
B/sources_mirror, and set B/sources_mirror as the first PREMIRRORS
In this way,  since jquery sources are fetched by git, the files mtime is the 
current time when the files are checking out.  So files mtime in project A is 
different with project B.
Then bitabke jquery under A and B get different rpm package,  the different part is 
"Build Date", which is get from source_date_epoch.
According to logic of get_source_date_epoch,  source_date_epoch of project will 
set to the youngest file of the sources.
in this case, unstable files mtime cause unstable source_date_epoch.
I agree with others on this thread: the fetcher expects that mtimes are 
preserved, but putting the mirror into a git repository for distribution 
doesn’t preserve mtimes. The problem here is using git, not the fetcher.  This 
is a relatively niche problem because most upstreams are tarballs or git repos, 
so the problem doesn’t affect them.

There are tools to deal with this problem, for example metastore 
(https://github.com/przemoc/metastore) which tracks timestamps.

(also, we’re only shipping jquery for diffoscope, we can improve the packaging 
here)

Thanks. There is another patch for this issue.

https://git.openembedded.org/openembedded-core/commit/?h=master-next&id=7a47c786e98c16c384c6872a662dd3142e7ee9d6

//Changqing


Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#227328): 
https://lists.openembedded.org/g/openembedded-core/message/227328
Mute This Topic: https://lists.openembedded.org/mt/116389229/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to