diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-06-06 16:32:55 -0400 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-19 11:35:17 +0900 |
| commit | 87bbb96d72676eac0d5b4dfa33cfea47fc56ed61 (patch) | |
| tree | 355756863d716fb11afa51b0b582a2e3e4c7bdde /gnu/packages/engineering.scm | |
| parent | 1a39338517225f114cc8de7b52d364319b24c5c8 (diff) | |
gnu: r2ghidra: Update to 6.1.6.
* gnu/packages/engineering.scm (r2ghidra): Update to 6.1.6.
[source]<snippet>: Keep unused references.
[#:make-flags]: Pass R2GHIDRA_USE_RXML.
Remove pugixml linker and include flags.
[inputs]: Remove pugixml-next.
Merges: https://codeberg.org/guix/guix/pulls/9121
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages/engineering.scm')
| -rw-r--r-- | gnu/packages/engineering.scm | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 99ce654981a..1d72c3ced63 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm | |||
| @@ -1823,10 +1823,11 @@ like relocation symbols. It is able to deal with malformed binaries, making | |||
| 1823 | it suitable for security research and analysis.") | 1823 | it suitable for security research and analysis.") |
| 1824 | (license license:lgpl3))) | 1824 | (license license:lgpl3))) |
| 1825 | 1825 | ||
| 1826 | ;; TODO: Keep in sync with radare2. | ||
| 1826 | (define-public r2ghidra | 1827 | (define-public r2ghidra |
| 1827 | (package | 1828 | (package |
| 1828 | (name "r2ghidra") | 1829 | (name "r2ghidra") |
| 1829 | (version "6.1.4") | 1830 | (version "6.1.6") |
| 1830 | (source | 1831 | (source |
| 1831 | (origin | 1832 | (origin |
| 1832 | (method git-fetch) | 1833 | (method git-fetch) |
| @@ -1835,7 +1836,7 @@ it suitable for security research and analysis.") | |||
| 1835 | (commit version))) | 1836 | (commit version))) |
| 1836 | (file-name (git-file-name name version)) | 1837 | (file-name (git-file-name name version)) |
| 1837 | (sha256 | 1838 | (sha256 |
| 1838 | (base32 "04x7vmg67zz0llkz3r3nmcky5z8c4ha31z8jzkm19dnyslw2qlxr")) | 1839 | (base32 "0y52707s78rr5vzdylmwyx2rywmz8i5j2a3rz977wbzcz685n0pz")) |
| 1839 | (modules '((guix build utils))) | 1840 | (modules '((guix build utils))) |
| 1840 | (snippet | 1841 | (snippet |
| 1841 | ;; Delete bundled libs and remove their references. | 1842 | ;; Delete bundled libs and remove their references. |
| @@ -1844,24 +1845,19 @@ it suitable for security research and analysis.") | |||
| 1844 | (("ZLIB_LDFLAGS=.*") "") | 1845 | (("ZLIB_LDFLAGS=.*") "") |
| 1845 | (("ZLIB_CFLAGS=.*") "")) | 1846 | (("ZLIB_CFLAGS=.*") "")) |
| 1846 | (substitute* "src/Makefile" | 1847 | (substitute* "src/Makefile" |
| 1847 | (("(all:) subprojects-zlib" _ f) f) | 1848 | (("(all:) subprojects-zlib" _ f) f)))))) |
| 1848 | (("PUGIXML_OBJS=.*") "") | ||
| 1849 | (("PUGIXML_SRCS=.*") "") | ||
| 1850 | (("PUGIXML_CFLAGS=.*") "")))))) | ||
| 1851 | (build-system gnu-build-system) | 1849 | (build-system gnu-build-system) |
| 1852 | (arguments | 1850 | (arguments |
| 1853 | (list | 1851 | (list |
| 1854 | #:make-flags | 1852 | #:make-flags |
| 1855 | #~(let* ((zlib #$(this-package-input "zlib")) | 1853 | #~(let* ((zlib #$(this-package-input "zlib"))) |
| 1856 | (pugixml #$(this-package-input "pugixml-next"))) | ||
| 1857 | (list (string-append "CC=" #$(cc-for-target)) | 1854 | (list (string-append "CC=" #$(cc-for-target)) |
| 1858 | (format #f "ZLIB_LDFLAGS=-L~a/lib/ -lz" zlib) | 1855 | (format #f "ZLIB_LDFLAGS=-L~a/lib/ -lz" zlib) |
| 1859 | (format #f "LDFLAGS=-L~a/lib/ -lpugixml" pugixml) | ||
| 1860 | (format #f "ZLIB_CFLAGS=-I~a/include/" zlib) | 1856 | (format #f "ZLIB_CFLAGS=-I~a/include/" zlib) |
| 1861 | (format #f "PUGIXML_CFLAGS=-I~a/include/" pugixml) | ||
| 1862 | ;; Ensure this matches R2_LIBR_PLUGINS as exported | 1857 | ;; Ensure this matches R2_LIBR_PLUGINS as exported |
| 1863 | ;; by radare2 & iaito. | 1858 | ;; by radare2 & iaito. |
| 1864 | (format #f "PLUGDIR=~a/lib/radare2" #$output))) | 1859 | (format #f "PLUGDIR=~a/lib/radare2" #$output) |
| 1860 | "R2GHIDRA_USE_RXML=1")) ;use r2 xml parser instead of pugixml | ||
| 1865 | #:tests? #f ;no 'check' rule, test dir may require 3rd-party binaries | 1861 | #:tests? #f ;no 'check' rule, test dir may require 3rd-party binaries |
| 1866 | #:phases | 1862 | #:phases |
| 1867 | #~(modify-phases %standard-phases | 1863 | #~(modify-phases %standard-phases |
| @@ -1889,10 +1885,7 @@ it suitable for security research and analysis.") | |||
| 1889 | (substitute* "ghidra/Makefile" | 1885 | (substitute* "ghidra/Makefile" |
| 1890 | (("(sleigh-install D=\")\\$\\(DD\\)" _ f) | 1886 | (("(sleigh-install D=\")\\$\\(DD\\)" _ f) |
| 1891 | (string-append f sleighhome))))))))) | 1887 | (string-append f sleighhome))))))))) |
| 1892 | (inputs | 1888 | (inputs (list radare2 zlib)) |
| 1893 | (list pugixml-next | ||
| 1894 | radare2 | ||
| 1895 | zlib)) | ||
| 1896 | (native-inputs | 1889 | (native-inputs |
| 1897 | (list ghidra-native | 1890 | (list ghidra-native |
| 1898 | pkg-config | 1891 | pkg-config |
