diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-03-24 15:37:42 -0400 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-28 14:00:18 +0000 |
| commit | 7df83d43f2062fab594d2efce2b1f55dac85d0b2 (patch) | |
| tree | 5aa736902c7adb47eb81e3ebf2f7d52041711332 | |
| parent | 6a5da5cc58626d6b534b9385223d43675b13a022 (diff) | |
gnu: radare2: Update to 6.1.2.
* gnu/packages/engineering.scm (radare2): Update to 6.1.2.
* gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch:
Adjust diff for upstream code changes.
Merges: https://codeberg.org/guix/guix/pulls/7446
Change-Id: I70e106dd13ce221cb7f0273cc27d701893ca3a3d
Reviewed-by: Nguyễn Gia Phong <cnx@loang.net>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/engineering.scm | 4 | ||||
| -rw-r--r-- | gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch | 43 |
2 files changed, 12 insertions, 35 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index be890d1c190..ffa18f1dcdd 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm | |||
| @@ -1947,7 +1947,7 @@ bootloader in Espressif ESP8266 & ESP32 series chips.") | |||
| 1947 | (define-public radare2 | 1947 | (define-public radare2 |
| 1948 | (package | 1948 | (package |
| 1949 | (name "radare2") | 1949 | (name "radare2") |
| 1950 | (version "6.1.0") ;keep in sync with iaito | 1950 | (version "6.1.2") ;keep in sync with iaito |
| 1951 | (source (origin | 1951 | (source (origin |
| 1952 | (method git-fetch) | 1952 | (method git-fetch) |
| 1953 | (uri (git-reference | 1953 | (uri (git-reference |
| @@ -1955,7 +1955,7 @@ bootloader in Espressif ESP8266 & ESP32 series chips.") | |||
| 1955 | (commit version))) | 1955 | (commit version))) |
| 1956 | (sha256 | 1956 | (sha256 |
| 1957 | (base32 | 1957 | (base32 |
| 1958 | "0949q61l9c5b1f62ilvqs3lh4c98my7wkj43di2x7wrs4rz0qv1q")) | 1958 | "1d4sslhjxm00fchqcszfa59wf51v632jvf7aj4af0vdhl9f9n8k2")) |
| 1959 | (file-name (git-file-name name version)) | 1959 | (file-name (git-file-name name version)) |
| 1960 | (patches | 1960 | (patches |
| 1961 | (search-patches "radare2-fix-meson-build-to-use-sys-sdb.patch" | 1961 | (search-patches "radare2-fix-meson-build-to-use-sys-sdb.patch" |
diff --git a/gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch b/gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch index 4e862b02d74..54b345b78bb 100644 --- a/gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch +++ b/gnu/packages/patches/radare2-fix-meson-build-to-use-sys-qjs.patch | |||
| @@ -3,18 +3,23 @@ Use guix-provided qjs instead of a meson subproject. | |||
| 3 | Patch by bdunahu <bdunahu@operationnull.com>. | 3 | Patch by bdunahu <bdunahu@operationnull.com>. |
| 4 | 4 | ||
| 5 | diff --git a/libr/lang/meson.build b/libr/lang/meson.build | 5 | diff --git a/libr/lang/meson.build b/libr/lang/meson.build |
| 6 | index 0742e0e531..a6367cea39 100644 | 6 | index b84a187af7..2d96b8a7cf 100644 |
| 7 | --- a/libr/lang/meson.build | 7 | --- a/libr/lang/meson.build |
| 8 | +++ b/libr/lang/meson.build | 8 | +++ b/libr/lang/meson.build |
| 9 | @@ -4,13 +4,11 @@ r_lang_sources = [ | 9 | @@ -4,9 +4,8 @@ r_lang_sources = [ |
| 10 | 10 | ||
| 11 | spp_inc = [platform_inc, include_directories('../../shlr/spp')] | 11 | spp_inc = [platform_inc, include_directories('../../shlr/spp')] |
| 12 | 12 | ||
| 13 | -qjs = subproject('qjs') | 13 | -qjs = subproject('qjs') |
| 14 | -qjs_inc = qjs.get_variable('incs') | 14 | -qjs_inc = qjs.get_variable('incs') |
| 15 | -qjs_static = qjs.get_variable('qjs_static') | 15 | -qjs_static = qjs.get_variable('qjs_static') |
| 16 | |||
| 17 | +qjs_dep = cc.find_library('qjs', required: true) | 16 | +qjs_dep = cc.find_library('qjs', required: true) |
| 17 | + | ||
| 18 | r_lang_pkgcfg_private_libs = [] | ||
| 19 | if mth.found() | ||
| 20 | r_lang_pkgcfg_private_libs += ['-lm'] | ||
| 21 | @@ -14,7 +13,7 @@ endif | ||
| 22 | |||
| 18 | 23 | ||
| 19 | r_lang = library('r_lang', r_lang_sources, | 24 | r_lang = library('r_lang', r_lang_sources, |
| 20 | - include_directories: [platform_inc, spp_inc, qjs_inc], | 25 | - include_directories: [platform_inc, spp_inc, qjs_inc], |
| @@ -22,7 +27,7 @@ index 0742e0e531..a6367cea39 100644 | |||
| 22 | c_args: library_cflags, | 27 | c_args: library_cflags, |
| 23 | dependencies: [ | 28 | dependencies: [ |
| 24 | r_util_dep, | 29 | r_util_dep, |
| 25 | @@ -21,19 +19,23 @@ r_lang = library('r_lang', r_lang_sources, | 30 | @@ -25,15 +24,15 @@ r_lang = library('r_lang', r_lang_sources, |
| 26 | r_esil_dep, | 31 | r_esil_dep, |
| 27 | r_muta_dep, | 32 | r_muta_dep, |
| 28 | r_cons_dep, | 33 | r_cons_dep, |
| @@ -36,35 +41,7 @@ index 0742e0e531..a6367cea39 100644 | |||
| 36 | ) | 41 | ) |
| 37 | 42 | ||
| 38 | -r_lang_dep = declare_dependency(link_with: r_lang, include_directories: [platform_inc, qjs_inc]) | 43 | -r_lang_dep = declare_dependency(link_with: r_lang, include_directories: [platform_inc, qjs_inc]) |
| 39 | +r_lang_dep = declare_dependency( | 44 | +r_lang_dep = declare_dependency(link_with: r_lang, include_directories: [platform_inc], dependencies: [qjs_dep]) |
| 40 | + link_with: r_lang, | ||
| 41 | + include_directories: [platform_inc], | ||
| 42 | + dependencies: [qjs_dep], | ||
| 43 | +) | ||
| 44 | 45 | ||
| 45 | if get_option('blob') | 46 | if get_option('blob') |
| 46 | r_lang_static = static_library('r_lang_static', r_lang_sources, | 47 | r_lang_static = static_library('r_lang_static', r_lang_sources, |
| 47 | - include_directories: [platform_inc, spp_inc, qjs_inc], | ||
| 48 | + # include_directories: [platform_inc, spp_inc qjs_inc], # unused | ||
| 49 | c_args: library_cflags, | ||
| 50 | dependencies: [ | ||
| 51 | r_util_static_dep, | ||
| 52 | @@ -43,13 +45,15 @@ r_lang_static = static_library('r_lang_static', r_lang_sources, | ||
| 53 | r_muta_static_dep, | ||
| 54 | r_cons_static_dep, | ||
| 55 | ], | ||
| 56 | - link_with: qjs_static, | ||
| 57 | + # link_with: qjs_static, # unused | ||
| 58 | install: true, | ||
| 59 | implicit_include_directories: false, | ||
| 60 | ) | ||
| 61 | |||
| 62 | -r_lang_static_dep = declare_dependency(link_with: r_lang_static, | ||
| 63 | - include_directories: [platform_inc, qjs_inc]) | ||
| 64 | +r_lang_static_dep = declare_dependency( | ||
| 65 | + link_with: r_lang_static, | ||
| 66 | + # include_directories: [platform_inc, qjs_inc] # unused | ||
| 67 | + ) | ||
| 68 | endif | ||
| 69 | |||
| 70 | pkgconfig_mod.generate(r_lang, | ||
