mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
gnu: radare2: Update to 6.0.7 [security fixes].
Includes fixes for CVE-2025-1744, CVE-2025-1864, CVE-2025-60358, CVE-2025-60359, CVE-2025-60360, CVE-2025-60361, CVE-2025-63744, CVE-2025-63745, CVE-2024-26475, CVE-2024-11858, CVE-2023-0302, CVE-2023-1605, CVE-2023-4322, CVE-2023-5686, CVE-2023-46569, CVE-2023-46570, CVE-2023-47016, CVE-2022-0173, CVE-2022-0419, CVE-2022-0139, CVE-2022-0518, CVE-2022-0519, CVE-2022-0520, CVE-2022-0521, CVE-2022-0522, CVE-2022-0523, CVE-2022-0559, CVE-2022-0676, CVE-2022-0712, CVE-2022-0713, CVE-2022-0476, CVE-2022-0695, CVE-2022-0849, CVE-2022-1031, CVE-2022-1061, CVE-2022-1052, CVE-2022-1207, CVE-2022-1244, CVE-2022-1237, CVE-2022-1238, CVE-2022-1240, CVE-2022-1283, CVE-2022-1284, CVE-2022-1296, CVE-2022-1297, CVE-2022-1382, CVE-2022-1383, CVE-2022-1437, CVE-2022-1444, CVE-2022-1451, CVE-2022-1452, CVE-2022-1649, CVE-2022-1714, CVE-2022-1809, CVE-2022-1899, CVE-2022-4398, CVE-2022-4843. * gnu/packages/engineering.scm (radare2): Update to 6.0.7. [build-system]: Switch to meson-build-system. [arguments]: <#:tests>: enable tests; <#:phases>: remove 'mklibdir, add 'fix-relative-include, add 'skip-tests. [inputs]: Add gmp, libzip, lz4, quickjs-ng, sdb, zlib; remove zip. [native-inputs]: Add node, perl, python-minimal-wrapper. * gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch: New file. * gnu/packages/patches/radare2-fix-meson-build-to-use-sys-sdb.patch: New file. * gnu/local.mk: (dist_patch_DATA): Register new patch files. Change-Id: I646f67279d238c3d447b3dca97d78b5768989a14 Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
@@ -129,6 +129,7 @@
|
||||
#:use-module (gnu packages image)
|
||||
#:use-module (gnu packages image-processing)
|
||||
#:use-module (gnu packages imagemagick)
|
||||
#:use-module (gnu packages javascript)
|
||||
#:use-module (gnu packages jupyter)
|
||||
#:use-module (gnu packages kde-frameworks)
|
||||
#:use-module (gnu packages libcanberra)
|
||||
@@ -145,6 +146,7 @@
|
||||
#:use-module (gnu packages ncurses)
|
||||
#:use-module (gnu packages nettle)
|
||||
#:use-module (gnu packages networking)
|
||||
#:use-module (gnu packages node)
|
||||
#:use-module (gnu packages openkinect)
|
||||
#:use-module (gnu packages parallel)
|
||||
#:use-module (gnu packages pcre)
|
||||
@@ -2095,7 +2097,7 @@ bootloader in Espressif ESP8266 & ESP32 series chips.")
|
||||
(define-public radare2
|
||||
(package
|
||||
(name "radare2")
|
||||
(version "5.1.1")
|
||||
(version "6.0.7")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
@@ -2103,29 +2105,59 @@ bootloader in Espressif ESP8266 & ESP32 series chips.")
|
||||
(commit version)))
|
||||
(sha256
|
||||
(base32
|
||||
"0hv9x31iabasj12g8f04incr1rbcdkxi3xnqn3ggp8gl4h6pf2f3"))
|
||||
(file-name (git-file-name name version))))
|
||||
(build-system gnu-build-system)
|
||||
"1nkqa8mkmvmbc3812gf5ayfmzyf0krjgc1695rpkphw3fsl76rgx"))
|
||||
(file-name (git-file-name name version))
|
||||
(patches
|
||||
(search-patches "radare2-fix-meson-build-to-use-sys-sdb.patch"
|
||||
"radare2-fix-meson-build-to-use-sys-qjs.patch"))))
|
||||
(build-system meson-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ; tests require git and network access
|
||||
#:configure-flags
|
||||
#~(list "-Duse_libuv=true"
|
||||
"-Duse_ssl=true"
|
||||
"-Duse_sys_capstone=true"
|
||||
"-Duse_sys_lz4=true"
|
||||
"-Duse_sys_magic=true"
|
||||
"-Duse_sys_openssl=true"
|
||||
"-Duse_sys_xxhash=true"
|
||||
"-Duse_sys_zip=true"
|
||||
"-Duse_sys_zlib=true")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'configure 'mklibdir
|
||||
(lambda _ (mkdir-p (string-append #$output "/lib")))))
|
||||
#:configure-flags
|
||||
#~(list "--with-openssl"
|
||||
"--with-rpath"
|
||||
"--with-syscapstone"
|
||||
"--with-sysmagic"
|
||||
"--with-syszip"
|
||||
"--with-sysxxhash")
|
||||
#:make-flags #~(list (string-append "CC=" #$(cc-for-target)))))
|
||||
;; TODO: Add gmp and libzip and make the build system actually find them.
|
||||
;; CHECK LATER: This patches an incorrect relative include.
|
||||
(add-before 'build 'fix-relative-include
|
||||
(lambda _
|
||||
(substitute* "../source/libr/arch/p/java/plugin.c"
|
||||
(("include \".." all)
|
||||
(string-append all "/..")))))
|
||||
;; These tests require sample binaries from an external repository.
|
||||
(add-before 'check 'skip-tests
|
||||
(lambda _
|
||||
(substitute* '("../source/test/unit/test_bin.c"
|
||||
"../source/test/unit/test_dwarf.c"
|
||||
"../source/test/unit/test_dwarf_info.c"
|
||||
"../source/test/unit/test_dwarf_integration.c"
|
||||
"../source/test/unit/test_pdb.c"
|
||||
;; TODO: add r2pipe and enable this test.
|
||||
"../source/test/unit/test_r2pipe.c")
|
||||
(("(^| )main *\\(.*" all)
|
||||
(string-append all " exit (77);\n"))))))))
|
||||
(inputs
|
||||
(list capstone libuv openssl zip))
|
||||
(list capstone
|
||||
gmp
|
||||
libuv
|
||||
libzip
|
||||
lz4
|
||||
openssl
|
||||
quickjs-ng
|
||||
sdb
|
||||
zlib))
|
||||
(native-inputs
|
||||
(list pkg-config))
|
||||
(list node
|
||||
perl
|
||||
pkg-config
|
||||
python-minimal-wrapper))
|
||||
(propagated-inputs
|
||||
;; In the Libs: section of r_hash.pc.
|
||||
(list xxhash))
|
||||
|
||||
Reference in New Issue
Block a user