From patchwork Thu May 2 09:56:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 794108 Delivered-To: patch@linaro.org Received: by 2002:adf:a153:0:b0:34d:5089:5a9e with SMTP id r19csp153723wrr; Thu, 2 May 2024 02:57:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUvKRdl+4fM287bxhHdQ2+Y8T++xQUtDsMKpR36aN7Fky11Q5s/6JSoLlbzF4sNvuz1KaOW90vgNASXU3cV0PG4 X-Google-Smtp-Source: AGHT+IFio55desZpxhb5d9e1I+8gga80ItnteDOGJHHGKQdpD53QXrM/SF5s59P5D0DjnJ2GE4dF X-Received: by 2002:a05:6871:8783:b0:238:f6dc:6f7f with SMTP id td3-20020a056871878300b00238f6dc6f7fmr5155159oab.58.1714643860954; Thu, 02 May 2024 02:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714643860; cv=none; d=google.com; s=arc-20160816; b=Eakn26Hk+jZ1Xlfu7c4zCQb303n3DNt/JoIWTYPbPF54NnhOSURh4p4HIhgDc0WSMS su0yhHnVslpWT2vccqruRAZ4L2BW4CmNpC69fneBz/oCOYzhSSSm9BTfmQZiMHuM+7ik CMlGwwuvv8zscwCoKE22mZ7/e2lXNRE9B65yQFXnQOsJmySFXbO5jPcmnmG469WiS0Ha g7jkjuf2rL6qii8t6MyIXj0s7Ht/mHkl7g6n03Mg2yUtjd+j5rTQnnQ97lwgmWLLvo8/ j1g0ZZRqD4zlK0Hm5TGFD1wJ6A7rtl7r9ytXQipSA2vN7L7amyYukADlJdeK8lSntZwT nW4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OWnrA6E91+7xAaPI8kCn9o7Y7ybTIOe7+SUe3y8pkFw=; fh=Dhpq/bjK0ChgMAY5mUf7XOR2DhtP3cS/r2w/r+nRC1I=; b=k4YKkD0DBaBAShX8tuW352eGtPOmD/hXB8rtGkEqtvklwjKlVARFyYaS8Rvz6N87/a PUtdThCpSnnMnKGzPLyp9O1aGLaJlS5pZeAWtK+j/E5QafbuKpSL1cpN2/++YPqUp+Rn Iib/Y4ONEg+aE7RfY7tddPfihaMO9XpDc+2v/0BlSX29gqVR1+J/v5hJ973IQQixk8By 8Ia+uRfmzo930t+P+lF6eqwsyumcZQywc/f2m6RrU76sP4l7seaI60K17LvhoO5GEG7d DZ4VNtG3IS9sStM0nsgP/zwYga5H0KDABg/C1oGVty8AJ2ildbjoqSOmo0lRskREpf0S GRLA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWEW6nVM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k20-20020a05622a03d400b0043affcfcf50si598659qtx.303.2024.05.02.02.57.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2024 02:57:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWEW6nVM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2TBb-0000gu-Vq; Thu, 02 May 2024 05:57:08 -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 1s2TBZ-0000eL-Rv for qemu-devel@nongnu.org; Thu, 02 May 2024 05:57:05 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2TBX-00019W-JQ for qemu-devel@nongnu.org; Thu, 02 May 2024 05:57:04 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-41b5e74fa83so51910315e9.0 for ; Thu, 02 May 2024 02:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714643822; x=1715248622; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OWnrA6E91+7xAaPI8kCn9o7Y7ybTIOe7+SUe3y8pkFw=; b=BWEW6nVMH90wQe/RV5ddg5LIKPiqhQF07BYhxegi/dG2+klv6/U+uHbuPGY2VOmuBI 4hlvzxmaR1Y9I13RvOzEG3aFsosdulGLGFmAvFJ/AAMNlVvGgisEgCNtCAbZ6XrkqMDy xk5sQNGOt5IPuwSEcYIIisnioKWVaSlLt+pY1DFtR83URpENFh9LY1GU215XdDYLXA+B a5XlE69qiqtJqOwSxnitYg4C4+CFbHM/GfP+BiEaulGhyna2gavK8gJc/zqAyr7nL4j5 hDVK3ocuNtGX0JuH2MbmUczns1M2vf5achAHoJoD4jAO1oJj5N5eE8bsxgU8i3Gh5XO5 AjZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714643822; x=1715248622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OWnrA6E91+7xAaPI8kCn9o7Y7ybTIOe7+SUe3y8pkFw=; b=EYinyKU/+cETJaJFhECQygW1n8kp/hWgp7iMPvVKeEuO2OVvOv9JYqZ/29cDtTcq+t Jmh/JUZTfAPgwCOHdjeDB2pwnaoUDUoG/DTiZLJGbkJ/zO5ZgSr9IhPCO4hYYxKFuOLO 6L1v4QRGIaYqsmMsKAyR5/ENudVgaipOZUDGnkdeYjosXjxBGwnlu7Ks4+dGnWc4yB6Y JB6hc8WtjOiNkYERhxSVA7nlOCvOINCNMnv13RbF9a4hCcjnCDey1jE7sonyuXqLGhZc 6HewYb9d33dgvP+tQ2MH/ZmGMU8k2WTnFNfKzgmfjR6cehWE3haNDTOuVQEmL6/g/2VW f0nA== X-Gm-Message-State: AOJu0Yyn/VkH371dK8v4xkEGf8gvrqeF4mYwvkvNGoAO2OW1GcdcN6I+ 1NASdapyB80u2zdXlf6CaNrmJkANAHeqS7t4VHmk8wliq0FN+HXkeBfKLM0mBdZ7//2lznYp6Fc / X-Received: by 2002:a05:600c:444d:b0:418:ed23:a9f0 with SMTP id v13-20020a05600c444d00b00418ed23a9f0mr3554308wmn.18.1714643821957; Thu, 02 May 2024 02:57:01 -0700 (PDT) Received: from m1x-phil.lan ([176.187.215.106]) by smtp.gmail.com with ESMTPSA id n21-20020a05600c3b9500b0041a9fc2a6b5sm5111895wms.20.2024.05.02.02.57.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 02 May 2024 02:57:01 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?M?= =?utf-8?q?arc-Andr=C3=A9_Lureau?= , Thomas Huth , Paolo Bonzini , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 3/3] crypto: Allow building with GnuTLS but without Libtasn1 Date: Thu, 2 May 2024 11:56:42 +0200 Message-ID: <20240502095642.93368-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240502095642.93368-1-philmd@linaro.org> References: <20240502095642.93368-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We only use Libtasn1 in unit tests. As noted in commit d47b83b118 ("tests: add migration tests of TLS with x509 credentials"), having GnuTLS without Libtasn1 is a valid configuration, so do not require Libtasn1, to avoid: Dependency gnutls found: YES 3.7.1 (cached) Run-time dependency libtasn1 found: NO (tried pkgconfig) ../meson.build:1914:10: ERROR: Dependency "libtasn1" not found, tried pkgconfig Fixes: ba7ed407e6 ("configure, meson: convert libtasn1 detection to meson") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 5db2dbc12e..837a2bdb56 100644 --- a/meson.build +++ b/meson.build @@ -1912,6 +1912,7 @@ endif tasn1 = not_found if gnutls.found() tasn1 = dependency('libtasn1', + required: false, method: 'pkg-config') endif keyutils = not_found