From nobody Sun Oct 5 01:51:53 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1759246745; cv=none; d=zohomail.com; s=zohoarc; b=GzCrKj+vVDZnurwHc+bQafnV+GVPT+fhshfIEzCSQ6Y52CHhWoPKgXdfJpUIWcwaRqIW3OjI601EcZA2BiLPXPFIL/rAdAbJAZyLDB+2NnseRYRDykuzDQL17jk+UIAzYphw0WNpE5e8XzMAa73dn8VNWBH3eA8paL10WIRbMEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759246745; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5yo5IocHLZdZiThmLsO1Wu54wj47MJ5ty/FP2hkgmeI=; b=CbqbeDazUU2dSfYBwQL7+LShDIUp6707CIVB4oZeI6IuZJBigsIQB9DlAsyFC2uTTxBsXQUzYWyIpke6E4zJWmInynkcbTmEocyReurLT7S+1UH6ppvmZeT7WHPGkwkm7bvVIJZmBBun5PhThyQ96t4cGfksbMY8lXBmlHU768Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1759246745008718.9249367475464; Tue, 30 Sep 2025 08:39:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v3cQf-00084z-J6; Tue, 30 Sep 2025 11:38:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v3cQc-000838-2e for qemu-devel@nongnu.org; Tue, 30 Sep 2025 11:38:10 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v3cQZ-00046v-2A for qemu-devel@nongnu.org; Tue, 30 Sep 2025 11:38:09 -0400 Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-589-cUTKGEYWO_ynEwweMg5zZw-1; Tue, 30 Sep 2025 11:38:00 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2704C19560AF; Tue, 30 Sep 2025 15:37:58 +0000 (UTC) Received: from localhost (unknown [10.45.242.7]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7EED930002C5; Tue, 30 Sep 2025 15:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759246684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5yo5IocHLZdZiThmLsO1Wu54wj47MJ5ty/FP2hkgmeI=; b=ZSQNhRMScWPxUGpUDhbDgp2lHou3p6SS/iiFyxt+Il/go4VCHzLfrAfbtuToX7trreOSZF bxhaJme/lIWtowwwCmItWlmws7eyr+ikINrISWvxOgsQbExvi8QNRIQWQPv7A2pQIUEfG/ woYuhb7zw6IAayh5IsgGEVceClNBiIU= X-MC-Unique: cUTKGEYWO_ynEwweMg5zZw-1 X-Mimecast-MFC-AGG-ID: cUTKGEYWO_ynEwweMg5zZw_1759246679 From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Cc: devel@lists.libvirt.org, Manos Pitsidianakis , Jiaxun Yang , Kohei Tokunaga , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , qemu-rust@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Li-Wen Hsu , Warner Losh , Kyle Evans , Ed Maste , Thomas Huth Subject: [PULL 01/23] build-sys: require -lrt when no shm_open() in std libs Date: Tue, 30 Sep 2025 19:37:22 +0400 Message-ID: <20250930153746.573875-2-marcandre.lureau@redhat.com> In-Reply-To: <20250930153746.573875-1-marcandre.lureau@redhat.com> References: <20250930153746.573875-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=170.10.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1759246746672116600 From: Marc-Andr=C3=A9 Lureau Fail during configure time if the shm functions are missing, as required by oslib-posix.c. Note, we could further check the presence of the function in librt. This is a minor cleanup/improvement. Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Alex Benn=C3=A9e Message-ID: <20250924120426.2158655-2-marcandre.lureau@redhat.com> --- meson.build | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index bdfb6214e6..c08e2df6bb 100644 --- a/meson.build +++ b/meson.build @@ -1350,7 +1350,13 @@ if get_option('spice') \ endif spice_headers =3D spice.partial_dependency(compile_args: true, includes: t= rue) =20 -rt =3D cc.find_library('rt', required: false) +rt =3D not_found +if host_os !=3D 'windows' + have_shm_open =3D cc.has_function('shm_open') + if not have_shm_open + rt =3D cc.find_library('rt', required: true) + endif +endif =20 libiscsi =3D not_found if not get_option('libiscsi').auto() or have_block @@ -3812,14 +3818,10 @@ util_ss =3D util_ss.apply({}) libqemuutil =3D static_library('qemuutil', build_by_default: false, sources: util_ss.sources() + stub_ss.sources(= ) + genh, - dependencies: [util_ss.dependencies(), libm, = threads, glib, socket, malloc]) -qemuutil_deps =3D [event_loop_base] -if host_os !=3D 'windows' - qemuutil_deps +=3D [rt] -endif + dependencies: [util_ss.dependencies(), libm, = threads, glib, socket, malloc, rt]) qemuutil =3D declare_dependency(link_with: libqemuutil, sources: genh + version_res, - dependencies: qemuutil_deps) + dependencies: [event_loop_base]) =20 if have_system or have_user decodetree =3D generator(find_program('scripts/decodetree.py'), --=20 2.51.0