From nobody Tue May 7 23:14:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1598565559; cv=none; d=zohomail.com; s=zohoarc; b=EhtV3qX/4uPemuTinJchYqQN9qT56DoJz2x0oX7OxRiAQq1n/qfKhrGN5mxIx/oU/2IG7WHJvcSDcFmMRpGebWx0oInyvypmLpvvkBPfRYb5DsII5thrUDLoWviIF5wxrm3wYf7GIdMiVXCk38ThjtUwuGorSipcIYXMPTFA3B8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598565559; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TvxKsYduOHwVULid/NUQfg2Qti4Kubbh6Zm8o74dCbg=; b=EOa9sBhtfQ/FhjnAxFx4MGzrRLeybmjel5gExnI+8y9JUgSv/oZIiqfYxDtpLhaM5wMGRCeA68tQfbXaiWrrah+VuY9/Tc9oUY2KvoNPGUuUJ+RqRz9oR7M4Wxxye0uTXaieEUbG6kSTqyB4j3KXdnRFNOGYLKHyFLOPQmYNRVQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1598565559097411.64506644388825; Thu, 27 Aug 2020 14:59:19 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-522-yTp6zS_TNMm43Yfs5G4msw-1; Thu, 27 Aug 2020 17:59:15 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DF0601DE12; Thu, 27 Aug 2020 21:59:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C20D55C1DA; Thu, 27 Aug 2020 21:59:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3CCBA18408A1; Thu, 27 Aug 2020 21:59:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07RLx0B7011035 for ; Thu, 27 Aug 2020 17:59:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id CB9AE2166BA4; Thu, 27 Aug 2020 21:59:00 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C5B322166BA0 for ; Thu, 27 Aug 2020 21:58:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 75677101A53F for ; Thu, 27 Aug 2020 21:58:58 +0000 (UTC) Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [51.163.158.102]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-143-NrfKkXWKPeyc04YZGrg4tw-1; Thu, 27 Aug 2020 17:58:56 -0400 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02lp2059.outbound.protection.outlook.com [104.47.6.59]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-15-9fdy49ozMrCUPbPrgbU_jA-1; Thu, 27 Aug 2020 23:58:53 +0200 Received: from VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2c::13) by VI1PR04MB4015.eurprd04.prod.outlook.com (2603:10a6:803:48::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.22; Thu, 27 Aug 2020 21:58:51 +0000 Received: from VI1PR0401MB2429.eurprd04.prod.outlook.com ([fe80::a0ba:4965:e484:d014]) by VI1PR0401MB2429.eurprd04.prod.outlook.com ([fe80::a0ba:4965:e484:d014%9]) with mapi id 15.20.3305.032; Thu, 27 Aug 2020 21:58:51 +0000 Received: from linux-tbji.devlab.prv.suse.com (192.150.153.236) by AM0PR03CA0052.eurprd03.prod.outlook.com (2603:10a6:208::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.20 via Frontend Transport; Thu, 27 Aug 2020 21:58:49 +0000 X-MC-Unique: yTp6zS_TNMm43Yfs5G4msw-1 X-MC-Unique: NrfKkXWKPeyc04YZGrg4tw-1 X-MC-Unique: 9fdy49ozMrCUPbPrgbU_jA-1 From: Jim Fehlig To: libvir-list@redhat.com Subject: [PATCH] meson: Only check for openwsman if hyperv is enabled Date: Thu, 27 Aug 2020 15:58:29 -0600 Message-ID: <20200827215829.18727-1-jfehlig@suse.com> X-ClientProxiedBy: AM0PR03CA0052.eurprd03.prod.outlook.com (2603:10a6:208::29) To VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2c::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Originating-IP: [192.150.153.236] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 32321180-9ad1-401d-9ef7-08d84ad461df X-MS-TrafficTypeDiagnostic: VI1PR04MB4015: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HPtRBnK7T2LgJhPmvsSFqwpb3mdfNh0asCp7CZAHoZ0tLjTiKFONrOLMP75jbYq+DvmRhinfMyMBqF+IYWnFpABXttPTPycSuGxy/l+L4uHjOLx7UEFp6baiXYlW5Ugl+/LSv+Mvqd3tlib8f9Xa75B4j23KNuO3LDxaTGFmvvhr3AHJLcIYQALkHhxL/8V4vvO3LIMZ8wd106bGVUTMfv3zWLwlUHVWlFaT2+6GosS3vRRQHaxPaRlVMTU+6WCI6CqPVeY6kFX5RAZmkU4Fl/joLHejl1GtjjLVdKWVBr1RJuQ0jvBzlRjUB4+REpwEDgVgQZHvPUnjts+pU1D2HQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2429.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(39860400002)(366004)(136003)(376002)(346002)(5660300002)(956004)(2616005)(186003)(16526019)(66476007)(26005)(6666004)(66556008)(66946007)(83380400001)(8936002)(316002)(1076003)(86362001)(478600001)(2906002)(6486002)(8676002)(36756003)(52116002)(107886003)(7696005)(6916009)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: w3VqsvEjxU1Sw8AEvyrvybIrd/3fegNGxzEO8JSmG+Ag+39QZwX7rPpVkEUwjidFwS2NJ9f4iJCCfHhp2i38KYSwLNyIDK4h50JVVSawMcJa0trxtUQD6ql2/gDoguuacG0JOUdy7V/sZjIu92lhVXMAAxyYDGoittKzoA+1SQ9OgSX0A8lgVHNPZPgg5KosL1SI+eno6QVysERNO0HFsY8iXxpk/e/n0Ba3mOm1uEvLsdT09tReo18vgWf0XPofg32/VwPx6aTZSFjqe/ZO2Xb36wpBi7S3msLdbgu+RGtc5e//xQ/lr+0w2zAsGqeIU+2tc3KEFE0mwWPMh5a0LJbGshrgQ8P50YubXQYyjdrZcU2BJ2iHmx5tkVeATQvXVEfY/SIPVWo3DVfmpumGOFnlarym26Ph9L8q9XnAqlTnzr+/a4WgWHR1b7IHKbiyh+j8FTcTxXvDEP6Q9TxY40gDLOqR8cSHhBqBrY+nVpH8tSfu+hMer89sVyE9/4TmsZNDxYfnbIsPusWBvDsak8Flvg5qGTN2g9eMmTAc7Mim0Mq1hq9Rnc5L4DHKCg/9CYGH1QlzbaGcV+BBRKPA/ay55V/n5pIuUVe+mFz+m51x4Mcko3uLrlbgwEOHtlGdR/vYvUAKq1oKMCnGDazAwQ== X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32321180-9ad1-401d-9ef7-08d84ad461df X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2429.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2020 21:58:51.2930 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NuSRahasuJ4mtg/X7At6t7DJEGXif9iKkgN1Q9H5izQ7Aq5NopF9plq+AnuljcgF9eSFJ2rL+EIpUMWP+Hp0bA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4015 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 07RLx0B7011035 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.003 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Running meson configure with '-Ddriver_hyperv=3Ddisabled' fails with meson.build:1252:0: ERROR: Dependency "openwsman" not found, tried pkgconfig and cmake openwsman is only required if the hyperv driver is enabled. Don't check for it if hyperv is disabled. Signed-off-by: Jim Fehlig --- There are likely other ways to fix the problem, this being a meson noobish one :-). meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index dabd4196e6..e3e768cab6 100644 --- a/meson.build +++ b/meson.build @@ -1249,7 +1249,11 @@ if numactl_dep.found() endif =20 openwsman_version =3D '2.2.3' -openwsman_dep =3D dependency('openwsman', version: '>=3D' + openwsman_vers= ion, required: get_option('openwsman')) +if get_option('driver_hyperv').enabled() + openwsman_dep =3D dependency('openwsman', version: '>=3D' + openwsman_ve= rsion, required: get_option('openwsman')) +else + openwsman_dep =3D dependency('', required: false) +endif =20 parallels_sdk_version =3D '7.0.22' parallels_sdk_dep =3D dependency('parallels-sdk', version: '>=3D' + parall= els_sdk_version, required: false) --=20 2.28.0