-
-
Notifications
You must be signed in to change notification settings - Fork 94
Update ghidra #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Update ghidra #368
Conversation
308b0a9 to
f085d0f
Compare
Please note: Regarding the cutter-plugin we still have some work open. In CMake, it was possble to not only specify the install path, but also to choose a given Cutter-installation that is not in a default installation path. This is currently still missing here.
f085d0f to
6effc7d
Compare
|
@amibranch since you are updating, why not use 12.0 version instead of 11.4 as a base? It was released few weeks ago and contains some nice changes in the decompiler code:
|
|
@amibranch Thank you for the proposal! However while meson certainly has certain advantages, I do not think think they justify the disruptive effects this would have downstream, or additional challenges such as missing direct access to the Cutter CMake module. So I don't think we are going to make this switch, at least for now. Would you instead mind rebasing the https://github.com/rizinorg/ghidra repo, keeping the patch history as far as possible, and applying the rz-ghidra code changes as a new pr? If 12.0 has too many changes, doing the step to 11.4 only first would be fine for me too. |
|
@notxvilka : thank you for the hint. I started the change before that release. However, I will try to port the PR @thestr4ng3r : Yes, I understand this and as I wrote, it was not my intention that the repo will port to meson build. Indeed in the first commit (before the ghidra-update), I used the rizin-port of ghidra via a meson-wrap file (which also worked well). Meson-wrap in that case is just an alternative for git submodules. I'm not too experienced with different dependency-managements in CMake.
Note: the additional changes in Ghidra pile down to remove "new" newlines in the XML-Encode. Those will bloat the generated code. I personally would even say that using a code-beautifier on the final code could be more consistent. But it is a more invasive change... I hope this is clear, but if not: Please consider this PR as a "Draft" with no intention to merge! |
fixes #362
This pull request is based on my personal port from CMake to meson-build and updates Ghidra to Ghidra_11.4_build.
I do not consider that this is universally appreciated without further discussions. And even if so, it should not be done within updating the Ghidra base commit.
However, I personally prefer meson-builds dependency management over anything CMake or some CMake-related frameworks (like Conan) is offering. I think, that meson makes it easier to update and track Ghidra. I personlly think that this is als a nice improvement towards #322.
I was careful to separate my commits into exchanging CMake with meson and then updating Ghidra. Therefore, please feel free to reuse the commit of updating Ghidra for any own update that is based on the current build-system. Please note that this also implies that the patch-files (001_context_cache and 002_xml_format) should be carefully applied to rizins ghidra-fork
Note:
Tested on Arch Linux withrizin 0.8.1 @ linux-x86-64andcutter 2.4.1-makepkg-a5f88d1