ports/security/ghidra/patches/patch-Ghidra_Features_FunctionID_build_gradle

19 lines
801 B
Text

From https://github.com/NationalSecurityAgency/ghidra/pull/490
Index: Ghidra/Features/FunctionID/build.gradle
--- Ghidra/Features/FunctionID/build.gradle.orig
+++ Ghidra/Features/FunctionID/build.gradle
@@ -97,10 +97,10 @@ task buildFidDocumentationPdf(type: Exec) {
// Check the OS before executing command.
doFirst {
- if ( !(org.gradle.internal.os.OperatingSystem.current().isLinux()
- || org.gradle.internal.os.OperatingSystem.current().isMacOsX())) {
+ String osName = System.getProperty("os.name")
+ if ( !(isLinux(osName) || isMac(osName) || isOpenBSD(osName))) {
throw new TaskExecutionException( it,
- new Exception( "The '$it.name' task only works on Linux or Mac Os X" ))
+ new Exception( "The '$it.name' task only works on Linux, Mac OS X, or OpenBSD" ))
}
}