diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2021-02-18 15:25:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-04 17:39:10 +0000 |
commit | 2694047beb4f04d547c3418d0d587b3a66646121 (patch) | |
tree | 649a0e259ea1686a2f7a9294fa9cff3eff0e5ade /meta/classes/package_rpm.bbclass | |
parent | c6227ebb9a4c67f813176d1a2d8a8a0d7ff1fa19 (diff) | |
download | poky-2694047beb4f04d547c3418d0d587b3a66646121.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: 6842791f97546c963ea77215c9f5012dc40ed886)
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f16721df6b3d0d3e681d9a1b3393417bd62b6275)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 9145717f98..95731c7d8d 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -681,6 +681,7 @@ python do_package_rpm () { | |||
681 | cmd = cmd + " --define '_binary_payload w6T.xzdio'" | 681 | cmd = cmd + " --define '_binary_payload w6T.xzdio'" |
682 | cmd = cmd + " --define '_source_payload w6T.xzdio'" | 682 | cmd = cmd + " --define '_source_payload w6T.xzdio'" |
683 | cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'" | 683 | cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'" |
684 | cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'" | ||
684 | cmd = cmd + " --define '_buildhost reproducible'" | 685 | cmd = cmd + " --define '_buildhost reproducible'" |
685 | if perfiledeps: | 686 | if perfiledeps: |
686 | cmd = cmd + " --define '__find_requires " + outdepends + "'" | 687 | cmd = cmd + " --define '__find_requires " + outdepends + "'" |