Skip to content

Commit

Permalink
ghidra: fix build on gradle 8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jan 18, 2025
1 parent a185fbd commit 8308da2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/tools/security/ghidra/0004-Fix-build-on-Gradle-8.12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/gradle/hasPythonPackage.gradle b/gradle/hasPythonPackage.gradle
index 2d83cf0cd3..8f3205f9ff 100644
--- a/gradle/hasPythonPackage.gradle
+++ b/gradle/hasPythonPackage.gradle
@@ -44,7 +44,7 @@ task buildPyPackage {
doLast {
File setuptools = project(":Debugger-rmi-trace").findPyDep(".")
exec {
- workingDir { "build/pypkg" }
+ workingDir { file("build/pypkg") }
commandLine rootProject.PYTHON3, "-m", "pip"
args "wheel", "-w", "dist/", "--no-index", "--no-deps"
args "-f", setuptools
4 changes: 4 additions & 0 deletions pkgs/tools/security/ghidra/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ let

# Remove build dates from output filenames for easier reference
./0003-Remove-build-datestamp.patch

# Fix build on Gradle 8.12
# Upstream: https://github.com/NationalSecurityAgency/ghidra/commit/20285e267d110cfa585676dfd40804a59031598b
./0004-Fix-build-on-Gradle-8.12.patch
];

postPatch = ''
Expand Down

0 comments on commit 8308da2

Please sign in to comment.