diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-19 02:12:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-19 02:12:45 +0000 |
commit | 1aa99ecc93a15a428a88197dd05d97bcd33102b7 (patch) | |
tree | 04026ce002e69108a7929dbdfdd4412cf237ce52 /dev-util/rizin/files | |
parent | b30bf80580f09f15ee6686ff818cd36d923e1291 (diff) |
gentoo auto-resync : 19:02:2023 - 02:12:45
Diffstat (limited to 'dev-util/rizin/files')
-rw-r--r-- | dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch b/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch new file mode 100644 index 000000000000..485a131cf483 --- /dev/null +++ b/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch @@ -0,0 +1,52 @@ +Upstreamed at: https://github.com/rizinorg/rizin/pull/3380 + +commit e1a65044139443c43a14c8304d095d9d6cddae56 +Author: John Helmert III <ajak@gentoo.org> +Date: Sat Feb 18 18:22:42 2023 -0600 + + fix capstone include paths + + capstone include paths were adjusted in + 2b8104bc5e763ed841d6dbffacbeaf02e86b8421, and this wasn't picked up in + the "PPC uplifting" commit, leading to a build failure with system + capstone. + + Also fix the path of the ppc.h include, which seems to mistakenly use + capstone's ppc.h when building with bundled capstone. + + Fixes: b46e7bd4f2 ("PPC uplifting to RzIL (#2823)") + Signed-off-by: John Helmert III <ajak@gentoo.org> + +diff --git a/librz/analysis/arch/ppc/ppc_il.h b/librz/analysis/arch/ppc/ppc_il.h +index ee91eb050b..7871414cef 100644 +--- a/librz/analysis/arch/ppc/ppc_il.h ++++ b/librz/analysis/arch/ppc/ppc_il.h +@@ -9,7 +9,7 @@ + #include <rz_analysis.h> + #include <rz_il.h> + #include <rz_types.h> +-#include <capstone.h> ++#include <capstone/capstone.h> + + #define PPC_BYTE 8 + #define PPC_HWORD 16 +diff --git a/librz/analysis/arch/ppc/ppc_il_ops.c b/librz/analysis/arch/ppc/ppc_il_ops.c +index f7a2261093..31a730c009 100644 +--- a/librz/analysis/arch/ppc/ppc_il_ops.c ++++ b/librz/analysis/arch/ppc/ppc_il_ops.c +@@ -1,13 +1,13 @@ + // SPDX-FileCopyrightText: 2022 Rot127 <unisono@quyllur.org> + // SPDX-License-Identifier: LGPL-3.0-only + +-#include "ppc.h" ++#include "opcode/ppc.h" + #include "ppc_il.h" + #include "ppc_analysis.h" + #include "rz_types_base.h" + #include <rz_il/rz_il_opcodes.h> + #include <rz_util/rz_assert.h> +-#include <capstone.h> ++#include <capstone/capstone.h> + #include <rz_il/rz_il_opbuilder_begin.h> + + static RzILOpEffect *load_op(RZ_BORROW csh handle, RZ_BORROW cs_insn *insn, const cs_mode mode) { |