FreeBSD Bugzilla – Attachment 208942 Details for
Bug 239902
devel/ghidra: Update to 9.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Ghidra 9.1 port
ghidra-9.1.shar (text/plain), 27.50 KB, created by
Tamas Szakaly
on 2019-11-07 11:08:42 UTC
(
hide
)
Description:
Ghidra 9.1 port
Filename:
MIME Type:
Creator:
Tamas Szakaly
Created:
2019-11-07 11:08:42 UTC
Size:
27.50 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># ghidra ># ghidra/distinfo ># ghidra/Makefile ># ghidra/files ># ghidra/files/patch-build.gradle ># ghidra/files/patch-GhidraBuild_Skeleton_certification.manifest ># ghidra/files/patch-Ghidra_Framework_Generic_src_main_java_ghidra_framework_Platform.java ># ghidra/files/patch-GhidraBuild_Skeleton_os_freebsd64_README.txt ># ghidra/files/patch-GPL_nativeBuildProperties.gradle ># ghidra/files/patch-Ghidra_Features_Decompiler_build.gradle ># ghidra/files/patch-Ghidra_Features_FunctionID_build.gradle ># ghidra/files/patch-README.txt ># ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_Makefile ># ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_loadimage__bfd.hh ># ghidra/files/patch-GPL_DemanglerGnu_build.gradle ># ghidra/files/patch-GPL_CabExtract_build.gradle ># ghidra/files/patch-Ghidra_Framework_Utility_src_main_java_ghidra_framework_OperatingSystem.java ># ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_types.h ># ghidra/files/patch-Ghidra_RuntimeScripts_Linux_support_launch.sh ># ghidra/files/patch-gradle_root_distribution.gradle ># ghidra/files/patch-GPL_gpl.gradle ># ghidra/files/patch-gradle_support_ip.gradle ># ghidra/files/patch-GPL_GnuDisassembler_buildGdis.gradle ># ghidra/files/patch-Ghidra_RuntimeScripts_build.gradle ># ghidra/pkg-descr ># >echo c - ghidra >mkdir -p ghidra > /dev/null 2>&1 >echo x - ghidra/distinfo >sed 's/^X//' >ghidra/distinfo << 'c549c736a573b47c8eed967636cf0ac9' >XTIMESTAMP = 1572919336 >XSHA256 (ghidra/yajsw-stable-12.12.zip) = 1398fcb1e93abb19992c4fa06d7fe5758aabb4c45781d7ef306c6f57ca7a7321 >XSIZE (ghidra/yajsw-stable-12.12.zip) = 25051676 >XSHA256 (ghidra/hfsexplorer-0_21-bin.zip) = 90c9b54798abca5b12f4a678db7d0a4c970f4702cb153c11919536d0014dedbf >XSIZE (ghidra/hfsexplorer-0_21-bin.zip) = 1473278 >XSHA256 (ghidra/AXMLPrinter2.jar) = 00ed038eb6abaf6ddec8d202a3ed7a81b521458f4cd459948115cfd02ff59d6d >XSIZE (ghidra/AXMLPrinter2.jar) = 24552 >XSHA256 (ghidra/dex-tools-2.0.zip) = 7907eb4d6e9280b6e17ddce7ee0507eae2ef161ee29f70a10dbc6944fdca75bc >XSIZE (ghidra/dex-tools-2.0.zip) = 2362460 >XSHA256 (ghidra/ghidra-9.1-deps.tar.gz) = 8ba91101c365bbd180884721a9e329a804d4e12c5cec51e7fa275c88d8e8ba02 >XSIZE (ghidra/ghidra-9.1-deps.tar.gz) = 57584763 >XSHA256 (ghidra/NationalSecurityAgency-ghidra-Ghidra_9.1_build_GH0.tar.gz) = 1cead115fce1e06ce3646ba3df7eb06a221405322ba2cda6197a6a5ae45dd0e0 >XSIZE (ghidra/NationalSecurityAgency-ghidra-Ghidra_9.1_build_GH0.tar.gz) = 59599279 >c549c736a573b47c8eed967636cf0ac9 >echo x - ghidra/Makefile >sed 's/^X//' >ghidra/Makefile << '6bd60eb3839e8276e8295089b86ca9ff' >X# $FreeBSD$ >X >XPORTNAME= ghidra >XDISTVERSIONPREFIX= Ghidra_ >XDISTVERSION= 9.1 >XDISTVERSIONSUFFIX= _build >XCATEGORIES= devel security java >XMASTER_SITES= SF/yajsw/yajsw/yajsw-stable-12.12/:yajsw \ >X SF/catacombae/HFSExplorer/0.21/:hfsexplorer \ >X https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/:axml2printer \ >X https://github.com/pxb1988/dex2jar/releases/download/2.0/:dex2jar >XDISTFILES= yajsw-stable-12.12.zip:yajsw \ >X hfsexplorer-0_21-bin.zip:hfsexplorer \ >X AXMLPrinter2.jar:axml2printer \ >X dex-tools-2.0.zip:dex2jar >XDIST_SUBDIR= ${PORTNAME} >XEXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} >X >XMAINTAINER= sghctoma@gmail.com >XCOMMENT= Software reverse engineering (SRE) framework >X >XLICENSE= APACHE20 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XONLY_FOR_ARCHS= amd64 >X >XEXTRACT_DEPENDS= ${UNZIP_CMD}:archivers/unzip >XBUILD_DEPENDS= gradle>=5.0:devel/gradle \ >X bash:shells/bash \ >X flex:textproc/flex \ >X fop:textproc/fop \ >X ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl >XRUN_DEPENDS= bash:shells/bash >X >XUSES= bison shebangfix >X >XSHEBANG_FILES= Ghidra/RuntimeScripts/Linux/* \ >X Ghidra/RuntimeScripts/Linux/support/* \ >X Ghidra/RuntimeScripts/Linux/server/* >X >XUSE_GITHUB= yes >XGH_ACCOUNT= NationalSecurityAgency >X >XUSE_JAVA= yes >XJAVA_BUILD= yes >XJAVA_RUN= yes >XJAVA_VERSION= 11+ >X >XGRADLE_HOME_BASE= /tmp # Gradle cache path must be absolute (see https://github.com/gradle/gradle/issues/1338) >XGRADLE_RUN= ${SETENV} ${MAKE_ENV} gradle \ >X --gradle-user-home ${GRADLE_HOME_BASE}/gradle-${PORTNAME} \ >X --no-daemon >X >X# to rebuild the deps archive: >X# 1. set DEV_UPDATE_MODE=yes >X# 2. make makesum build >X# 3. upload the *-deps archive >X# 4. set DEV_UPDATE_MODE=no >X# 5. make clean makesum >X >XDEV_UPDATE_MODE= no >X >X.if (${DEV_UPDATE_MODE} == "yes") >Xpost-build: >X cd ${GRADLE_HOME_BASE} && ${TAR} czf ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX} gradle-${PORTNAME} >X @${ECHO} "(!!!) Please upload the Gradle deps archive: ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}" >X @${RM} -r ${GRADLE_HOME_BASE}/gradle-${PORTNAME} >X.else >XMASTER_SITES+= https://github.com/sghctoma/ghidra-deps/raw/master/:gradle >XDISTFILES+= ${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}:gradle >XEXTRACT_ONLY+= ${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX} >XGRADLE_RUN+= --offline >X.endif >X >Xpost-extract: >X @${MKDIR} ${WRKDIR}/flatrepo >X @${MKDIR} ${WRKDIR}/dummy.home >X @${CP} ${DISTDIR}/${DIST_SUBDIR}/AXMLPrinter2.jar ${WRKDIR}/flatrepo >X @${UNZIP_CMD} -j -d ${WRKDIR}/flatrepo ${DISTDIR}/${DIST_SUBDIR}/hfsexplorer-0_21-bin.zip \ >X lib/csframework.jar lib/hfsx_dmglib.jar lib/hfsx.jar lib/iharder-base64.jar >X @${UNZIP_CMD} -j -d ${WRKDIR}/flatrepo ${DISTDIR}/${DIST_SUBDIR}/dex-tools-2.0.zip "dex2jar-2.0/lib/dex-*.jar" >X @${MKDIR} ${WRKDIR}/ghidra.bin/Ghidra/Features/GhidraServer/ >X @${CP} ${DISTDIR}/${DIST_SUBDIR}/yajsw-stable-12.12.zip ${WRKDIR}/ghidra.bin/Ghidra/Features/GhidraServer/ >X.if (${DEV_UPDATE_MODE} == "no") >X @${LN} -sf ${WRKDIR}/gradle-${PORTNAME} ${GRADLE_HOME_BASE} >X.endif >X >Xpost-patch: >X @${REINPLACE_CMD} -e "s|/usr/share/sgml/docbook/xsl-stylesheets|${LOCALBASE}/share/xsl/docbook/|g" \ >X ${WRKSRC}/Ghidra/Features/Decompiler/src/main/doc/*.xsl \ >X ${WRKSRC}/Ghidra/Features/FunctionID/src/main/doc/*.xsl >X @${REINPLACE_CMD} -e "s|JAVA_HOME_PLACEHOLDER|${JAVA_HOME}|" \ >X ${WRKSRC}/Ghidra/RuntimeScripts/Linux/support/launch.sh >X @${ECHO_CMD} "org.gradle.java.home=${JAVA_HOME}" > ${WRKSRC}/gradle.properties >X >Xdo-build: >X @cd ${WRKSRC} && ${GRADLE_RUN} yajswDevUnpack buildGhidra >X >Xdo-install: >X @${UNZIP_CMD} -d ${STAGEDIR} ${WRKSRC}/build/dist/*.zip >X @${MV} ${STAGEDIR}/ghidra* ${STAGEDIR}${DATADIR} >X @${RLN} ${STAGEDIR}/${DATADIR}/ghidraRun ${STAGEDIR}${PREFIX}/bin/ghidra >X @${RLN} ${STAGEDIR}/${DATADIR}/server/ghidraSvr ${STAGEDIR}${PREFIX}/bin/ghidra-server >X @${STRIP_CMD} ${STAGEDIR}/${DATADIR}/GPL/DemanglerGnu/os/freebsd64/demangler_gnu >X @${STRIP_CMD} ${STAGEDIR}/${DATADIR}/Ghidra/Features/Decompiler/os/freebsd64/decompile >X @${STRIP_CMD} ${STAGEDIR}/${DATADIR}/Ghidra/Features/Decompiler/os/freebsd64/sleigh >X >Xpost-install: >X @${FIND} ${STAGEDIR} ! -type d | \ >X ${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST} >X @${FIND} -ds ${STAGEDIR}${DATADIR} -type d -empty | \ >X ${SED} 's,${STAGEDIR}${PREFIX}/,, ; s,^,@dir ,' >> ${TMPPLIST} >X >X.include <bsd.port.mk> >6bd60eb3839e8276e8295089b86ca9ff >echo c - ghidra/files >mkdir -p ghidra/files > /dev/null 2>&1 >echo x - ghidra/files/patch-build.gradle >sed 's/^X//' >ghidra/files/patch-build.gradle << '3e156a03c16b4c8b41181b43d8b2d1ef' >X--- build.gradle.orig 2019-10-23 20:54:54 UTC >X+++ build.gradle >X@@ -42,22 +42,28 @@ project.ext.BIN_REPO_PATH = BIN_REPO // TODO make path >X >X /********************************************************************************* >X * Prevent forked Java processes from stealing focus >X+ * Prevent writing to the actual home directory >X *********************************************************************************/ >X+ext.DUMMY_HOME = file("${projectDir}/../dummy.home").absolutePath >X allprojects { >X tasks.withType(JavaForkOptions) { >X jvmArgs '-Djava.awt.headless=true' >X } >X+ tasks.withType(JavaExec) { >X+ jvmArgs "-Duser.home=${DUMMY_HOME}" >X+ } >X } >X >X /********************************************************************************* >X * Use flat directory-style repository if flatRepo directory is present. >X *********************************************************************************/ >X-if (file("flatRepo").isDirectory()) { >X+ext.FLATREPO = file("${projectDir}/../flatrepo").absolutePath >X+if (file("${FLATREPO}").isDirectory()) { >X allprojects { >X repositories { >X mavenCentral() >X jcenter() >X- flatDir name: "flat", dirs:["$rootProject.projectDir/flatRepo"] >X+ flatDir name: "flat", dirs:["${FLATREPO}"] >X } >X } >X } >X@@ -77,7 +83,7 @@ else { >X * project.OS_NAMES.each {...} >X ****************************************************************************/ >X >X-project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64"]) >X+project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64", "freebsd64"]) >X >X /**************************************************************************** >X * Establish Visual Studio configuration environment for Windows native builds >X@@ -137,6 +143,19 @@ def isWindows(String platformName) { >X return platformName.startsWith("win") >X } >X >X+/********************************************************************************* >X+ * Returns true if the platform is a FreeBSD machine. >X+ *********************************************************************************/ >X+def isFreeBSD(String platformName) { >X+ >X+ if (platformName.startsWith("freebsd")) { >X+ return true >X+ } >X+ else { >X+ return false >X+ } >X+} >X+ >X /****************************************************************************************** >X * Helper method that returns a file that is the same relative location in the bin repo >X * as the given project is in its repo. >X@@ -283,6 +302,11 @@ String getCurrentPlatformName() { >X return 'osx64' >X } >X } >X+ else if (osName.startsWith("FreeBSD")) { >X+ if (isX86_64) { >X+ return 'freebsd64' >X+ } >X+ } >X throw new GradleException("Unrecognized current platform -> osName = $osName, archName = $archName") >X } >X >3e156a03c16b4c8b41181b43d8b2d1ef >echo x - ghidra/files/patch-GhidraBuild_Skeleton_certification.manifest >sed 's/^X//' >ghidra/files/patch-GhidraBuild_Skeleton_certification.manifest << '4d5f3ac96682a96e973bf69dc9c4afe8' >X--- GhidraBuild/Skeleton/certification.manifest.orig 2019-10-23 20:54:54 UTC >X+++ GhidraBuild/Skeleton/certification.manifest >X@@ -15,6 +15,7 @@ extension.properties||GHIDRA||||END| >X ghidra_scripts/README.txt||GHIDRA||||END| >X lib/README.txt||GHIDRA||||END| >X os/linux64/README.txt||GHIDRA||||END| >X+os/freebsd64/README.txt||GHIDRA||||END| >X os/osx64/README.txt||GHIDRA||||END| >X os/win64/README.txt||GHIDRA||||END| >X src/main/help/help/TOC_Source.xml||GHIDRA||||END| >4d5f3ac96682a96e973bf69dc9c4afe8 >echo x - ghidra/files/patch-Ghidra_Framework_Generic_src_main_java_ghidra_framework_Platform.java >sed 's/^X//' >ghidra/files/patch-Ghidra_Framework_Generic_src_main_java_ghidra_framework_Platform.java << '5bd77372eaf7a7dd67cbc795420e4744' >X--- Ghidra/Framework/Generic/src/main/java/ghidra/framework/Platform.java.orig 2019-10-23 20:54:54 UTC >X+++ Ghidra/Framework/Generic/src/main/java/ghidra/framework/Platform.java >X@@ -70,7 +70,17 @@ public enum Platform { >X */ >X MAC_UNKNOWN(OperatingSystem.MAC_OS_X, Architecture.UNKNOWN, "osx64", ".dylib", ""), >X >X+ /** >X+ * Identifies a FreeBSD OS. >X+ */ >X+ FREEBSD_32(OperatingSystem.FREEBSD, Architecture.X86, "freebsd32", ".so", ""), >X+ >X /** >X+ * Identifies a FreeBSD OS. >X+ */ >X+ FREEBSD_64(OperatingSystem.FREEBSD, Architecture.X86_64, "freebsd64", ".so", ""), >X+ >X+ /** >X * Identifies an unsupported OS. >X */ >X UNSUPPORTED(OperatingSystem.UNSUPPORTED, Architecture.UNKNOWN, null, null, ""); >X@@ -144,6 +154,15 @@ public enum Platform { >X paths.add("/usr/lib"); >X paths.add("/usr/X11R6/bin"); >X paths.add("/usr/X11R6/lib"); >X+ } >X+ else if (operatingSystem == OperatingSystem.FREEBSD) { >X+ paths.add("/bin"); >X+ paths.add("/lib"); >X+ paths.add("/usr/bin"); >X+ paths.add("/usr/lib"); >X+ paths.add("/usr/local/bin"); >X+ paths.add("/usr/local/lib"); >X+ paths.add("/usr/local/lib/compat"); >X } >X else if (CURRENT_PLATFORM == WIN_64) { >X String windir = System.getenv("SystemRoot"); >5bd77372eaf7a7dd67cbc795420e4744 >echo x - ghidra/files/patch-GhidraBuild_Skeleton_os_freebsd64_README.txt >sed 's/^X//' >ghidra/files/patch-GhidraBuild_Skeleton_os_freebsd64_README.txt << 'd6482fcf845d91a279eb251263254fed' >X--- GhidraBuild/Skeleton/os/freebsd64/README.txt.orig 2019-04-08 17:58:11 UTC >X+++ GhidraBuild/Skeleton/os/freebsd64/README.txt >X@@ -0,0 +1,3 @@ >X+The "os/freebsd64" directory is intended to hold FreeBSD native binaries >X+which this module is dependent upon. This directory may be eliminated for a specific >X+module if native binaries are not provided for the corresponding platform. >d6482fcf845d91a279eb251263254fed >echo x - ghidra/files/patch-GPL_nativeBuildProperties.gradle >sed 's/^X//' >ghidra/files/patch-GPL_nativeBuildProperties.gradle << '274c2fa92be87a03a5e043f4bce5dac2' >X--- GPL/nativeBuildProperties.gradle.orig 2019-10-23 20:54:54 UTC >X+++ GPL/nativeBuildProperties.gradle >X@@ -39,6 +39,10 @@ model { >X architecture 'x86_64' >X operatingSystem 'osx' >X } >X+ freebsd64 { >X+ architecture 'x86_64' >X+ operatingSystem 'freebsd' >X+ } >X } >X } >X >274c2fa92be87a03a5e043f4bce5dac2 >echo x - ghidra/files/patch-Ghidra_Features_Decompiler_build.gradle >sed 's/^X//' >ghidra/files/patch-Ghidra_Features_Decompiler_build.gradle << '49de12a0885e0452d61f677cda2c299f' >X--- Ghidra/Features/Decompiler/build.gradle.orig 2019-10-23 20:54:54 UTC >X+++ Ghidra/Features/Decompiler/build.gradle >X@@ -210,7 +210,8 @@ task buildDecompilerDocumentationHtml(type: Exec) { >X // Check the OS before executing command. >X doFirst { >X if ( !(org.gradle.internal.os.OperatingSystem.current().isLinux() >X- || org.gradle.internal.os.OperatingSystem.current().isMacOsX())) { >X+ || org.gradle.internal.os.OperatingSystem.current().isMacOsX() >X+ || org.gradle.internal.os.OperatingSystem.current().getName().contains("FreeBSD"))) { >X throw new TaskExecutionException( it, >X new Exception( "The '$it.name' task only works on Linux or Mac Os X" )) >X } >X@@ -248,6 +249,7 @@ model { >X targetPlatform "win64" >X targetPlatform "linux64" >X targetPlatform "osx64" >X+ targetPlatform "freebsd64" >X sources { >X cpp { >X source { >X@@ -345,6 +347,7 @@ model { >X targetPlatform "win64" >X targetPlatform "linux64" >X targetPlatform "osx64" >X+ targetPlatform "freebsd64" >X sources { >X cpp { >X source { >49de12a0885e0452d61f677cda2c299f >echo x - ghidra/files/patch-Ghidra_Features_FunctionID_build.gradle >sed 's/^X//' >ghidra/files/patch-Ghidra_Features_FunctionID_build.gradle << '251f093854b5e8c59b45eedf86b73228' >X--- Ghidra/Features/FunctionID/build.gradle.orig 2019-10-23 20:54:54 UTC >X+++ Ghidra/Features/FunctionID/build.gradle >X@@ -75,7 +75,7 @@ task buildFidDocumentationPdf(type: Exec) { >X cp $installPoint/topics/FunctionID/images/*.png $buildDir/images >X >X echo '** Building FunctionID.fo **' >X- xsltproc --output $buildDir/fid_withscaling.xml --stringparam profile.condition "withscaling" /usr/share/sgml/docbook/xsl-stylesheets/profiling/profile.xsl fid.xml 2>&1 >X+ xsltproc --output $buildDir/fid_withscaling.xml --stringparam profile.condition "withscaling" /usr/local/share/xsl/docbook/profiling/profile.xsl fid.xml 2>&1 >X xsltproc --output $buildDir/FunctionID.fo fid_pdf.xsl $buildDir/fid_withscaling.xml 2>&1 >X >X echo '** Building FunctionID.pdf **' >X@@ -98,9 +98,10 @@ task buildFidDocumentationPdf(type: Exec) { >X // Check the OS before executing command. >X doFirst { >X if ( !(org.gradle.internal.os.OperatingSystem.current().isLinux() >X- || org.gradle.internal.os.OperatingSystem.current().isMacOsX())) { >X+ || org.gradle.internal.os.OperatingSystem.current().isMacOsX() >X+ || org.gradle.internal.os.OperatingSystem.current().getName().contains("FreeBSD"))) { >X throw new TaskExecutionException( it, >X- new Exception( "The '$it.name' task only works on Linux or Mac Os X" )) >X+ new Exception( "The '$it.name' task only works on Linux, FreeBSD or Mac Os X" )) >X } >X } >X >X@@ -142,7 +143,7 @@ task buildFidDocumentationHtml(type: Exec) { >X rm -f $installPoint/topics/FunctionID/*.html >X >X echo '** Building html files **' >X- xsltproc --output $buildDir/fid_noscaling.xml --stringparam profile.condition "noscaling" /usr/share/sgml/docbook/xsl-stylesheets/profiling/profile.xsl fid.xml 2>&1 >X+ xsltproc --output $buildDir/fid_noscaling.xml --stringparam profile.condition "noscaling" /usr/local/share/xsl/docbook/profiling/profile.xsl fid.xml 2>&1 >X xsltproc --stringparam base.dir ${installPoint}/topics/FunctionID/ fid_html.xsl $buildDir/fid_noscaling.xml 2>&1 >X sed -i -e '/Frontpage.css/ { p; s/Frontpage.css/languages.css/; }' ${installPoint}/topics/FunctionID/*.html >X >251f093854b5e8c59b45eedf86b73228 >echo x - ghidra/files/patch-README.txt >sed 's/^X//' >ghidra/files/patch-README.txt << '4625cad1d78139a5e62bd1c212a5b5c0' >X--- README.txt.orig 2019-11-04 12:52:32 UTC >X+++ README.txt >X@@ -0,0 +1,3 @@ >X+The "os/freebsd64" directory is intended to hold FreeBSD native binaries >X+which this module is dependent upon. This directory may be eliminated for a specific >X+module if native binaries are not provided for the corresponding platform. >4625cad1d78139a5e62bd1c212a5b5c0 >echo x - ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_Makefile >sed 's/^X//' >ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_Makefile << '4da3b8fad3ffece1b8f7e7dc3bccc387' >X--- Ghidra/Features/Decompiler/src/decompile/cpp/Makefile.orig 2019-11-04 12:40:52 UTC >X+++ Ghidra/Features/Decompiler/src/decompile/cpp/Makefile >X@@ -33,8 +33,8 @@ ifeq ($(OS),Darwin) >X OSDIR=osx64 >X endif >X >X-CC=gcc >X-CXX=g++ >X+CC=cc >X+CXX=c++ >X >X # Debug flags >X DBG_CXXFLAGS=-g -Wall -Wno-sign-compare >4da3b8fad3ffece1b8f7e7dc3bccc387 >echo x - ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_loadimage__bfd.hh >sed 's/^X//' >ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_loadimage__bfd.hh << '8d79286b796dbe525cd8fdec6217a6a2' >X--- Ghidra/Features/Decompiler/src/decompile/cpp/loadimage_bfd.hh.orig 2019-11-04 12:39:57 UTC >X+++ Ghidra/Features/Decompiler/src/decompile/cpp/loadimage_bfd.hh >X@@ -21,6 +21,9 @@ >X #define __LOADIMAGE_BFD__ >X >X #include "loadimage.hh" >X+ >X+#define PACKAGE >X+#define PACKAGE_VERSION >X #include <bfd.h> >X >X struct ImportRecord { >8d79286b796dbe525cd8fdec6217a6a2 >echo x - ghidra/files/patch-GPL_DemanglerGnu_build.gradle >sed 's/^X//' >ghidra/files/patch-GPL_DemanglerGnu_build.gradle << 'b831c262a900f3a9ab84332f5809f98f' >X--- GPL/DemanglerGnu/build.gradle.orig 2019-10-23 20:54:54 UTC >X+++ GPL/DemanglerGnu/build.gradle >X@@ -32,6 +32,10 @@ model { >X architecture 'x86_64' >X operatingSystem 'osx' >X } >X+ freebsd64 { >X+ architecture 'x86_64' >X+ operatingSystem 'freebsd' >X+ } >X } >X } >X >X@@ -72,6 +76,7 @@ model { >X targetPlatform "win64" >X targetPlatform "linux64" >X targetPlatform "osx64" >X+ targetPlatform "freebsd64" >X sources { >X c { >X source { >X@@ -88,6 +93,9 @@ model { >X } >X >X model { >X+ toolChains { >X+ clang(Clang) >X+ } >X binaries { >X all{ b -> >X if (toolChain in Gcc) { >b831c262a900f3a9ab84332f5809f98f >echo x - ghidra/files/patch-GPL_CabExtract_build.gradle >sed 's/^X//' >ghidra/files/patch-GPL_CabExtract_build.gradle << '96f18d3938f77b41c39415400beafdfe' >X--- GPL/CabExtract/build.gradle.orig 2019-11-04 12:59:19 UTC >X+++ GPL/CabExtract/build.gradle >X@@ -58,7 +58,7 @@ task configureCabExtract (type: Exec) { >X * The cabextract tool requires that its 'configure' script is called before make. >X *********************************************************************************/ >X def currentPlatform = getCurrentPlatformName() >X-if (['linux64', 'osx64'].contains(currentPlatform)) { >X+if (['linux64', 'osx64', 'freebsd64'].contains(currentPlatform)) { >X >X def makeName = "${currentPlatform}CabExtractMake" // native Make task found automatically >X >X@@ -75,4 +75,4 @@ if (['linux64', 'osx64'].contains(currentPlatform)) { >X delete file("build/unpack/${cabextract}") >X } >X } >X-} >X\ No newline at end of file >X+} >96f18d3938f77b41c39415400beafdfe >echo x - ghidra/files/patch-Ghidra_Framework_Utility_src_main_java_ghidra_framework_OperatingSystem.java >sed 's/^X//' >ghidra/files/patch-Ghidra_Framework_Utility_src_main_java_ghidra_framework_OperatingSystem.java << '185b81a6c47e48377fe6239034267d7b' >X--- Ghidra/Framework/Utility/src/main/java/ghidra/framework/OperatingSystem.java.orig 2019-10-23 20:54:54 UTC >X+++ Ghidra/Framework/Utility/src/main/java/ghidra/framework/OperatingSystem.java >X@@ -20,6 +20,7 @@ public enum OperatingSystem { >X WINDOWS("Windows"), >X LINUX("Linux"), >X MAC_OS_X("Mac OS X"), >X+ FREEBSD("FreeBSD"), >X UNSUPPORTED("Unsupported Operating System"); >X >X /** >185b81a6c47e48377fe6239034267d7b >echo x - ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_types.h >sed 's/^X//' >ghidra/files/patch-Ghidra_Features_Decompiler_src_decompile_cpp_types.h << 'bbaf1d870a382f4125234a9928012d91' >X--- Ghidra/Features/Decompiler/src/decompile/cpp/types.h.orig 2019-10-23 20:54:54 UTC >X+++ Ghidra/Features/Decompiler/src/decompile/cpp/types.h >X@@ -101,6 +101,36 @@ typedef char int1; >X typedef uint8 uintp; >X #endif >X >X+#if defined (__FreeBSD__) && defined (__i386__) >X+#define HOST_ENDIAN 0 >X+typedef unsigned long uintm; >X+typedef long intm; >X+typedef unsigned long long uint8; >X+typedef long long int8; >X+typedef unsigned int uint4; >X+typedef int int4; >X+typedef unsigned short uint2; >X+typedef short int2; >X+typedef unsigned char uint1; >X+typedef char int1; >X+typedef uint4 uintp; >X+#endif >X+ >X+#if defined (__FreeBSD__) && defined (__x86_64__) >X+#define HOST_ENDIAN 0 >X+typedef unsigned int uintm; >X+typedef int intm; >X+typedef unsigned long uint8; >X+typedef long int8; >X+typedef unsigned int uint4; >X+typedef int int4; >X+typedef unsigned short uint2; >X+typedef short int2; >X+typedef unsigned char uint1; >X+typedef char int1; >X+typedef uint8 uintp; >X+#endif >X+ >X #if defined(_WINDOWS) >X >X #if defined(_WIN64) >bbaf1d870a382f4125234a9928012d91 >echo x - ghidra/files/patch-Ghidra_RuntimeScripts_Linux_support_launch.sh >sed 's/^X//' >ghidra/files/patch-Ghidra_RuntimeScripts_Linux_support_launch.sh << 'cf909eecffa5bb8837754c7ae82b4f34' >X--- Ghidra/RuntimeScripts/Linux/support/launch.sh.orig 2019-11-05 09:27:57 UTC >X+++ Ghidra/RuntimeScripts/Linux/support/launch.sh >X@@ -88,6 +88,7 @@ else >X DEBUG_LOG4J="${INSTALL_DIR}/Ghidra/RuntimeScripts/Common/support/debug.log4j.xml" >X fi >X >X+PATH="JAVA_HOME_PLACEHOLDER/bin:"$PATH >X # Make sure some kind of java is on the path. It's required to run the LaunchSupport program. >X if ! [ -x "$(command -v java)" ] ; then >X echo "Java runtime not found. Please refer to the Ghidra Installation Guide's Troubleshooting section." >cf909eecffa5bb8837754c7ae82b4f34 >echo x - ghidra/files/patch-gradle_root_distribution.gradle >sed 's/^X//' >ghidra/files/patch-gradle_root_distribution.gradle << 'f8c03da69a07cd152a73459362a3e560' >X--- gradle/root/distribution.gradle.orig 2019-11-04 13:01:27 UTC >X+++ gradle/root/distribution.gradle >X@@ -382,6 +382,7 @@ task createInstallationZip(type: Zip) { t -> >X dependsOn ":assembleDistribution_win64" >X dependsOn ":assembleDistribution_linux64" >X dependsOn ":assembleDistribution_osx64" >X+ dependsOn ":assembleDistribution_freebsd64" >X dependsOn ":assembleSource" >X } >X >f8c03da69a07cd152a73459362a3e560 >echo x - ghidra/files/patch-GPL_gpl.gradle >sed 's/^X//' >ghidra/files/patch-GPL_gpl.gradle << '0f299c2608a7f93261f1ae2939ab1735' >X--- GPL/gpl.gradle.orig 2019-11-04 13:00:14 UTC >X+++ GPL/gpl.gradle >X@@ -6,7 +6,7 @@ project.ext.BIN_REPO = file("../../../ghidra.bin").abs >X * Create a set containing all the platforms we need when building native >X * artifacts. >X ****************************************************************************/ >X-project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64"]) >X+project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64", "freebsd64"]) >X >X /**************************************************************************** >X * Establish Visual Studio configuration environment for Windows native builds >X@@ -43,6 +43,11 @@ ext.getCurrentPlatformName = { >X return 'osx64' >X } >X } >X+ else if (osName.startsWith("FreeBSD")) { >X+ if (isX86_64) { >X+ return 'freebsd64' >X+ } >X+ } >X throw new GradleException("Unrecognized current platform -> osName = $osName, archName = $archName") >X } >X /****************************************************************************************** >0f299c2608a7f93261f1ae2939ab1735 >echo x - ghidra/files/patch-gradle_support_ip.gradle >sed 's/^X//' >ghidra/files/patch-gradle_support_ip.gradle << '76ef34eca469b4a286413372d0830c49' >X--- gradle/support/ip.gradle.orig 2019-11-04 12:56:00 UTC >X+++ gradle/support/ip.gradle >X@@ -119,6 +119,8 @@ def Map<String, List<String>> getIpForModule(Project p >X exclude "**/data/build.xml" // language build file (generated for dev only) >X exclude "**/.vs/**" >X exclude "**/*.vcxproj.user" >X+ exclude "**/*.orig" >X+ exclude "**/*.bak" >X } >X tree.each { file -> >X String ip = getIp(p.projectDir, file) >76ef34eca469b4a286413372d0830c49 >echo x - ghidra/files/patch-GPL_GnuDisassembler_buildGdis.gradle >sed 's/^X//' >ghidra/files/patch-GPL_GnuDisassembler_buildGdis.gradle << '9009b5fa669e977bec59d1e4555fc1e2' >X--- GPL/GnuDisassembler/buildGdis.gradle.orig 2019-11-04 13:11:50 UTC >X+++ GPL/GnuDisassembler/buildGdis.gradle >X@@ -6,7 +6,7 @@ >X >X defaultTasks 'assemble' >X >X-ext.supportedPlatforms = ['osx64', 'linux64'] >X+ext.supportedPlatforms = ['osx64', 'linux64', 'freebsd64'] >X >X ext.binutilsResource = new File("${binutilsLocation}/${binutils}.tar.bz2") >X >X@@ -31,6 +31,10 @@ model { >X architecture 'x86_64' >X operatingSystem 'osx' >X } >X+ freebsd64 { >X+ architecture 'x86_64' >X+ operatingSystem 'freebsd' >X+ } >X } >X >X components { >X@@ -65,6 +69,9 @@ model { >X } >X tasks.compileGdisLinux64ExecutableGdisC { >X dependsOn 'copyBinutilsArtifcats_linux64' >X+ } >X+ tasks.compileGdisFreeBSD64ExecutableGdisC { >X+ dependsOn 'copyBinutilsArtifcats_freebsd64' >X } >X >X } >9009b5fa669e977bec59d1e4555fc1e2 >echo x - ghidra/files/patch-Ghidra_RuntimeScripts_build.gradle >sed 's/^X//' >ghidra/files/patch-Ghidra_RuntimeScripts_build.gradle << '6f5df9bbe8f33013c1e8e00c089627b5' >X--- Ghidra/RuntimeScripts/build.gradle.orig 2019-11-05 09:19:07 UTC >X+++ Ghidra/RuntimeScripts/build.gradle >X@@ -17,7 +17,7 @@ rootProject.OS_NAMES.each { platform -> >X rootProject.tasks.findAll {it.name == "assembleDistribution_$platform"}.each { t -> >X def p = this.project >X >X- if (isLinux(platform) || isMac(platform)) { >X+ if (isLinux(platform) || isMac(platform) || isFreeBSD(platform)) { >X t.from ("${p.projectDir}/Linux/support") { >X into "support" >X } >6f5df9bbe8f33013c1e8e00c089627b5 >echo x - ghidra/pkg-descr >sed 's/^X//' >ghidra/pkg-descr << '9e695d8ab2a5479b856ecc040a523ca6' >XGhidra is a software reverse engineering (SRE) framework created >Xand maintained by the National Security Agency Research Directorate >Xof the United States of America. >X >XThis framework includes a suite of full-featured, high-end software >Xanalysis tools that enable users to analyze compiled code on a >Xvariety of platforms including Windows, macOS, and Linux. Capabilities >Xinclude disassembly, assembly, decompilation, graphing, and scripting, >Xalong with hundreds of other features. Ghidra supports a wide variety >Xof processor instruction sets and executable formats and can be run >Xin both user-interactive and automated modes. Users may also develop >Xtheir own Ghidra plug-in components and/or scripts using Java or >XPython. >X >XWWW: https://ghidra-sre.org/ >9e695d8ab2a5479b856ecc040a523ca6 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 239902
: 208942