From nobody Sun May 19 10:01:18 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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=fail(p=none dis=none) header.from=git.sr.ht Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1684729989495543.524017885572; Sun, 21 May 2023 21:33:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0xDW-0001zU-La; Mon, 22 May 2023 00:32:18 -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 1q0tEk-0003ft-6B for qemu-devel@nongnu.org; Sun, 21 May 2023 20:17:18 -0400 Received: from mail-b.sr.ht ([173.195.146.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0tEi-0005pa-Mz for qemu-devel@nongnu.org; Sun, 21 May 2023 20:17:17 -0400 Received: from git.sr.ht (unknown [173.195.146.142]) by mail-b.sr.ht (Postfix) with ESMTPSA id 753B511EEC5; Mon, 22 May 2023 00:17:14 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=none From: ~_6d6178667269747a <_6d6178667269747a@git.sr.ht> Date: Mon, 22 May 2023 02:12:02 +0200 Subject: [PATCH qemu 1/1] [meson.build] Add conditional dependency for libkeyutils Message-ID: <168471463402.18155.3575359027429939965-1@git.sr.ht> X-Mailer: git.sr.ht In-Reply-To: <168471463402.18155.3575359027429939965-0@git.sr.ht> To: qemu-devel@nongnu.org Cc: thuth@redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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=173.195.146.151; envelope-from=outgoing@sr.ht; helo=mail-b.sr.ht X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_REPLYTO=2.095, FROM_LOCAL_DIGITS=0.001, FROM_LOCAL_HEX=0.006, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 22 May 2023 00:32:15 -0400 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: , Reply-To: ~_6d6178667269747a Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1684729991492100001 From: Max Fritz This modification enables better control over the inclusion of libkeyutils based on the configuration, enhancing the flexibility of the build system. Signed-off-by: Max Fritz Reviewed-by: Daniel P. Berrang=C3=A9 --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 0a5cdefd4d..206d4033bf 100644 --- a/meson.build +++ b/meson.build @@ -1764,8 +1764,11 @@ if gnutls.found() tasn1 =3D dependency('libtasn1', method: 'pkg-config') endif -keyutils =3D dependency('libkeyutils', required: false, - method: 'pkg-config') +keyutils =3D not_found +if get_option('keyring').enabled() + keyutils =3D dependency('libkeyutils', required: false, + method: 'pkg-config', kwargs: static_kwargs) +endif =20 has_gettid =3D cc.has_function('gettid') =20 --=20 2.38.4