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
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/NationalSecurityAg...
Whiteboard:
Keywords: EBUILD
Depends on: needsGradle
Blocks:
  Show dependency tree
 
Reported: 2019-05-05 21:46 UTC by Jonas Stein
Modified: 2023-05-14 10:48 UTC (History)
10 users (show)

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


Attachments
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
Details

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.

https://github.com/pentoo/pentoo-overlay/tree/master/dev-util/ghidra

Ghidra is also in some other distributions.
https://repology.org/project/ghidra/versions

Unfortunately it uses Gradle but dev-java/gradle-bin:5.2.1 worked for Pentoo.

https://www.nsa.gov/resources/everyone/ghidra/
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.

https://bugs.gentoo.org/attachment.cgi?id=578990

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)

see https://bugs.gentoo.org/attachment.cgi?id=578990
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 https://devmanual.gentoo.org/ebuild-writing/variables/ 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
https://github.com/pentoo/pentoo-overlay/tree/master/dev-util/ghidra
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 "gradle_dependencies.py" 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?
Comment 6 Kfir Ozer 2022-08-06 16:57:41 UTC
(In reply to Adam from comment #5)
> 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?

I would love an ebuild for that :)
Comment 7 Gediminas Jakutis 2022-09-28 06:54:47 UTC
(In reply to Adam from comment #5)
> Is anyone else still interested in such an ebuild for ghidra? 

Yes, please!
Comment 8 Finn Rayment 2022-12-10 06:04:42 UTC
(In reply to Adam from comment #5)
> Is anyone else still interested in such an ebuild for ghidra?

Yes, I third this. I am currently compiling it through a custom ebuild but it would be nice to have it supported in the main repo.

> So maybe it should just be installed read-only a directory like
> /usr/ghidra or something? Thoughts on this?

The Pentoo ebuild is very sane and stores everything in /usr/share/ghidra with /usr/bin/ghidra as a symlink to a file within the share directory.
Comment 9 admin 2023-05-11 13:19:38 UTC
Yes, I would like also an official ghidra ebuild please. :)
Comment 10 Strongleong 2023-05-14 10:48:35 UTC
I support this proposal. I'd like to have ability to install ghidra with portage