summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Rathore <deeratho@cisco.com>2025-08-29 05:52:12 -0700
committerSteve Sakoman <steve@sakoman.com>2025-09-08 08:27:11 -0700
commit6ae24cb3c61948fd82a41fa1556c90420f9a5fa1 (patch)
tree94053b6d83aaa836121fc4c4830c744ce3248809
parent3899075ad9071e7bb1b5668bd0ac1ac5d4fe4963 (diff)
downloadpoky-6ae24cb3c61948fd82a41fa1556c90420f9a5fa1.tar.gz
default-distrovars.inc: Fix CONNECTIVITY_CHECK_URIS redirect issue
The default CONNECTIVITY_CHECK_URIS uses "https://yoctoproject.org/connectivity.html" which redirect to "https://www.yoctoproject.org/connectivity.html". Some network configurations with proxies or restricted internet access don't handle HTTP redirects properly during the sanity check phase, causing build failures with: ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: Fetcher failure for URL: 'https://yoctoproject.org/connectivity.html'. URL doesn't work. Updated the default URL to use the final destination directly to avoid redirect-related connectivity check failures. Also updated SDK test cases in https.py to use the corrected URL for consistency. (From OE-Core rev: aceb2920fbdef43db7b0b698865358e288901610) Signed-off-by: Deepak Rathore <deeratho@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 60cdf960a3560f391babd559737f1afb31fb2c5c) Signed-off-by: Deepak Rathore <deeratho@cisco.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/conf/distro/include/default-distrovars.inc2
-rw-r--r--meta/lib/oeqa/sdk/buildtools-cases/https.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc
index 3edba1b6d0..4ed2121b04 100644
--- a/meta/conf/distro/include/default-distrovars.inc
+++ b/meta/conf/distro/include/default-distrovars.inc
@@ -52,4 +52,4 @@ KERNEL_IMAGETYPES ??= "${KERNEL_IMAGETYPE}"
52# fetch from the network (and warn you if not). To disable the test set 52# fetch from the network (and warn you if not). To disable the test set
53# the variable to be empty. 53# the variable to be empty.
54# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master;branch=master 54# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master;branch=master
55CONNECTIVITY_CHECK_URIS ?= "https://yoctoproject.org/connectivity.html" 55CONNECTIVITY_CHECK_URIS ?= "https://www.yoctoproject.org/connectivity.html"
diff --git a/meta/lib/oeqa/sdk/buildtools-cases/https.py b/meta/lib/oeqa/sdk/buildtools-cases/https.py
index 35e549eb40..828aaea55b 100644
--- a/meta/lib/oeqa/sdk/buildtools-cases/https.py
+++ b/meta/lib/oeqa/sdk/buildtools-cases/https.py
@@ -13,8 +13,8 @@ class HTTPTests(OESDKTestCase):
13 """ 13 """
14 14
15 def test_wget(self): 15 def test_wget(self):
16 self._run('env -i wget --debug --output-document /dev/null https://yoctoproject.org/connectivity.html') 16 self._run('env -i wget --debug --output-document /dev/null https://www.yoctoproject.org/connectivity.html')
17 17
18 def test_python(self): 18 def test_python(self):
19 # urlopen() returns a file-like object on success and throws an exception otherwise 19 # urlopen() returns a file-like object on success and throws an exception otherwise
20 self._run('python3 -c \'import urllib.request; urllib.request.urlopen("https://yoctoproject.org/connectivity.html")\'') 20 self._run('python3 -c \'import urllib.request; urllib.request.urlopen("https://www.yoctoproject.org/connectivity.html")\'')