From: vitezfh <vitezfh@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] ghidra: update to 10.2
Date: Sun, 13 Nov 2022 17:33:49 +0100 [thread overview]
Message-ID: <20221113163349.pUJ4omVt0W21IlNfbFQu1yu0PZnX6Y3NbvBtfoRvmH0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40381@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]
There is an updated pull request by vitezfh against master on the void-packages repository
https://github.com/vitezfh/void-packages ghidra_update
https://github.com/void-linux/void-packages/pull/40381
ghidra: update to 10.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
Maybe someone familiar with ghidra can have another look. @abenson ?
It compiles and patches successfully after these changes. Runs seemingly fine too.
A patch file from https://github.com/void-linux/void-packages/pull/40381.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ghidra_update-40381.patch --]
[-- Type: text/x-diff, Size: 7249 bytes --]
From c161b26250b74d5e1bb12177fa45c64d12db0292 Mon Sep 17 00:00:00 2001
From: sv <stjepan@vitez.xyz>
Date: Tue, 8 Nov 2022 14:30:36 +0100
Subject: [PATCH] ghidra: update to 10.2.1
---
srcpkgs/ghidra/patches/protoc.patch | 28 ++++++++++++++--------------
srcpkgs/ghidra/template | 18 +++++++++++-------
2 files changed, 25 insertions(+), 21 deletions(-)
diff --git a/srcpkgs/ghidra/patches/protoc.patch b/srcpkgs/ghidra/patches/protoc.patch
index aa985b86cf6d..ed98035e6372 100644
--- a/srcpkgs/ghidra/patches/protoc.patch
+++ b/srcpkgs/ghidra/patches/protoc.patch
@@ -9,39 +9,39 @@
- allProtocArtifacts 'com.google.protobuf:protoc:3.17.3:linux-aarch_64@exe'
- allProtocArtifacts 'com.google.protobuf:protoc:3.17.3:osx-x86_64@exe'
- allProtocArtifacts 'com.google.protobuf:protoc:3.17.3:osx-aarch_64@exe'
-+ allProtocArtifacts 'com.google.protobuf:protoc:3.18.1:windows-x86_64@exe'
-+ allProtocArtifacts 'com.google.protobuf:protoc:3.18.1:linux-x86_64@exe'
-+ allProtocArtifacts 'com.google.protobuf:protoc:3.18.1:linux-aarch_64@exe'
-+ allProtocArtifacts 'com.google.protobuf:protoc:3.18.1:osx-x86_64@exe'
-+ allProtocArtifacts 'com.google.protobuf:protoc:3.18.1:osx-aarch_64@exe'
++ allProtocArtifacts 'com.google.protobuf:protoc:3.21.9:windows-x86_64@exe'
++ allProtocArtifacts 'com.google.protobuf:protoc:3.21.9:linux-x86_64@exe'
++ allProtocArtifacts 'com.google.protobuf:protoc:3.21.9:linux-aarch_64@exe'
++ allProtocArtifacts 'com.google.protobuf:protoc:3.21.9:osx-x86_64@exe'
++ allProtocArtifacts 'com.google.protobuf:protoc:3.21.9:osx-aarch_64@exe'
if (isCurrentWindows()) {
- protocArtifact 'com.google.protobuf:protoc:3.17.3:windows-x86_64@exe'
-+ protocArtifact 'com.google.protobuf:protoc:3.18.1:windows-x86_64@exe'
++ protocArtifact 'com.google.protobuf:protoc:3.21.9:windows-x86_64@exe'
}
if (isCurrentLinux()) {
if (platform.endsWith("x86_64")) {
- protocArtifact 'com.google.protobuf:protoc:3.17.3:linux-x86_64@exe'
-+ protocArtifact 'com.google.protobuf:protoc:3.18.1:linux-x86_64@exe'
++ protocArtifact 'com.google.protobuf:protoc:3.21.9:linux-x86_64@exe'
}
else {
- protocArtifact 'com.google.protobuf:protoc:3.17.3:linux-aarch_64@exe'
-+ protocArtifact 'com.google.protobuf:protoc:3.18.1:linux-aarch_64@exe'
++ protocArtifact 'com.google.protobuf:protoc:3.21.9:linux-aarch_64@exe'
}
}
if (isCurrentMac()) {
if (platform.endsWith("x86_64")) {
- protocArtifact 'com.google.protobuf:protoc:3.17.3:osx-x86_64@exe'
-+ protocArtifact 'com.google.protobuf:protoc:3.18.1:osx-x86_64@exe'
++ protocArtifact 'com.google.protobuf:protoc:3.21.9:osx-x86_64@exe'
}
else {
- protocArtifact 'com.google.protobuf:protoc:3.17.3:osx-aarch_64@exe'
-+ protocArtifact 'com.google.protobuf:protoc:3.18.1:osx-aarch_64@exe'
++ protocArtifact 'com.google.protobuf:protoc:3.21.9:osx-aarch_64@exe'
}
}
- api 'com.google.protobuf:protobuf-java:3.17.3'
-+ api 'com.google.protobuf:protobuf-java:3.18.1'
++ api 'com.google.protobuf:protobuf-java:3.21.9'
api project(':Framework-AsyncComm')
api project(':Framework-Debugging')
api project(':ProposedUtils')
@@ -50,7 +50,7 @@
/*protobuf {
protoc {
- artifact = 'com.google.protobuf:protoc:3.17.3'
-+ artifact = 'com.google.protobuf:protoc:3.18.1'
++ artifact = 'com.google.protobuf:protoc:3.21.9'
}
}*/
@@ -73,5 +73,5 @@
--- ghidra-10.1/ghidra_build/Ghidra/Debug/Debugger-gadp/Module.manifest 2021-12-10 19:03:38.000000000 +0100
+++ - 2021-12-11 13:02:09.420069640 +0100
@@ -1 +1 @@
--MODULE FILE LICENSE: lib/protobuf-java-3.17.3.jar BSD
-+MODULE FILE LICENSE: lib/protobuf-java-3.18.1.jar BSD
+-MODULE FILE LICENSE: lib/protobuf-java-3.17.3.jar BSD-3-GOOGLE
++MODULE FILE LICENSE: lib/protobuf-java-3.21.9.jar BSD-3-GOOGLE
diff --git a/srcpkgs/ghidra/template b/srcpkgs/ghidra/template
index 32edeb3be08b..32b0fbbbf595 100644
--- a/srcpkgs/ghidra/template
+++ b/srcpkgs/ghidra/template
@@ -1,22 +1,23 @@
# Template file for 'ghidra'
pkgname=ghidra
-version=10.1.5
+version=10.2.1
revision=1
+# commit id of 'ghidra-data' repo:
_commit=939210dab2570714944ac35a4daef9633fd842b3
archs="x86_64* aarch64*"
# Other 64bit archs should be easily patchable,
# grep for linux_arm_64 to find all places in need of patching
create_wrksrc=yes
build_wrksrc="ghidra_build"
-hostmakedepends="gradle openjdk11 flex unzip protobuf which"
-depends="openjdk11"
+hostmakedepends="gradle openjdk17 flex unzip protobuf which"
+depends="openjdk17"
short_desc="Software reverse engineering (SRE) framework"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="Apache-2.0"
homepage="https://ghidra-sre.org/"
distfiles="https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${version}_build.tar.gz
https://github.com/pxb1988/dex2jar/releases/download/2.0/dex-tools-2.0.zip
- https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-beta-13.01/yajsw-beta-13.01.zip
+ https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-13.05/yajsw-stable-13.05.zip
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar
https://github.com/NationalSecurityAgency/ghidra-data/raw/${_commit}/FunctionID/vs2012_x64.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/${_commit}/FunctionID/vs2012_x86.fidb
@@ -28,9 +29,9 @@ distfiles="https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${ver
https://github.com/NationalSecurityAgency/ghidra-data/raw/${_commit}/FunctionID/vs2019_x86.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/${_commit}/FunctionID/vsOlder_x64.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/${_commit}/FunctionID/vsOlder_x86.fidb"
-checksum="935840ba384406a58f9bf70542f29ec33270c2f484365a5b00997d4fa2de5458
+checksum="4cc9c9eaa1e2577766f66462c8528d88ac9dea670a2511afa03f895cf67a4b99
7907eb4d6e9280b6e17ddce7ee0507eae2ef161ee29f70a10dbc6944fdca75bc
- 430fb7901bd0fd52a5b90bd0cbd89e9d334077eb72a9b26896f465de1e593a99
+ ff7a4c8262f7d24079b16607122bad8f6fb024f051c27b91883d9498568429a9
00ed038eb6abaf6ddec8d202a3ed7a81b521458f4cd459948115cfd02ff59d6d
80d1c31c636b1775dd06001747dfb7e2ff60ff716299a8fcc232b8d2faa53a21
8fc7ea9451b3a201ac3623b4a0924427cbb6bba410bdf9ebba4f2dfe8e77dfad
@@ -75,7 +76,7 @@ post_extract() {
do_configure() {
mkdir -p dependencies/{GhidraServer,fidb,flatRepo}
- cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yajsw-beta-13.01.zip dependencies/GhidraServer
+ cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yajsw-stable-13.05.zip dependencies/GhidraServer
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.fidb dependencies/fidb
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/AXMLPrinter2.jar dependencies/flatRepo
cp -f ../dex2jar-2.0/lib/dex-*.jar dependencies/flatRepo
@@ -95,4 +96,7 @@ do_install() {
bsdtar --strip-components 1 -C ${DESTDIR}/usr/libexec/ghidra -xf build/dist/ghidra_${version}_DEV_$(date -u +%Y%m%d)_linux_${arch}.zip
vmkdir usr/bin
ln -srf /usr/libexec/$pkgname/ghidraRun ${DESTDIR}/usr/bin/ghidra
+ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+ rm ${DESTDIR}/usr/libexec/ghidra/Ghidra/Features/FileFormats/data/sevenzipnativelibs/Linux-amd64/lib7-Zip-JBinding.so
+ fi
}
next prev parent reply other threads:[~2022-11-13 16:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-08 13:43 [PR PATCH] " vitezfh
2022-11-08 23:07 ` classabbyamp
2022-11-08 23:39 ` vitezfh
2022-11-09 11:52 ` unspecd
2022-11-09 12:03 ` unspecd
2022-11-09 12:04 ` unspecd
2022-11-09 12:05 ` vitezfh
2022-11-09 12:06 ` unspecd
2022-11-09 12:11 ` unspecd
2022-11-09 13:04 ` vitezfh
2022-11-09 13:04 ` vitezfh
2022-11-09 13:13 ` [PR PATCH] [Updated] " vitezfh
2022-11-09 14:38 ` vitezfh
2022-11-09 14:38 ` [PR PATCH] [Updated] " vitezfh
2022-11-09 14:47 ` unspecd
2022-11-09 14:50 ` unspecd
2022-11-09 14:52 ` unspecd
2022-11-09 14:54 ` unspecd
2022-11-09 14:55 ` unspecd
2022-11-09 16:51 ` [PR PATCH] [Updated] " vitezfh
2022-11-12 6:01 ` oreo639
2022-11-12 6:02 ` oreo639
2022-11-13 16:33 ` vitezfh [this message]
2022-11-29 3:13 ` [PR PATCH] [Closed]: ghidra: update to 10.2.1 abenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221113163349.pUJ4omVt0W21IlNfbFQu1yu0PZnX6Y3NbvBtfoRvmH0@z \
--to=vitezfh@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).