package/qemu: disable libssh for the host variant
PATCH 1/4 package/qemu: disable libssh for the host variant
There is no host-libssh in Buildroot, avoid qemu build system to find libssh from the host.
Under certain circumstances (host distribution, openssl version), the qemu-system binary fail to start:
host/bin/qemu-system-aarch64: symbol lookup error: /lib64/libssh.so.4: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b
$ ldd output/host/bin/qemu-system-aarch64 [...] libssh.so.4 => /lib64/libssh.so.4
Explicitely disable libssh for the host variant.
--- package/qemu/qemu.mk | 1 + 1 file changed, 1 insertion(+)
package/qemu/qemu.mk +1 -0
@@ -303,6 +303,7 @@ define HOST_QEMU_CONFIGURE_CMDS --extra-cflags="$(HOST_QEMU_CFLAGS)" \ --extra-ldflags="$(HOST_LDFLAGS)" \ --python=$(HOST_DIR)/bin/python3 \ + --disable-libssh \ $(HOST_QEMU_OPTS) endef
Signature · 1 line
2.25.1
PATCH 2/4 package/qemu: disable vnc optional support for the host variant
The vnc support is enabled by default and the build system will try to detect automatically some external libraries installed on the host for vnc-png, vnc-jpeg and vnc-sasl.
$ ldd output/host/bin/qemu-system-aarch64 [...] libpng16.so.16 => /lib64/libpng16.so.16 or libpng16.so.16 => output/host/lib/libpng16.so.16 if host-libpng is built before host-qemu.
Disable explicitely thoses options to improve the build reproducibility.
--- package/qemu/qemu.mk | 3 +++ 1 file changed, 3 insertions(+)
package/qemu/qemu.mk +3 -0
@@ -304,6 +304,9 @@ define HOST_QEMU_CONFIGURE_CMDS --extra-ldflags="$(HOST_LDFLAGS)" \ --python=$(HOST_DIR)/bin/python3 \ --disable-libssh \ + --disable-vnc-jpeg \ + --disable-vnc-png \ + --disable-vnc-sasl \ $(HOST_QEMU_OPTS) endef
Signature · 1 line
2.25.1
PATCH 3/4 package/qemu: disable bzip2 for the host variant
In reply to Romain Naourbzip2 support is needed for reading bzip2-compressed dmg images.
But the host-bzip2 is missing from host qemu package dependency, so the qemu build system will try to detect automatically the external libbzip2 libraries installed on the host.
$ ldd output/host/bin/qemu-system-aarch64 [...] libbz2.so.1 => /lib64/libbz2.so.1 or libbz2.so.1.0 => output/host/lib/libbz2.so.1.0 if host-bzip2 is built before host-qemu.
Disable explicitely bzip2 options to improve the build reproducibility.
--- package/qemu/qemu.mk | 1 + 1 file changed, 1 insertion(+)
package/qemu/qemu.mk +1 -0
@@ -303,6 +303,7 @@ define HOST_QEMU_CONFIGURE_CMDS --extra-cflags="$(HOST_QEMU_CFLAGS)" \ --extra-ldflags="$(HOST_LDFLAGS)" \ --python=$(HOST_DIR)/bin/python3 \ + --disable-bzip2 \ --disable-libssh \ --disable-vnc-jpeg \ --disable-vnc-png \
Signature · 1 line
2.25.1
PATCH 4/4 package/qemu: disable SDL2 for the host variant
In reply to Romain NaourThere is no host variant for SDL2 library in Buildroot. So the qemu build system will try to detect automatically the external SDL2 libraries installed on the host.
$ ldd output/host/bin/qemu-system-aarch64 [...] libSDL2-2.0.so.0 => /lib64/libSDL2-2.0.so.0
Disable explicitely sdl2 options (named sdl) to improve the build reproducibility.
--- package/qemu/qemu.mk | 1 + 1 file changed, 1 insertion(+)
package/qemu/qemu.mk +1 -0
@@ -305,6 +305,7 @@ define HOST_QEMU_CONFIGURE_CMDS --python=$(HOST_DIR)/bin/python3 \ --disable-bzip2 \ --disable-libssh \ + --disable-sdl \ --disable-vnc-jpeg \ --disable-vnc-png \ --disable-vnc-sasl \
Signature · 1 line
2.25.1
PATCH 1/4 package/qemu: disable libssh for the host variant
In reply to Romain NaourRomain, All,
On 2020-04-06 16:21 +0200, Romain Naour spake thusly:
Quoted 8 lines
There is no host-libssh in Buildroot, avoid qemu build system to find libssh from the host.
Under certain circumstances (host distribution, openssl version), the qemu-system binary fail to start:
host/bin/qemu-system-aarch64: symbol lookup error:
/lib64/libssh.so.4: undefined symbol:EVP_KDF_ctrl, versionOPENSSL_1_1_1b
Quoted 7 lines
$ ldd output/host/bin/qemu-system-aarch64 [...] libssh.so.4 => /lib64/libssh.so.4Explicitely disable libssh for the host variant.
Signed-off-by Romain Naour <[email protected]>
All 4 patches applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 23 lines
--- package/qemu/qemu.mk | 1 + 1 file changed, 1 insertion(+)package/qemu/qemu.mk +1
-0@@ -303,6 +303,7 @@ define HOST_QEMU_CONFIGURE_CMDS --extra-cflags="$(HOST_QEMU_CFLAGS)" \ --extra-ldflags="$(HOST_LDFLAGS)" \ --python=$(HOST_DIR)/bin/python3 \ + --disable-libssh \ $(HOST_QEMU_OPTS) endefSignature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'