So the next best thing to actually fixing our proxy woes in poky would be a build target which checks things out quickly. We should be able to do something like: bitbake check-network ... which would run through all of the supported fetcher backends, check them by fetching something from the internet (maybe even just from a yoctoproject.org location) and make sure each of them work. If one of them fails, the error message should be something helpful like "failed to fetch from a remote git repository. You might want to be sure that the git command can access the internet and that there is no firewall blocking it. Go to this URL to find a potential solution... "
*** Bug 1014 has been marked as a duplicate of this bug. ***
We should be able to add such checking into the sanity tests (so that it's run automatically). As this will potentially be a lengthy test we can use the check_sanity_tmpdir_change() sanity check harness such that it's only run when the tmpdir location has changed. It would probably be a nice idea to allow people to disable this test in their local.conf rather than running the test each time a new build dir is used. Alternatively we may consider adding a new sanity test harness for "first run" or some such which doesn't rely on any changeable configuration - however this could easily be a part 2 patch implemented later.
I have a first stab at this. Before we can merge it we'll need a list of uris we can rely on to fetch from (http/https/ftp/git) and to populate the wiki page: https://wiki.yoctoproject.org/wiki/ConnectivityTroubleshooting The code I have only checks http and https for now, feedback gratefully received! http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/proxy-test
Based on some feedback from Richard I've updated the patch and pushed it to the same contrib branch.
I have a set of URL's to use: https://eula-downloads.yoctoproject.org/ http://yoctoproject.org/ git://git.yoctoproject.org
Code out for review on the oe-core mailing list.
Patch merged http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9569e2b3471e0c61f2f105f8d611a1ba71cd93d0