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/
Created attachment 578990 [details] Ebuild Proposal for dev-util/ghidra-bin-9.0.4
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
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
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 ;-)
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?
(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 :)
(In reply to Adam from comment #5) > Is anyone else still interested in such an ebuild for ghidra? Yes, please!
(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.
Yes, I would like also an official ghidra ebuild please. :)
I support this proposal. I'd like to have ability to install ghidra with portage
Commenting to say that I'm also interested in having this
(In reply to ghostbuster from comment #11) > Commenting to say that I'm also interested in having this see https://data.gpo.zugaina.org/java/dev-util/ghidra/
(In reply to Volkmar W. Pogatzki from comment #12) > see https://data.gpo.zugaina.org/java/dev-util/ghidra/ comes from: https://gitweb.gentoo.org/proj/java.git/tree/dev-util/ghidra or https://github.com/gentoo/java-overlay/tree/master/dev-util/ghidra needs version bump Add a PR there! "Bugs should be reported on https://bugs.gentoo.org. Be sure to include "[java-overlay]" in the summary of your bug report." Maybe assign this bug to <maintainer type="person"> <name>Florian Schmaus</name> <email>flow@gentoo.org</email> </maintainer>
(In reply to jospezial from comment #13) > > needs version bump > Add a PR there! > use Pentoo overlay. Java overlay simple copied mine (Pentoo) ebuild and didn't update it for a year. FYI, 11.3 is out, I'm working on the ebuild.
(In reply to Anton Bolshakov from comment #14) > (In reply to jospezial from comment #13) > > > > needs version bump > > Add a PR there! > > > > use Pentoo overlay. Java overlay simple copied mine (Pentoo) ebuild and > didn't update it for a year. > > FYI, 11.3 is out, I'm working on the ebuild. Thank you for the 11.3.ebuild from pentoo overlay. works in gentoo.
set status inOverlay Do we need it in gentoo tree? Who wants to maintain this?