All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oe-selftests: add rpm to reproducible build selftest
@ 2021-02-17 11:57 Jan-Simon Möller
  0 siblings, 0 replies; 2+ messages in thread
From: Jan-Simon Möller @ 2021-02-17 11:57 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jan-Simon Möller

From: Jan-Simon Möller <jsmoeller@linuxfoundation.org>

rpm packaging has shown good numbers wrt reproducible builds as well
when testing core-image-minimal locally:

 Reproducibility summary for rpm: same=4671 different=0 missing=0 total=4671

Thus enable it in the autobuilder to be more widely tested.

v2: also add the define for "use_source_date_epoch_as_buildtime 1"

Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
---
 meta/classes/package_rpm.bbclass             | 1 +
 meta/lib/oeqa/selftest/cases/reproducible.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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 () {
     cmd = cmd + " --define '_binary_payload w6T.xzdio'"
     cmd = cmd + " --define '_source_payload w6T.xzdio'"
     cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
+    cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
     cmd = cmd + " --define '_buildhost reproducible'"
     if perfiledeps:
         cmd = cmd + " --define '__find_requires " + outdepends + "'"
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index 0963c2f11a..9785c5ffac 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -173,7 +173,7 @@ class DiffoscopeTests(OESelftestTestCase):
             self.assertTrue(os.path.exists(os.path.join(tmpdir, 'index.html')), "HTML index not found!")

 class ReproducibleTests(OESelftestTestCase):
-    package_classes = ['deb', 'ipk']
+    package_classes = ['deb', 'ipk', 'rpm']
     images = ['core-image-minimal', 'core-image-sato', 'core-image-full-cmdline', 'world']
     save_results = False
     if 'OEQA_DEBUGGING_SAVED_OUTPUT' in os.environ:
--
2.30.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] oe-selftests: add rpm to reproducible build selftest
@ 2021-02-16 18:28 Jan-Simon Möller
  0 siblings, 0 replies; 2+ messages in thread
From: Jan-Simon Möller @ 2021-02-16 18:28 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jan-Simon Möller

From: Jan-Simon Möller <jsmoeller@linuxfoundation.org>

rpm packaging has shown good numbers wrt reproducible builds as well
when testing core-image-minimal locally:

 Reproducibility summary for rpm: same=4671 different=0 missing=0 total=4671

Thus enable it in the autobuilder to be more widely tested.

Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
---
 meta/lib/oeqa/selftest/cases/reproducible.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index 32016f3e65..ae67afdd21 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -174,7 +174,7 @@ class DiffoscopeTests(OESelftestTestCase):
             self.assertTrue(os.path.exists(os.path.join(tmpdir, 'index.html')), "HTML index not found!")

 class ReproducibleTests(OESelftestTestCase):
-    package_classes = ['deb', 'ipk']
+    package_classes = ['deb', 'ipk', 'rpm']
     images = ['core-image-minimal', 'core-image-sato', 'core-image-full-cmdline', 'world']
     save_results = False
     if 'OEQA_DEBUGGING_SAVED_OUTPUT' in os.environ:
--
2.30.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-17 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 11:57 [PATCH] oe-selftests: add rpm to reproducible build selftest Jan-Simon Möller
  -- strict thread matches above, loose matches on Subject: below --
2021-02-16 18:28 Jan-Simon Möller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.