From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507116; cv=none; d=zoho.com; s=zohoarc; b=mIBp/720ZCSmF+s1+6k2EA9HtzvhwTgl0ripk0CEF9+spddXk53h65QXxfs/1K/+S66JT+6U/7XZUs4lF4u9gRhUcuieyMyfTSqkidgVNSnATSaM6EGtW9c81Cwa7aIjg/fBOqRPwShf+G6dCBt4RJPqsqlwUpSbuRunwfZwsAw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507116; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=gSlYAGC6yReVE8BL/sZ5foVPTAdilZILGl/VKZw2MAw=; b=Wnb6o2+Ra6Ns2nXtDhYDr/OmB6UxazddXccvZHMij1Tw0oGShbNTrJ+ZrNhPllcEKCp1r1shl4TEV6BMqiUPi1Ze9IGwopdcpATP2u2PX5k/sj8ZwDak++bkdI1e+7ORlyR060ajYiOR+GEdymRr0ACGKQEFXfYUMQMsobwdx+g= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560507116251885.562464580245; Fri, 14 Jun 2019 03:11:56 -0700 (PDT) Received: from localhost ([::1]:49836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjBb-0005X9-4o for importer@patchew.org; Fri, 14 Jun 2019 06:11:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48563) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj7W-0003eQ-Sw for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:07:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj7V-00007Y-T9 for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:07:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35636) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj7T-00005z-FF; Fri, 14 Jun 2019 06:07:39 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AECEA3082E23; Fri, 14 Jun 2019 10:07:38 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8355F1001B2F; Fri, 14 Jun 2019 10:07:32 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:10 +0200 Message-Id: <20190614100718.14019-2-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 14 Jun 2019 10:07:38 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 1/9] configure: Only generate GLUSTERFS variables if glusterfs is usable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" It is pointless and confusing to have GLUSTERFS variables in config-host.mak when glusterfs is not usable. Reviewed-by: Niels de Vos Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 --- configure | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/configure b/configure index b091b82cb3..13fd4a1166 100755 --- a/configure +++ b/configure @@ -7118,30 +7118,30 @@ if test "$glusterfs" =3D "yes" ; then echo "CONFIG_GLUSTERFS=3Dm" >> $config_host_mak echo "GLUSTERFS_CFLAGS=3D$glusterfs_cflags" >> $config_host_mak echo "GLUSTERFS_LIBS=3D$glusterfs_libs" >> $config_host_mak -fi =20 -if test "$glusterfs_xlator_opt" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_XLATOR_OPT=3Dy" >> $config_host_mak -fi + if test "$glusterfs_xlator_opt" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_XLATOR_OPT=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_discard" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_DISCARD=3Dy" >> $config_host_mak -fi + if test "$glusterfs_discard" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_DISCARD=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_fallocate" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_FALLOCATE=3Dy" >> $config_host_mak -fi + if test "$glusterfs_fallocate" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_FALLOCATE=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_zerofill" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_ZEROFILL=3Dy" >> $config_host_mak -fi + if test "$glusterfs_zerofill" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_ZEROFILL=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_ftruncate_has_stat" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT=3Dy" >> $config_host_mak -fi + if test "$glusterfs_ftruncate_has_stat" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_iocb_has_stat" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_IOCB_HAS_STAT=3Dy" >> $config_host_mak + if test "$glusterfs_iocb_has_stat" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_IOCB_HAS_STAT=3Dy" >> $config_host_mak + fi fi =20 if test "$libssh2" =3D "yes" ; then --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507324; cv=none; d=zoho.com; s=zohoarc; b=OefNSRgs3RTl7yfXZto+LOTCwKDLb+8PW08C5u5LcrxpAiZopu2R35ln7sdn+8+9dAH7TSf4zwpoGkQOMUtrC3JjQUVA6QePapkJkwtvayIX7eHnQV5BQc3iAOQ7vsZsyHNO0u5F/52wH/2CmMS7xqjJRKeLMVO+sgs9QRHYH30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507324; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=3P69/rnRpPZsC6NoJxu6q010MKcViQOa3T9Y71QXJr0=; b=C5S71XRMCsCYWLoSmRT0t83HyVa0WBrvg7X053HpSAj5PNvnoTjZ8m6zj+HuJzg5dcabVhedtTXUuMZxMtQTDDVKWXR/ArU+CbeR98qaeI0SuT9H+5dI0CxhcRyBPNHG9V+Q3osrkiv95Ob11sMOuJYjqpn/IwTDK9d16M0qskc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560507324849638.9072598851386; Fri, 14 Jun 2019 03:15:24 -0700 (PDT) Received: from localhost ([::1]:49868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjEx-0000y0-TG for importer@patchew.org; Fri, 14 Jun 2019 06:15:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48650) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj7l-0003kD-4n for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:07:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj7i-0000C9-Ig for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:07:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45726) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj7c-00008r-Pp; Fri, 14 Jun 2019 06:07:49 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A36E030821F4; Fri, 14 Jun 2019 10:07:44 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 47AE21001B0F; Fri, 14 Jun 2019 10:07:38 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:11 +0200 Message-Id: <20190614100718.14019-3-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Fri, 14 Jun 2019 10:07:44 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 2/9] configure: Link test before auto-enabling GlusterFS libraries X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the libraries link correctly before considering them as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -lgfapi /usr/bin/ld: cannot find -lglusterfs /usr/bin/ld: cannot find -lgfrpc /usr/bin/ld: cannot find -lgfxdr collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep gf config-host.mak GLUSTERFS_LIBS=3D-lacl -lgfapi -lglusterfs -lgfrpc -lgfxdr -luuid $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 13fd4a1166..fe0e2e1b75 100755 --- a/configure +++ b/configure @@ -4179,9 +4179,19 @@ fi # glusterfs probe if test "$glusterfs" !=3D "no" ; then if $pkg_config --atleast-version=3D3 glusterfs-api; then - glusterfs=3D"yes" glusterfs_cflags=3D$($pkg_config --cflags glusterfs-api) glusterfs_libs=3D$($pkg_config --libs glusterfs-api) + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$glusterfs_cflags" "$glusterfs_libs" ; then + if test "$glusterfs" =3D "yes" ; then + error_exit "glusterfs check failed." + fi + glusterfs=3D"no" + else + glusterfs=3D"yes" + fi if $pkg_config --atleast-version=3D4 glusterfs-api; then glusterfs_xlator_opt=3D"yes" fi --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507307; cv=none; d=zoho.com; s=zohoarc; b=gX4va4puUVFBi/r2euIMUJQcB12OaRU24+Dv8OUzcS1yjocDdErbSntww+2+vVYEKGUghOJTy3sixdgOPDrByFNsHW2Oubg8zUMW9EQ3vzKuJGZarWUkilCiL3wNPXbHkv95H2/L0hTKchioUHNaXMXCdNMwYUrMKkW+hZgH6R4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507307; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=bDlh4lsr4WWLRkHoipsntBuHWx161odkF3SJuHRAnCc=; b=lESqBe92bg80akulAdIF5K3/Mr77XNMsz7VkjNzYCf/cqO2BvGP0vE9D+KVa1TUxftoCWidMx6/AhvXkoxY0P+/3YwiG2LTvQX1lp90hZN63f58LamGEH3sljy0xN7hQTftE4GVRzXdbbUmOqtnV5Zv94LllJjnb5JQrX/VWHKQ= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560507307678373.3761497369253; Fri, 14 Jun 2019 03:15:07 -0700 (PDT) Received: from localhost ([::1]:49866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjEg-0000lb-KU for importer@patchew.org; Fri, 14 Jun 2019 06:15:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48679) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj7q-0003lw-Ek for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj7o-0000FH-KO for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34184) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj7j-0000CI-7c; Fri, 14 Jun 2019 06:07:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 74C24C01F278; Fri, 14 Jun 2019 10:07:54 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6B00C1001B0F; Fri, 14 Jun 2019 10:07:45 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:12 +0200 Message-Id: <20190614100718.14019-4-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 14 Jun 2019 10:07:54 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 3/9] configure: Link test before auto-enabling libusb library X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the library links correctly before considering it as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -ludev collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep udev config-host.mak LIBUSB_LIBS=3D-lusb-1.0 -ludev -pthread $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure b/configure index fe0e2e1b75..2ebaa32746 100755 --- a/configure +++ b/configure @@ -4894,9 +4894,19 @@ fi # check for libusb if test "$libusb" !=3D "no" ; then if $pkg_config --atleast-version=3D1.0.13 libusb-1.0; then - libusb=3D"yes" libusb_cflags=3D$($pkg_config --cflags libusb-1.0) libusb_libs=3D$($pkg_config --libs libusb-1.0) + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$libusb_cflags" "$libusb_libs" ; then + if test "$libusb" =3D "yes" ; then + error_exit "libusb check failed." + fi + libusb=3D"no" + else + libusb=3D"yes" + fi else if test "$libusb" =3D "yes"; then feature_not_found "libusb" "Install libusb devel >=3D 1.0.13" --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507125; cv=none; d=zoho.com; s=zohoarc; b=dbfxyJhzG+PTf10+aT4prg8lLFEzjaNEc4rsP6weOKBNCrmcrZbO48irD6NnM0tEzIrZqw0armOJgswCISHk8TvKeCeCxXSklMKicsq713afcdinCyKN0LeWOrSMbLQ2UiHjs+4Y0ARoMzNgM7hbJEWndC/aHHKpn6giMwqGEIU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507125; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=R409N5DsX1fr6iihxmdUjy88AaJwUOrUoehXy8otIdY=; b=BKpNmWlGC+ZJ+qdti5QVr7QAsNJB41xMHWvxdxzODNcmUA00kqFepC7hSGBR4qrD9tFxdCXHeElFNNwLGdds9/5LECN5oxMOcwgthIxLO4a/5OhmdRsYsQyVaPbtI1faEvbMaqBwKoAbj/ub6US6f1GUm7+mG0WJrotVzXh9FA4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560507125470833.8008929378612; Fri, 14 Jun 2019 03:12:05 -0700 (PDT) Received: from localhost ([::1]:49838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjBg-0005mT-AX for importer@patchew.org; Fri, 14 Jun 2019 06:12:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48728) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj7u-0003nq-Ok for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj7s-0000P9-Se for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33406) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj7p-0000FS-6b; Fri, 14 Jun 2019 06:08:02 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 67F6386676; Fri, 14 Jun 2019 10:08:00 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 416F01001B1B; Fri, 14 Jun 2019 10:07:54 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:13 +0200 Message-Id: <20190614100718.14019-5-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 14 Jun 2019 10:08:00 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 4/9] configure: Link test before auto-enabling libusbredir library X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the library links correctly before considering it as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -lusbredirparser collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep redir config-host.mak USB_REDIR_LIBS=3D-lusbredirparser $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2ebaa32746..0dd6e8bed3 100755 --- a/configure +++ b/configure @@ -4918,9 +4918,19 @@ fi # check for usbredirparser for usb network redirection support if test "$usb_redir" !=3D "no" ; then if $pkg_config --atleast-version=3D0.6 libusbredirparser-0.5; then - usb_redir=3D"yes" usb_redir_cflags=3D$($pkg_config --cflags libusbredirparser-0.5) usb_redir_libs=3D$($pkg_config --libs libusbredirparser-0.5) + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$usb_redir_cflags" "$usb_redir_libs" ; then + if test "$usb_redir" =3D "yes" ; then + error_exit "usbredir check failed." + fi + usb_redir=3D"no" + else + usb_redir=3D"yes" + fi else if test "$usb_redir" =3D "yes"; then feature_not_found "usb-redir" "Install usbredir devel" --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507159; cv=none; d=zoho.com; s=zohoarc; b=Gn9WkdT0jxrXGik3/pniaQfgNeFvo1yQK9s4Kk4sLM6WTWF4ZPb21oNpbxqnHkJOr5UxyVod6x+CblilstE8BJ/VLn/8OHoZ/76bXzsJ7NcN6YOgbAiiZmPhwBNgtBFT964yP9GmyEygTtGjk3i+3dquFS3zDOpWyWgrEz+FkIw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507159; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ozcxocPvDEkN/AWUmXJBwZogXnPELFFfyXarJPw/Udc=; b=aYgSIKxbWYn7+XSuRL0xrGgTE5OBTK9EnvMdgF5JVolSCzQaKJPLWlNZZFlrZPoHF8wtY8CTbt+MS4W5HV+aCvSDvXRA6T7uj5RmJpLLXysjVLIIJsm9gN5AZ5PiIp7LX/H8UcmkXjfogF2iyHSzJLYgcEibfB10fgSkZXtog+0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156050715984096.08205458002237; Fri, 14 Jun 2019 03:12:39 -0700 (PDT) Received: from localhost ([::1]:49840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjCI-0006O7-QP for importer@patchew.org; Fri, 14 Jun 2019 06:12:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48775) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj81-0003wl-KA for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj80-0000bO-Kd for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58708) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj7w-0000R9-NV; Fri, 14 Jun 2019 06:08:09 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C953437EE7; Fri, 14 Jun 2019 10:08:06 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 33B671001B0F; Fri, 14 Jun 2019 10:08:00 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:14 +0200 Message-Id: <20190614100718.14019-6-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 14 Jun 2019 10:08:06 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 5/9] configure: Link test before auto-enabling PulseAudio library X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the library links correctly before considering it as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -lpulse /usr/bin/ld: cannot find -lpulsecommon-11.1 collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep pulse config-host.mak PULSE_LIBS=3D-L/usr/lib/aarch64-linux-gnu/pulseaudio -lpulse -lpulsecommo= n-11.1 $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 0dd6e8bed3..449dbd69ce 100755 --- a/configure +++ b/configure @@ -3408,10 +3408,21 @@ for drv in $audio_drv_list; do =20 pa | try-pa) if $pkg_config libpulse --exists; then - pulse_libs=3D$($pkg_config libpulse --libs) - audio_pt_int=3D"yes" - if test "$drv" =3D "try-pa"; then - audio_drv_list=3D$(echo "$audio_drv_list" | sed -e 's/try-pa/p= a/') + pulse_cflags=3D$($pkg_config --cflags libpulse) + pulse_libs=3D$($pkg_config --libs libpulse) + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$pulse_cflags" "$pulse_libs" ; then + unset pulse_cflags pulse_libs + if test "$drv" =3D "try-pa"; then + audio_drv_list=3D$(echo "$audio_drv_list" | sed -e 's/try-= pa//') + fi + else + audio_pt_int=3D"yes" + if test "$drv" =3D "try-pa"; then + audio_drv_list=3D$(echo "$audio_drv_list" | sed -e 's/try-= pa/pa/') + fi fi else if test "$drv" =3D "try-pa"; then --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507398; cv=none; d=zoho.com; s=zohoarc; b=OItt63MfGZ3pVsNPX6PgckuKLNiBdk9voYLCXQ3XZuMj5KpM5ZU6i1yhMOcKN53Bftty8SfdOrY7+3aW3WihgwPF88HQJjRX9bBvXlYms8iyJLzySC4MDROJ29uFx0N0xHkMbEnRlPpI6wQhFDCyaT9C3QGo4o2xEMemiHntanM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507398; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=wu2uY9roXebv8bo00HrOHUPWxqcaITrQ+FdvY/bicyw=; b=D9REV/bTDfgy6NV3SdWiY6G+hm+djtavrIJzzY3QiQdw9LcqvGVjKnpzRtD2ykkrnK0/taEK63n/TBAXTed5wy6ZQAEm/oDe6vQE/1UBAF62diQfz5j81ZPMzcZr8AjxszsKGjwu6ZC0RvsAP5nJ7vEGZ8lqZzi7lzTIKLrKE34= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560507398739796.6840470619553; Fri, 14 Jun 2019 03:16:38 -0700 (PDT) Received: from localhost ([::1]:49878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjG9-00021M-OG for importer@patchew.org; Fri, 14 Jun 2019 06:16:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48825) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj88-0004EA-Kx for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj87-0000im-Lw for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56214) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj85-0000hJ-BT; Fri, 14 Jun 2019 06:08:17 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9520866967; Fri, 14 Jun 2019 10:08:16 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3C8E91001B1B; Fri, 14 Jun 2019 10:08:06 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:15 +0200 Message-Id: <20190614100718.14019-7-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 14 Jun 2019 10:08:16 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 6/9] configure: Link test before auto-enabling OpenGL libraries X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the libraries link correctly before considering them as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-lm32-softmmu [...] LINK lm32-softmmu/qemu-system-lm32 /usr/bin/ld: cannot find -lepoxy /usr/bin/ld: cannot find -lgbm collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-lm32' failed make[1]: *** [qemu-system-lm32] Error 1 $ fgrep epoxy config-host.mak OPENGL_LIBS=3D-lepoxy -ldl -lgbm -ldl $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 449dbd69ce..a3da5adf80 100755 --- a/configure +++ b/configure @@ -4133,11 +4133,21 @@ if test "$opengl" !=3D "no" ; then if $pkg_config $opengl_pkgs; then opengl_cflags=3D"$($pkg_config --cflags $opengl_pkgs)" opengl_libs=3D"$($pkg_config --libs $opengl_pkgs)" - opengl=3Dyes - if test "$gtk" =3D "yes" && $pkg_config --exists "$gtkpackage >=3D 3.1= 6"; then - gtk_gl=3D"yes" + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$opengl_cflags" "$opengl_libs" ; then + if test "$opengl" =3D "yes" ; then + error_exit "opengl check failed." + fi + opengl=3Dno + else + opengl=3Dyes + if test "$gtk" =3D "yes" && $pkg_config --exists "$gtkpackage >=3D= 3.16"; then + gtk_gl=3D"yes" + fi + QEMU_CFLAGS=3D"$QEMU_CFLAGS $opengl_cflags" fi - QEMU_CFLAGS=3D"$QEMU_CFLAGS $opengl_cflags" else if test "$opengl" =3D "yes" ; then feature_not_found "opengl" "Please install opengl (mesa) devel pkgs:= $opengl_pkgs" --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507485; cv=none; d=zoho.com; s=zohoarc; b=AgU7dXu+bQomf4rwQZ2oVKI9YGI9VuzfiqQK6qR4zLMRRFCqAJa/fPlUn5HPZoz8XYK9f25E1aA8Vdm9dI3tEVjYdGZxiBLUfDzXV47ile96FbDHhi4V98b7Y9P/redYSb3IhX9NdpYSvka7e/McovnzBrVBq0TNLUOAOLAPGzM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507485; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=rmXPrAr1OeTPd8H2piqWcrgnALC0Yo2GHTput3KeVdg=; b=X3L9qvzSV3xR/KT8VreAjkdetGNz4Y7RkEBQ3gS0l7Ugtv7NmbDOi3yjzfZFGiEJeVe6vu6k7+CIa5mN5+Z44Rg42SBFnlGSNOHvUX4SUJOLLiRbgkiAen74umeSh2Z9lP9NWVKP3YCMIILkdphhjUwozWCrwRAYpID57Xvo2C0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 15605074856001003.9697139701073; Fri, 14 Jun 2019 03:18:05 -0700 (PDT) Received: from localhost ([::1]:49898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjHR-00040J-9T for importer@patchew.org; Fri, 14 Jun 2019 06:17:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48885) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj8E-0004Rg-F9 for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj8D-0000m1-Cb for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51878) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj8A-0000kC-LS; Fri, 14 Jun 2019 06:08:22 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E1629308425B; Fri, 14 Jun 2019 10:08:21 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5EB301001DCD; Fri, 14 Jun 2019 10:08:17 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:16 +0200 Message-Id: <20190614100718.14019-8-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 14 Jun 2019 10:08:22 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 7/9] configure: Link test before auto-enabling GTK libraries X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the libraries link correctly before considering them as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-lm32-softmmu [...] LINK lm32-softmmu/qemu-system-lm32 /usr/bin/ld: cannot find -lgtk-3 /usr/bin/ld: cannot find -latk-bridge-2.0 /usr/bin/ld: cannot find -latspi /usr/bin/ld: cannot find -lsystemd /usr/bin/ld: cannot find -lgdk-3 /usr/bin/ld: cannot find -lwayland-cursor /usr/bin/ld: cannot find -lwayland-egl /usr/bin/ld: cannot find -lwayland-client /usr/bin/ld: cannot find -lepoxy /usr/bin/ld: cannot find -lgraphite2 collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-lm32' failed make[1]: *** [qemu-system-lm32] Error 1 $ fgrep gdk config-host.mak GTK_LIBS=3D-lgtk-3 -latk-bridge-2.0 -latspi -ldbus-1 -lpthread -lsystemd = -lgdk-3 -lgio-2.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage= -lXfixes -lxkbcommon -lwayland-cursor -lwayland-egl -lwayland-client -lepo= xy -ldl -lpangocairo-1.0 -lpangoft2-1.0 -lharfbuzz -lm -lgraphite2 -lpango-= 1.0 -lm -latk-1.0 -lcairo-gobject -lcairo -lz -lpixman-1 -lfontconfig -lexp= at -lfreetype -lexpat -lfreetype -lpng16 -lm -lz -lm -lxcb-shm -lxcb-render= -lXrender -lXext -lX11 -lpthread -lxcb -lXau -lXdmcp -lgdk_pixbuf-2.0 -lm = -lpng16 -lm -lz -lm -lz -lgio-2.0 -lz -lresolv -lselinux -lmount -lgmodule-= 2.0 -pthread -ldl -lgobject-2.0 -lffi -lglib-2.0 -pthread -lpcre -pthread -= lX11 -lpthread -lxcb -lXau -lXdmcp VTE_CFLAGS=3D-pthread -I/usr/include/vte-2.91 -I/usr/include/gtk-3.0 -I/usr= /include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 = -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/= include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/inclu= de/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pix= man-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freet= ype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/l= ibpng16 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86= _64-linux-gnu/glib-2.0/include -I/usr/include/p11-kit-1 $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure b/configure index a3da5adf80..ffd269b34f 100755 --- a/configure +++ b/configure @@ -2782,7 +2782,17 @@ if test "$gtk" !=3D "no"; then gtk_cflags=3D"$gtk_cflags $x11_cflags" gtk_libs=3D"$gtk_libs $x11_libs" fi - gtk=3D"yes" + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$gtk_cflags" "$gtk_libs" ; then + if test "$gtk" =3D "yes" ; then + error_exit "gtk check failed." + fi + gtk=3D"no" + else + gtk=3D"yes" + fi elif test "$gtk" =3D "yes"; then feature_not_found "gtk" "Install gtk3-devel" else --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560507357; cv=none; d=zoho.com; s=zohoarc; b=Pq/LlkO48e317jIPsBDrND7PwsY+4xna0T4NodknTJTyxwtnE4fL2afGkHfeK34x7HGTBSFjXrAsVu0p3svstLZyf2a8QdjqsMjyFFvW77l0kutERO8uCvHJFBHQNofAH4T7tPJ3qWXFTiDWdD+9mWgY1yXaxO4rpthb8Q/oZyc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560507357; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=LXW17LPSPjo4FJ+IB2WGSpGT7y8l+fkY5qkc/q5ZGsA=; b=MNkkr8Myhc6Smsgct3/c2sIyl2WITCjeS4px+61H0gFetFE/yy15GmVOkVWS0DUTFiI8egnaCXxXGa/fEiu4biyIe3Ct4X53UuVxqinZ7t/wrmbMBX4A4a06hqoQA4xAWN19nRTmVfkk/Zn+MErMot2KKWCP0eM+ukJebuo0whs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560507357041276.9567900658301; Fri, 14 Jun 2019 03:15:57 -0700 (PDT) Received: from localhost ([::1]:49870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjFU-0001Px-3S for importer@patchew.org; Fri, 14 Jun 2019 06:15:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48928) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbj8K-0004eR-2a for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj8J-0000p4-11 for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:08:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48570) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj8G-0000no-MF; Fri, 14 Jun 2019 06:08:28 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D2FD081DF1; Fri, 14 Jun 2019 10:08:27 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8ADD41001B0F; Fri, 14 Jun 2019 10:08:22 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:17 +0200 Message-Id: <20190614100718.14019-9-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 14 Jun 2019 10:08:27 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 8/9] tests/docker: Kludge for missing libunistring.so symlink on Ubuntu 18.04 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" When linking statically on Ubuntu 18.04 we get: $ make subdir-x86_64-softmmu [...] LINK x86_64-softmmu/qemu-system-x86_64 c++: error: /usr/lib/x86_64-linux-gnu/libunistring.so: No such file or di= rectory This library is pulled in by GTK: $ pkg-config --libs --static gtk+-3.0 -lgtk-3 -latk-bridge-2.0 -latspi -ldbus-1 -lpthread -lsystemd -lgdk-3 -lg= io-2.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -= lxkbcommon -lwayland-cursor -lwayland-egl -lwayland-client -lepoxy -ldl -lp= angocairo-1.0 -lpangoft2-1.0 -lharfbuzz -lm -lgraphite2 -lpango-1.0 -lm -la= tk-1.0 -lcairo-gobject -lcairo -lz -lpixman-1 -lfontconfig -lexpat -lfreety= pe -lexpat -lfreetype -lpng16 -lm -lz -lm -lxcb-shm -lxcb-render -lXrender = -lXext -lX11 -lpthread -lxcb -lXau -lXdmcp -lgdk_pixbuf-2.0 -lm -lpng16 -lm= -lz -lm -lz -lgio-2.0 -lz -lresolv -lselinux -lmount -lgmodule-2.0 -pthrea= d -ldl -lgobject-2.0 -lffi -lglib-2.0 -pthread -lpcre -pthread However, while the library is presentm, its symlink is missing: $ ls -ld /usr/lib/x86_64-linux-gnu/libunistring.so ls: cannot access '/usr/lib/x86_64-linux-gnu/libunistring.so': No such fi= le or directory $ ls -ld /usr/lib/x86_64-linux-gnu/libunistring.so* lrwxrwxrwx. 1 root root 21 Mar 3 2018 /usr/lib/x86_64-linux-gnu/li= bunistring.so.2 -> libunistring.so.2.1.0 -rw-r--r--. 1 root root 1562664 Mar 3 2018 /usr/lib/x86_64-linux-gnu/li= bunistring.so.2.1.0 Fix the issue by creating the missing symlink manually. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/dockerfiles/ubuntu1804.docker | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/docker/dockerfiles/ubuntu1804.docker b/tests/docker/dock= erfiles/ubuntu1804.docker index 2e2900150b..7e45c52166 100644 --- a/tests/docker/dockerfiles/ubuntu1804.docker +++ b/tests/docker/dockerfiles/ubuntu1804.docker @@ -54,4 +54,8 @@ ENV PACKAGES flex bison \ RUN apt-get update && \ apt-get -y install $PACKAGES RUN dpkg -l $PACKAGES | sort > /packages.txt +# The libunistring2 package does not create a symlink to libunistring.so +# Create it manually to fix: +# error: /usr/lib/x86_64-linux-gnu/libunistring.so: No such file or direct= ory +RUN ln -s libunistring.so.2 /usr/lib/x86_64-linux-gnu/libunistring.so ENV FEATURES clang pyyaml sdl2 --=20 2.20.1 From nobody Mon May 6 08:17:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1560508694; cv=none; d=zoho.com; s=zohoarc; b=FQ7a7DgFLXlzi3jLo8ftMWS6ypM9NeqjQRpx9cEkW57JTgOWLSnp7HDsxwG9l3+HqplSVQ9qDjC1PcMVmDdaEDoWxOvNPyoUPsSJTHz/oT0R7EipKkscfbWre6LxYQBiAFfxlxYHnig6EgokpaJ2CpyYYccdxdbJ9nVZEgnI47U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560508694; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=yDlyMpMAHuy7BdL9RQ+eO5V5ZFY91f934o3bkH+49QA=; b=KttBIRbJk0QdBx3iVKrKRU7ORLPMgMMz3r+KhBNisdDTPYU16oWE5sxHPDgRs58ZyIGGuCcoeZwOnL2r5DFIoybxZoCZX/KqCSHR3kzhW9JzkX+6p6Q8GAJm8haHRwytSnI0MN/3kKhPIUHXC6tSan+jP5dszcKyioI3qBlDSFY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560508694323833.7264955318133; Fri, 14 Jun 2019 03:38:14 -0700 (PDT) Received: from localhost ([::1]:50066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjb3-0005gL-Ce for importer@patchew.org; Fri, 14 Jun 2019 06:38:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52356) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbjOE-0005H5-CZ for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:24:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbj8j-00012F-A8 for qemu-devel@nongnu.org; Fri, 14 Jun 2019 06:09:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48654) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbj8U-0000un-M2; Fri, 14 Jun 2019 06:08:43 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E9F4785376; Fri, 14 Jun 2019 10:08:39 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9EAB01001B0F; Fri, 14 Jun 2019 10:08:28 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 12:07:18 +0200 Message-Id: <20190614100718.14019-10-philmd@redhat.com> In-Reply-To: <20190614100718.14019-1-philmd@redhat.com> References: <20190614100718.14019-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 14 Jun 2019 10:08:40 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 9/9] .travis.yml: Test softmmu static linking X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Add a test to avoid the ./configure script to bitrot. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 08502c0aa2..6962fff826 100644 --- a/.travis.yml +++ b/.travis.yml @@ -92,6 +92,11 @@ matrix: - CONFIG=3D"--disable-user --target-list-exclude=3D${MAIN_SOFTMMU_= TARGETS}" =20 =20 + # Test static linking + - env: + - CONFIG=3D"--static --target-list=3Dlm32-softmmu" + + # Just build tools and run minimal unit and softfloat checks - env: - BASE_CONFIG=3D"--enable-tools" --=20 2.20.1