Skip to content

Failing to resolve DNS hostnames in "base" container

The modules libpinyin and librsvg failed to build for me, because they couldn't download from the Internet.

It seems to me that DNS resolution doesn't work already in base-system and base-configure.

$ bst shell base/base-configure.bst
[...]

# wget http://gnome.org
--2017-10-21 23:27:38--  http://gnome.org/
Resolving gnome.org (gnome.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘gnome.org’

# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

# getent hosts gnome.org
# 

I can work around it by adding echo 'nameserver 8.8.8.8' > /etc/resolv.conf to the "commands" section.

I guess in theory modules should not download stuff from the Internet anyway, because it makes the build process much less deterministic. But in practice they do?

Is something wrong with my computer/network configuration that this doesn't work? Does it work for others?


My version:

  • buildstream: c568739cd19ef4e48da963938cf31ab34e5d20a6
  • base-system: 24f36c9f602a34e25d08da62dd7d8496f470a1326f9bc57dcbb22fe4f59911bf