[oe-commits] [openembedded-core] 01/03: oeqa: reproducible: Preserve sstate mirror for first build

git at git.openembedded.org git at git.openembedded.org
Tue Sep 3 08:56:38 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit d45a9e8dec3e389bca78a93d1f66d05f72ddeca8
Author: Joshua Watt <jpewhacker at gmail.com>
AuthorDate: Fri Aug 30 20:41:24 2019 -0500

    oeqa: reproducible: Preserve sstate mirror for first build
    
    Preserves the SSTATE_MIRROR variable for the first build in the
    reproducible test. This patch is intended to test the theory that using
    the Yocto autobuilder sstate mirror will still be reproducible. The
    autobuilder always does clean builds and never rebuilds recipes that
    were built previously, thus building with the mirror but not
    sharing tmpdir and sstate with previous builds should be reproducible.
    
    There is no guarantee that all sstate caches are populated from clean
    builds so this patch cannot be submitted to master, and I'm not
    bothering sending it to the mailing list.
    
    Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at 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 b3bbb70..ffb405a 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -134,7 +134,6 @@ class ReproducibleTests(OESelftestTestCase):
             INHERIT += "reproducible_build"
             PACKAGE_CLASSES = "%s"
             SSTATE_DIR = "${TMPDIR}/sstate"
-            SSTATE_MIRROR = ""
             ''') % (' '.join('package_%s' % c for c in self.package_classes))
 
         # Perform a build.
@@ -154,6 +153,7 @@ class ReproducibleTests(OESelftestTestCase):
             bb.utils.remove(reproducibleB_tmp, recurse=True)
 
         self.write_config((textwrap.dedent('''\
+            SSTATE_MIRROR = ""
             TMPDIR = "%s"
             ''') % reproducibleB_tmp) + common_config)
         vars_B = get_bb_vars(capture_vars)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list