Bug 239902 - devel/ghidra: Fails to build with Gradle 5.6
Summary: devel/ghidra: Fails to build with Gradle 5.6
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL: https://people.freebsd.org/~pi/logs/g...
Depends on:
Blocks: 239875
  Show dependency treegraph
Reported: 2019-08-16 10:07 UTC by Tobias Kortkamp
Modified: 2019-11-07 11:08 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (sghctoma)

Ghidra 9.1 port (27.50 KB, text/plain)
2019-11-07 11:08 UTC, Tamas Szakaly
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Kortkamp freebsd_committer 2019-08-16 10:07:06 UTC
FAILURE: Build failed with an exception.

* Where:
Build file '/wrkdirs/usr/ports/devel/ghidra/work/ghidra-Ghidra_9.0.4_build/build.gradle' line: 10

* What went wrong:
A problem occurred evaluating root project 'ghidra-Ghidra_9.0.4_build'.
> Requires Gradle 5.0, but was run with 5.6

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

*** Error code 1

Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-16 11:05:46 UTC
* Gradle 5.0 or later - We use version 5.0, and tested with up to 5.5.1.

Seems only have to change:

 9 if (gradle.gradleVersion != "5.0") {
     10         throw new GradleException("Requires Gradle 5.0, but was run with $gradle.gradleVersion")
     11 }
Comment 2 Tamas Szakaly 2019-11-07 11:08:42 UTC
Created attachment 208942 [details]
Ghidra 9.1 port

Hi all,
I was finally able to take a loot at this. The attached shar updates devel/ghidra to version 9.1, which implicitly resolves the Gradle version issue. The port is now also adapted to the new bsd.java.mk system.

The port now builds fine with Poudriere on 11.3-RELEASE-p4, 12.0-RELEASE-p11, 12.1-RELEASE and 13.0-CURRENT.