Bug 285071 - devel/ghidra: update to 11.3.1
Summary: devel/ghidra: update to 11.3.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-27 21:42 UTC by gatekeeper
Modified: 2025-03-14 20:16 UTC (History)
1 user (show)

See Also:


Attachments
git patch (453.34 KB, patch)
2025-02-27 21:42 UTC, gatekeeper
no flags Details | Diff
update ghidra to 11.3.1 (455.12 KB, patch)
2025-03-02 19:28 UTC, gatekeeper
no flags Details | Diff
update ghidra to 11.3.1 (455.14 KB, patch)
2025-03-03 07:05 UTC, gatekeeper
no flags Details | Diff
git patch (454.38 KB, patch)
2025-03-06 21:14 UTC, gatekeeper
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gatekeeper 2025-02-27 21:42:30 UTC
Created attachment 258047 [details]
git patch

Updating ghidra to version 11.3.1
Poudriere is happy with the build :-)
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2025-02-27 22:45:23 UTC
Can't apply patch to current main.
Comment 2 gatekeeper 2025-02-28 02:32:19 UTC
Hi. I have also noticed that. I am currently tracking down what appears to be a bug in the decompiler. When this is done, I will upload another patch. Thanks.
Comment 3 gatekeeper 2025-03-02 19:28:52 UTC
Created attachment 258199 [details]
update ghidra to 11.3.1

Fixes the update to ghidra 11.3.1. Note: I have switched to compilation with gcc, since the Decompiler plugin, when compiled with clang, crashes randomly. From my understanding, this is a problem in upstream, as there are two different results with two different compilers (some UB...).
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-02 20:58:00 UTC
cc_binary => %%CC_BINARY%%
cpp_binary => %%CPP_BINARY%%
Comment 5 gatekeeper 2025-03-03 07:05:46 UTC
Created attachment 258244 [details]
update ghidra to 11.3.1

Changes as requested :-)
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-04 18:05:21 UTC
Are you sure we need files in %%DATADIR%%/support/gradle/.gradle?
Comment 7 gatekeeper 2025-03-06 21:14:28 UTC
Created attachment 258366 [details]
git patch

You are right. I just tried it out and the software is running without any trouble. I took it out :-)
Comment 8 gatekeeper 2025-03-13 21:02:46 UTC
Hi. Is this ready to be committed? Thanks! :-)
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-13 21:48:09 UTC
(In reply to gatekeeper from comment #8)
I don't like switch to GCC… Can we do something?
Comment 10 gatekeeper 2025-03-13 22:30:46 UTC
I have tried it for a long time - it compiles with clang, but the program does not work properly. I think that this is an issue that needs to be resolved by the project maintainers. If we submit the port with clang, decompilation will randomly crash on some functions. I would also like to have clang, but currently do not see any other way than issuing a bug report upstream... In any case, I think that the newest version should be committed to the ports tree.
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-14 19:05:09 UTC
(In reply to gatekeeper from comment #10)
Did you reported upstream this issue?
Comment 12 commit-hook freebsd_committer freebsd_triage 2025-03-14 19:27:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=10c8159742224378f8cb0f26459fb87db74d5539

commit 10c8159742224378f8cb0f26459fb87db74d5539
Author:     gatekeeper <tiago.gasiba@gmail.com>
AuthorDate: 2025-03-14 19:00:22 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-03-14 19:26:10 +0000

    devel/ghidra: Update 11.1.2 → 11.3.1

    Release notes:
    https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.2_build
    https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.2.1_build
    https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.3_build
    https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.3.1_build

    Switch to compilation with gcc, since the Decompiler plugin, when
    compiled with clang, crashes randomly. Probably this is a problem in
    upstream, as there are two different results with two different
    compilers (some UB...).

    PR:     285071

 devel/ghidra/Makefile                              |   41 +-
 devel/ghidra/distinfo                              |    6 +-
 .../files/patch-GPL_nativeBuildProperties.gradle   |   16 +-
 devel/ghidra/pkg-plist                             | 5002 +++++++++++++-------
 4 files changed, 3227 insertions(+), 1838 deletions(-)
Comment 13 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-14 20:16:16 UTC
Thanks.