Commit Graph

11 Commits

Author SHA1 Message Date
naddy
8c0294c2fa drop RCS Ids 2022-03-11 19:53:16 +00:00
lteo
6c03023488 Bump Ghidra's log4j jar files to 2.17.0 which addresses CVE-2021-45105 2021-12-19 03:36:25 +00:00
lteo
0067e41b61 Replace Ghidra's log4j jar files with the latest release 2.16.0 from ASF.
Feedback on earlier diff from sthen@ and Bastian Wessling
2021-12-15 03:22:18 +00:00
lteo
1a1d4931d7 Update to Ghidra 9.1.2.
https://ghidra-sre.org/releaseNotes_9.1.2.html

Thanks to Jeremy O'Brien for testing!
2020-07-19 01:29:23 +00:00
lteo
f8789dabac Ghidra's build system prefers g++ over clang, which is not what we want on a
clang-based platform like amd64.  This commit makes Ghidra build with clang by:

* Adding a clang toolChains block in nativeBuildProperties.gradle
* Adding COMPILER="base-clang ports-clang"
* Updating WANTLIB by replacing libstdc++ with ${COMPILER_LIBCXX}

In addition, honor CXX by setting tools.cppCompiler.executable and
tools.linker.executable in nativeBuildProperties.gradle to ${CXX}.  Also print
those variables so that we can confirm that they are set properly.

Lastly, add --stacktrace to the gradle command to facilitate future debugging.

Thanks to daniel@ for bringing this to my attention, naddy@ for his detailed
report of the g++ and CXX issues, and sthen@ for suggesting a possible fix.

ok naddy@ sthen@
2019-09-12 02:10:07 +00:00
lteo
4d82db7012 Take maintainership; ok rpointel@
Add a comment that ST4-${ST4_VER}.jar is only needed during build for antlr;
it is not needed at runtime and therefore does not need to be packed.
2019-07-23 02:52:58 +00:00
lteo
e6545fccae Build and pack native components so that Ghidra can decompile programs on
OpenBSD.  This is based on a pull request from Jeremy O'Brien at
https://github.com/NationalSecurityAgency/ghidra/pull/490 and the Ghidra
build guide at
https://github.com/NationalSecurityAgency/ghidra/blob/master/DevGuide.md .

In addition, I have made these changes to make Ghidra work better as an OpenBSD
port:

1. I removed the explicit check for Gradle 5.0 because I was able to build
   Ghidra with latest versions of Gradle.  At the time of commit, our
   java/gradle port is 5.5.1 which is the latest version of Gradle.

2. By default, the Ghidra build process tries to fetch dependent files on demand
   while building.  This will cause the build to fail if the port is built using
   the _pbuild user.  To fix this, I made the port fetch all the dependent .jar
   files prior to building.  I also used gradle's --offline flag which
   explicitly tells gradle to "Execute the build without accessing network
   resources".

3. To prevent the build process from touching $HOME, I made gradle use
   ${WRKDIR}/gradle as its home and also modified GHelpBuilder.java
   (the program that builds help files during build) to log to ${WRKDIR}
   instead of $HOME/.ghidra.

4. One of the Gradle scripts (ip.gradle) scans the Ghidra source tree so
   I had to explicitly tell it to exclude *.orig and *.beforesubst.

help from bentley@ and Jeremy O'Brien
ok bentley@ rpointel@ (maintainer)
2019-07-23 02:09:20 +00:00
sthen
48b0b9660c replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:48:23 +00:00
kurt
7705a5ad0b Revision bump all java ports for the jre package removal and java.port.mk
changes.
2019-06-11 00:38:33 +00:00
lteo
eeb9bd4630 Update to Ghidra 9.0.4.
ok rpointel@
2019-05-26 02:07:44 +00:00
rpointel
5c12b9ca2c import ghidra, a software reverse engineering.
ok and inputs sthen@ bentley@
2019-05-14 07:01:32 +00:00