From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emOXh-0006gJ-Q5 for qemu-devel@nongnu.org; Thu, 15 Feb 2018 13:46:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emOXc-0004C6-Tn for qemu-devel@nongnu.org; Thu, 15 Feb 2018 13:46:01 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:39948) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emOXc-0004Bn-Mg for qemu-devel@nongnu.org; Thu, 15 Feb 2018 13:45:56 -0500 Received: by mail-wm0-x244.google.com with SMTP id v123so2641435wmd.5 for ; Thu, 15 Feb 2018 10:45:56 -0800 (PST) References: <20180215173539.11033-1-f4bug@amsat.org> <20180215182153.3696ad5f@sf> <5247e0c1-a5f4-d918-50fd-ec13e06fd26f@amsat.org> From: miqlas Message-ID: Date: Thu, 15 Feb 2018 19:45:53 +0100 MIME-Version: 1.0 In-Reply-To: <5247e0c1-a5f4-d918-50fd-ec13e06fd26f@amsat.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [Qemu-devel] [RFC PATCH] capstone: fix building using system package List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Sergei Trofimovich Cc: Thomas Huth , Mike Frysinger , Alexey Kardashevskiy , Richard Henderson , qemu-devel@nongnu.org, Paolo Bonzini , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Hi, afaik (but not tested) pkgconfig --cflags reports /includes on linux, and it does the same on Haiku too. I'm not against to change our capstone recipe, but please, if you can check it on Linux and report it back, as i don't want to break other software. Thanks for the nice talk, guys! --miqlas 2018-02-15 19:39 keltezéssel, Philippe Mathieu-Daudé írta: > Hi Sergei, > > On 02/15/2018 03:21 PM, Sergei Trofimovich wrote: >> On Thu, 15 Feb 2018 14:35:39 -0300 >> Philippe Mathieu-Daudé wrote: >> >>> #else >>> +#include >> I think it's incorrect. 'pkg-config' already reports 'capstone/' path: >> $ pkg-config --cflags capstone >> -I/usr/include/capstone > Glad to hear feedback from a Gentoo developer! > > Ok so the problem Haiku only, which we don't support anymore. > >> $ ls /usr/include/capstone/capstone.h >> /usr/include/capstone/capstone.h >> >> Thus I would guess >> #include >> is still correct for system include path as well (contradicts the example). > My guess is the example is probabilisticly safer for people compiling > without using 'pkg-config'. > >> qemu just needs to use 'pkg-config' to discover the include path and >> libs. Maybe new capstone release has different pkgconfig setup? > I think it is safer to drop this patch. > > Thanks for your review! > > Phil.