Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685146 - dev-util/ghidra - NSA decompiler and reverse engineering tool
Summary: dev-util/ghidra - NSA decompiler and reverse engineering tool
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
Keywords: EBUILD
Depends on: needsGradle
  Show dependency tree
Reported: 2019-05-05 21:46 UTC by Jonas Stein
Modified: 2022-05-01 19:34 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---

Ebuild Proposal for dev-util/ghidra-bin-9.0.4 (ghidra-bin-9.0.4.ebuild,1.01 KB, text/plain)
2019-06-06 17:21 UTC, Alexandre A. Bizri

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein gentoo-dev 2019-05-05 21:46:32 UTC
Pentoo has an ebuild but it does not work on gentoo yet.

Ghidra is also in some other distributions.

Unfortunately it uses Gradle but dev-java/gradle-bin:5.2.1 worked for Pentoo.
Comment 1 Alexandre A. Bizri 2019-06-06 17:21:47 UTC
Created attachment 578990 [details]
Ebuild Proposal for dev-util/ghidra-bin-9.0.4
Comment 2 Alexandre A. Bizri 2019-06-06 17:25:13 UTC
As noted by Jonas it seems hard to propose a usable ebuild building ghidra from source. However, an intermediary solution can be found in doing a binary ebuild (ghidra-bin) based upon the official build from the project website.

I have attached an ebuild proposal for a dev-util/ghidra-bin-9.0.4 (this is my first ebuild, I await your opinions and constructive criticism)

Comment 3 Jonas Stein gentoo-dev 2019-06-08 14:29:00 UTC
Lets list the licenses: Which licenses did you find where?

About your ebuild: Read and use ${PV} and ${PN}
IRC #gentoo-dev-help is the perfect channel to discuss ebuilds. 
Use repoman for QA checks. Use our CI tool on github for further QA checks.

We really prefer to build from source for many reasons.

Please try
Comment 4 Anton Bolshakov 2021-06-27 01:19:26 UTC
Hi all,

I'm the one who developed Pentoo ebuild and keep improving it.
I was just following official steps "how to compile" and didn't care about Gentoo policy much. Likewise, I also created "" script to create that massive *dependencies.tar.gz file which you see in the ebuild with all deps. It might be possible to come up with something similar with "dev-util/cargo-ebuild" or "dev-go/get-ego-vendor" but I didn't have time.

I will migrate the ebuild to "eselect-gradle" which was recently introduced once I have time.

For now, I'm just subscribing to this bug report ;-)
Comment 5 Adam 2022-05-01 19:34:49 UTC
Is anyone else still interested in such an ebuild for ghidra? I might be able to put an ebuild for 10.1.3 and a live ebuild. It seems like something gentoo users would like to have in the main package tree.

It seems that ghidra is just meant to be installed run in a standalone subdirectory of the user's home directory (e.g. C:\Users\<user>\ghidra on MS Windows). So maybe it should just be installed read-only a directory like /usr/ghidra or something? Thoughts on this?