Skip to contentSkip to conversation

package_rpm: set clamp_mtime_to_source_date_epoch to 0

PATCH Bin Lan 1 participant 1 message Jan 3, 2025 1 message not in the archive

lore
Share & tools
lore

Bin Lan

author
#1 lore raw
In reply to a message not in the archive
Quoted 17 lines · Bin Lan via lists.openembedded.org

There is the following warning when the do_package_write_rpm task is executed when bitbake linux-yocto:
warning: %clamp_mtime_to_source_date_epoch is deprecated, please use %build_mtime_policy

This change sets clamp_mtime_to_source_date_epoch to 0 in do_package_rpm() to remove the warning.

---
  meta/classes-global/package_rpm.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-global/package_rpm.bbclass +0 -0
index 3579d0d695..d7b57e301b 100644

meta/classes-global/package_rpm.bbclass python do_package_rpm () { · line 705

Quoted 8 lines
meta/classes-global/package_rpm.bbclass +1 -1
@@ -699,7 +699,7 @@ python do_package_rpm () {
      cmd = cmd + " --define '_smp_ncpus_max 4'"
      cmd = cmd + " --define '_source_payload %s'" % rpmbuild_compmode
      cmd = cmd + " --define '_binary_payload %s'" % rpmbuild_compmode
-    cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
+    cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 0'"
      cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
      cmd = cmd + " --define '_buildhost reproducible'"
      cmd = cmd + " --define '__font_provides %{nil}'"

Please ignore this patch. I will investigate it again.

B.R.

Bin Lan

Quoted 8 lines

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