summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/package_rpm.bbclass
diff options
context:
space:
mode:
authorBin Lan <bin.lan.cn@windriver.com>2025-01-03 16:53:24 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-04 12:34:04 +0000
commite71a52a528b7737ef0939466c1b7359349dd0118 (patch)
tree3a3ea0b160cd3189adfa3f683adf976956fb5a15 /meta/classes-global/package_rpm.bbclass
parentf47df2c445bfa9dec5632b71e60caad7f3675adb (diff)
downloadpoky-e71a52a528b7737ef0939466c1b7359349dd0118.tar.gz
package_rpm: set a timestamp handling policy with the new macro %build_mtime_policy
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 After RPM is upgraded to 4.20.0, the %clamp_mtime_to_source_date_epoch macro is now deprecated in favor of %build_mtime_policy set to clamp_to_source_date_epoch. (From OE-Core rev: fa9b9e599bbf3ac73c7a9b1d15ccb0e0bbbe4c11) Signed-off-by: Bin Lan <bin.lan.cn@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/package_rpm.bbclass')
-rw-r--r--meta/classes-global/package_rpm.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/package_rpm.bbclass b/meta/classes-global/package_rpm.bbclass
index 3579d0d695..f383ed140e 100644
--- a/meta/classes-global/package_rpm.bbclass
+++ b/meta/classes-global/package_rpm.bbclass
@@ -699,7 +699,7 @@ python do_package_rpm () {
699 cmd = cmd + " --define '_smp_ncpus_max 4'" 699 cmd = cmd + " --define '_smp_ncpus_max 4'"
700 cmd = cmd + " --define '_source_payload %s'" % rpmbuild_compmode 700 cmd = cmd + " --define '_source_payload %s'" % rpmbuild_compmode
701 cmd = cmd + " --define '_binary_payload %s'" % rpmbuild_compmode 701 cmd = cmd + " --define '_binary_payload %s'" % rpmbuild_compmode
702 cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'" 702 cmd = cmd + " --define 'build_mtime_policy clamp_to_source_date_epoch'"
703 cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'" 703 cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
704 cmd = cmd + " --define '_buildhost reproducible'" 704 cmd = cmd + " --define '_buildhost reproducible'"
705 cmd = cmd + " --define '__font_provides %{nil}'" 705 cmd = cmd + " --define '__font_provides %{nil}'"