From 68a1cb1099d95306679a3e277d79bfb90787cf13 Mon Sep 17 00:00:00 2001 From: Sami Nurmenniemi Date: Mon, 21 Aug 2017 13:21:13 +0300 Subject: Fix DNS for Qemu running on b2qt toolchain sysroot The b2qt toolchain had broken link in sysroot/etc/resolv.conf. It was pointing to ../run/resolv.conf which is correct on actual device that gets the file dynamically from systemd. That file is never created for the toolchain and DNS operations fail. This change removes the link from the toolchain. Task-number: QTBUG-62580 Change-Id: I52098e667a9190e300a06b777f9fac778a545faf Reviewed-by: Samuli Piippo --- classes/populate_b2qt_qt5_sdk.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/populate_b2qt_qt5_sdk.bbclass b/classes/populate_b2qt_qt5_sdk.bbclass index 7acd095..fd7b43c 100644 --- a/classes/populate_b2qt_qt5_sdk.bbclass +++ b/classes/populate_b2qt_qt5_sdk.bbclass @@ -67,6 +67,9 @@ EOF echo 'TargetSpec = devices/linux-oe-generic-g++' >> $qtconf create_qtcreator_configure_script + + # Link /etc/resolv.conf is broken in the toolchain sysroot, remove it + rm -f ${SDK_OUTPUT}${SDKTARGETSYSROOT}${sysconfdir}/resolv.conf } create_qtcreator_configure_script () { -- cgit v1.2.3-54-g00ecf