From nobody Tue Nov 18 07:42:43 2025 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 ARC-Seal: i=1; a=rsa-sha256; t=1609170719; cv=none; d=zohomail.com; s=zohoarc; b=mQIJzyf8ZNCG51QRZKVvd9POG+ieBry/zgSbTZOYvSo/NQ9f4C978k0gU1kifZ891VLScpSPAmRkjtzqYd6M3NkdXNxx8ikfBeUxP+qukJrFYoDVnlF2H/guWoN6GR9BljskNySYzYmudIux8zd1silDPnpsyhAl9bpnz+8qwwA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609170719; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=inpVbs3nr+z6l1eSFHgVjReQXjE4MO9xqU27lFocCpU=; b=PiZTnHpo/V3rSvIEZ4yccXdghupEQtl12rUDMbkcOnQKkCIkv/gkybhgBg54dnbEmrTnfsxniaSIZ+G9chdnkl9Ub8ubSr2b6urD/I8IGSnfyEJJ9fURm8YKwfv9UlhGo211anqwjH0KUGLL0aFzsQLCkFKSj87Oexm+L3t4KQQ= ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1609170719533982.9737365783599; Mon, 28 Dec 2020 07:51:59 -0800 (PST) Received: from localhost ([::1]:55388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktuoQ-0005Qs-AY for importer@patchew.org; Mon, 28 Dec 2020 10:51:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktuGg-0003P4-L8 for qemu-devel@nongnu.org; Mon, 28 Dec 2020 10:17:10 -0500 Received: from ns1.namespace.at ([213.208.148.230]:42730 helo=nlay-fle-service01.in.namespace.at) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktuGe-0003w2-J3 for qemu-devel@nongnu.org; Mon, 28 Dec 2020 10:17:06 -0500 Received: from [10.100.0.62] (helo=debbuild.in.namespace.at) by nlay-fle-service01.in.namespace.at with smtp (Exim 4.92) (envelope-from ) id 1ktuGb-00E1TW-SH; Mon, 28 Dec 2020 16:17:01 +0100 Received: (nullmailer pid 235619 invoked by uid 1000); Mon, 28 Dec 2020 15:17:01 -0000 From: Chris Hofstaedtler To: qemu-devel@nongnu.org Subject: [PATCH] meson: fix ncurses detection on macOS Date: Mon, 28 Dec 2020 15:16:52 +0000 Message-Id: <20201228151652.235542-1-chris@hofstaedtler.name> X-Mailer: git-send-email 2.30.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=213.208.148.230; envelope-from=zeha@debian.org; helo=nlay-fle-service01.in.namespace.at X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 28 Dec 2020 10:50:32 -0500 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: pbonzini@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Without this, meson fails with "curses package not usable" when using ncurses 6.2. Apparently the wide functions (addwstr, etc) are hidden behind the extra define, and meson does not define it at that detection stage. Signed-off-by: Chris Hofstaedtler --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9c152a85bd..7b9d92c14a 100644 --- a/meson.build +++ b/meson.build @@ -510,7 +510,7 @@ if have_system and not get_option('curses').disabled() endforeach msg =3D get_option('curses').enabled() ? 'curses library not found' : '' if curses.found() - if cc.links(curses_test, dependencies: [curses]) + if cc.links(curses_test, args: '-DNCURSES_WIDECHAR', dependencies: [cu= rses]) curses =3D declare_dependency(compile_args: '-DNCURSES_WIDECHAR', de= pendencies: [curses]) else msg =3D 'curses package not usable' --=20 2.29.2