* [OE-core][PATCH] package_rpm: set clamp_mtime_to_source_date_epoch to 0
@ 2025-01-03 6:32 Bin Lan
2025-01-03 10:24 ` Alexander Kanavin
0 siblings, 1 reply; 3+ messages in thread
From: Bin Lan @ 2025-01-03 6:32 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
---
meta/classes-global/package_rpm.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-global/package_rpm.bbclass b/meta/classes-global/package_rpm.bbclass
index 3579d0d695..d7b57e301b 100644
--- a/meta/classes-global/package_rpm.bbclass
+++ b/meta/classes-global/package_rpm.bbclass
@@ -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}'"
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core][PATCH] package_rpm: set clamp_mtime_to_source_date_epoch to 0
[not found] <18171B17FD27DA44.21892@lists.openembedded.org>
@ 2025-01-03 7:32 ` Bin Lan
0 siblings, 0 replies; 3+ messages in thread
From: Bin Lan @ 2025-01-03 7:32 UTC (permalink / raw)
To: openembedded-core
On 1/3/2025 2:32 PM, Bin Lan via lists.openembedded.org wrote:
> 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.
>
> Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
> ---
> meta/classes-global/package_rpm.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes-global/package_rpm.bbclass b/meta/classes-global/package_rpm.bbclass
> index 3579d0d695..d7b57e301b 100644
> --- a/meta/classes-global/package_rpm.bbclass
> +++ b/meta/classes-global/package_rpm.bbclass
> @@ -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
> -=-=-=-=-=-=-=-=-=-=-=-
> 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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [bin.lan.cn@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core][PATCH] package_rpm: set clamp_mtime_to_source_date_epoch to 0
2025-01-03 6:32 [OE-core][PATCH] package_rpm: set clamp_mtime_to_source_date_epoch to 0 Bin Lan
@ 2025-01-03 10:24 ` Alexander Kanavin
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2025-01-03 10:24 UTC (permalink / raw)
To: bin.lan.cn; +Cc: openembedded-core
On Fri, 3 Jan 2025 at 07:32, Bin Lan via lists.openembedded.org
<bin.lan.cn=windriver.com@lists.openembedded.org> wrote:
> 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.
But does this change introduce issues? This was originally set for a
reason, what was the reason? Should it be replaced with
built_mtime_policy as suggested?
> - cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
> + cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 0'"
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-03 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03 6:32 [OE-core][PATCH] package_rpm: set clamp_mtime_to_source_date_epoch to 0 Bin Lan
2025-01-03 10:24 ` Alexander Kanavin
[not found] <18171B17FD27DA44.21892@lists.openembedded.org>
2025-01-03 7:32 ` Bin Lan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox