* [PATCH] [master, jethro] Fix connectivity check for BB_FETCH_PREMIRRORONLY case
@ 2016-01-05 20:17 dl9pf
2016-01-05 20:17 ` [PATCH] " dl9pf
0 siblings, 1 reply; 3+ messages in thread
From: dl9pf @ 2016-01-05 20:17 UTC (permalink / raw)
To: openembedded-core
Hi!
This patch fixes a bug in the sanity checker that is visible if
you set up a PREMIRROR and start a project from scratch using
BB_FETCH_PREMIRRORONLY set. In this case the sanity check would fail
as BB_NO_NETWORK is not set directly
(just indirectly in the fetcher by BB_FETCH_PREMIRRORONLY).
Reproduce: Set up a PREMIRROR in the local network. Disconnect from
$INTERNET and build a new project using the PREMIRROR on the local net only.
Expected result: Build works using the PREMIRROR
Actual result: Build fails due to CONNECTIVITY_CHECK
Best,
Jan-Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Fix connectivity check for BB_FETCH_PREMIRRORONLY case
2016-01-05 20:17 [PATCH] [master, jethro] Fix connectivity check for BB_FETCH_PREMIRRORONLY case dl9pf
@ 2016-01-05 20:17 ` dl9pf
0 siblings, 0 replies; 3+ messages in thread
From: dl9pf @ 2016-01-05 20:17 UTC (permalink / raw)
To: openembedded-core
From: Jan-Simon Möller <dl9pf@gmx.de>
BB_FETCH_PREMIRRORONLY sets BB_NO_NETWORK (implicitly in the fetcher).
To avoid the sanity check to fail in an offline environment,
use the same override mechanism as in the fetcher.
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
---
meta/classes/sanity.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ad9dda8..62dce92 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -271,6 +271,9 @@ def check_connectivity(d):
test_uris = (d.getVar('CONNECTIVITY_CHECK_URIS', True) or "").split()
retval = ""
+ # Check for BB_FETCH_PREMIRRORONLY and adapt BB_NO_NETWORK
+ if bb.data.getVar("BB_FETCH_PREMIRRORONLY", self.d, True) is not None:
+ bb.data.setVar("BB_NO_NETWORK", "1", self.d)
# Only check connectivity if network enabled and the
# CONNECTIVITY_CHECK_URIS are set
network_enabled = not d.getVar('BB_NO_NETWORK', True)
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Fix connectivity check for BB_FETCH_PREMIRRORONLY case
@ 2015-12-17 21:34 dl9pf
0 siblings, 0 replies; 3+ messages in thread
From: dl9pf @ 2015-12-17 21:34 UTC (permalink / raw)
To: openembedded-core
From: Jan-Simon Möller <dl9pf@gmx.de>
BB_FETCH_PREMIRRORONLY sets BB_NO_NETWORK (implicitly in the fetcher).
To avoid the sanity check to fail in an offline environment,
use the same override mechanism as in the fetcher.
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
---
meta/classes/sanity.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ad9dda8..62dce92 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -271,6 +271,9 @@ def check_connectivity(d):
test_uris = (d.getVar('CONNECTIVITY_CHECK_URIS', True) or "").split()
retval = ""
+ # Check for BB_FETCH_PREMIRRORONLY and adapt BB_NO_NETWORK
+ if bb.data.getVar("BB_FETCH_PREMIRRORONLY", self.d, True) is not None:
+ bb.data.setVar("BB_NO_NETWORK", "1", self.d)
# Only check connectivity if network enabled and the
# CONNECTIVITY_CHECK_URIS are set
network_enabled = not d.getVar('BB_NO_NETWORK', True)
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-05 20:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 20:17 [PATCH] [master, jethro] Fix connectivity check for BB_FETCH_PREMIRRORONLY case dl9pf
2016-01-05 20:17 ` [PATCH] " dl9pf
-- strict thread matches above, loose matches on Subject: below --
2015-12-17 21:34 dl9pf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox