summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2021-02-18 15:25:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-19 11:17:11 +0000
commit0ccf53d8e10c3ea50372357b2e0113c8b23703f9 (patch)
tree175d0863c8ae26e6135a97b727a0a3c92a178cc0
parentb98fc88f63a14a43f3b903b7d5a4c6e783e4fcbf (diff)
downloadpoky-0ccf53d8e10c3ea50372357b2e0113c8b23703f9.tar.gz
package_rpm: Enable use_source_date_epoch_as_buildtime in package_rpm class
Adding --define 'use_source_date_epoch_as_buildtime 1' to rpmbuild ensure that the rpm header does have a consistent BUILDTIME tag. This allows the rpms to be built reproducibly. (From OE-Core rev: f16721df6b3d0d3e681d9a1b3393417bd62b6275) Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package_rpm.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index c48bece742..c1824306ee 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -687,6 +687,7 @@ python do_package_rpm () {
687 cmd = cmd + " --define '_binary_payload w6T.xzdio'" 687 cmd = cmd + " --define '_binary_payload w6T.xzdio'"
688 cmd = cmd + " --define '_source_payload w6T.xzdio'" 688 cmd = cmd + " --define '_source_payload w6T.xzdio'"
689 cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'" 689 cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
690 cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
690 cmd = cmd + " --define '_buildhost reproducible'" 691 cmd = cmd + " --define '_buildhost reproducible'"
691 if perfiledeps: 692 if perfiledeps:
692 cmd = cmd + " --define '__find_requires " + outdepends + "'" 693 cmd = cmd + " --define '__find_requires " + outdepends + "'"