Bug 13450

Summary: opkg-build should use --clamp-mtime if SOURCE_DATE_EPOCH set
Product: [Yocto Project Subprojects] opkg Reporter: Ross Burton <ross.burton>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided    
Version: 0.3.6   
Target Milestone: 0.4.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 13513    

Description Ross Burton 2019-07-25 16:06:29 UTC
Context: https://reproducible-builds.org/docs/archives/

opkg-utils 86b2dc4c9cc0b40e79d0bb049b98532285942b25 removed the use of --mtime for archive generation but I think that's wrong, instead it should be passing --clamp-mtime along with --mtime.

I believe that's what dpkg does, at least.  Comparison builds happening now.

Note that --clamp-mtime needs a fairly new tar, so there might be sense in only passing those options if SOURCE_DATE_EPOCH is set.
Comment 1 Alejandro del Castillo 2019-09-16 15:05:31 UTC
Fixed on c3cc95693048bdd57a82069bad47abbc72a1932e