I downloaded SailfishSDK-3.4.9-linux64-offline.run, installed it and tried to compile my own creation with it. It trigger a package installation, which naturally requires Internet connectivity, which requires DNS queries to work. All I get is an error message in Qt SDK saying that the build engine could not resolve releases.jolla.com
in the first place. (I fixed it, so the exact error message is gone.)
I root-SSH’d into the build engine and sure enough, I couldn’t ping
any host that required a DNS query. 8.8.8.8 responded OK, though.
After some digging I found out that /etc/resolv.conf
only contained 127.0.0.1
. It turned out that I had to manually add a DNS server to connman
like this (sanitized):
# connmanctl services
* O Wired ethernet_112233aabbcc_cable //LAN adapter
* R Wired ethernet_aabbcc112233_cable //SDK adapter
# connmanctl config ethernet_112233aabbcc_cable --nameservers 8.8.8.8
After rebooting the build engine for good measure, the targets can now install their packages.
My LAN seems to be OK and my host computer has a working Internet connectivity. Is this just some weird quirk of the offline image, or is there a bug in the build engine?