[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h |
Date: |
Thu, 23 May 2019 13:17:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 5/23/19 1:07 PM, Daniel P. Berrangé wrote:
> On Wed, May 22, 2019 at 10:42:27PM -0400, Richard Henderson wrote:
>> Since v4.0, capstone.h has moved to <capstone/capstone.h>.
>
> NB this was a regression bug in capstone pkg-config file which has been
> fixed upstream
>
> https://github.com/aquynh/capstone/pull/1276
>
> In Fedora we pulled in the fix to our v4.0 builds and I'd suggest
> other distros should do the same
Are you suggesting to not include this patch? It is less invasive to
distributions that package QEMU but don't package libcapstone.
>
>> Signed-off-by: Richard Henderson <address@hidden>
>> ---
>> include/disas/capstone.h | 4 ++++
>> configure | 6 ++++++
>> 2 files changed, 10 insertions(+)
>>
>> diff --git a/include/disas/capstone.h b/include/disas/capstone.h
>> index e29068dd97..90631d84a9 100644
>> --- a/include/disas/capstone.h
>> +++ b/include/disas/capstone.h
>> @@ -3,7 +3,11 @@
>>
>> #ifdef CONFIG_CAPSTONE
>>
>> +#ifdef CONFIG_CAPSTONE_CAPSTONE_H
>> +#include <capstone/capstone.h>
>> +#else
>> #include <capstone.h>
>> +#endif
>>
>> #else
>>
>> diff --git a/configure b/configure
>> index d2fc346302..eec7f061c3 100755
>> --- a/configure
>> +++ b/configure
>> @@ -5021,6 +5021,9 @@ case "$capstone" in
>> system)
>> QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags capstone)"
>> LIBS="$($pkg_config --libs capstone) $LIBS"
>> + if check_include capstone/capstone.h; then
>> + capstone_capstone_h=yes
>> + fi
>> ;;
>>
>> no)
>> @@ -7197,6 +7200,9 @@ if test "$ivshmem" = "yes" ; then
>> fi
>> if test "$capstone" != "no" ; then
>> echo "CONFIG_CAPSTONE=y" >> $config_host_mak
>> + if test "$capstone_capstone_h" != "no" ; then
>> + echo "CONFIG_CAPSTONE_CAPSTONE_H=y" >> $config_host_mak
>> + fi
>> fi
>> if test "$debug_mutex" = "yes" ; then
>> echo "CONFIG_DEBUG_MUTEX=y" >> $config_host_mak
>
> Regards,
> Daniel
>
- Re: [Qemu-devel] [PATCH 3/3] capstone: Enable disassembly for s390x, (continued)
- [Qemu-devel] [PATCH 2/3] capstone: Update to master, Richard Henderson, 2019/05/22
- [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Richard Henderson, 2019/05/22
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Alex Bennée, 2019/05/23
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, David Hildenbrand, 2019/05/23
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Philippe Mathieu-Daudé, 2019/05/23
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Daniel P . Berrangé, 2019/05/23
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Alex Bennée, 2019/05/23
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Richard Henderson, 2019/05/23
- Re: [Qemu-devel] [PATCH 1/3] capstone: Adjust include of capstone.h, Richard Henderson, 2019/05/23