Subject: [bug#39514] [PATCH] update radare2 and cutter versions

From: [email-masked]
Date: Sat, 08 Feb 2020 16:53:30 +0100

update radare2 and cutter, they need to be updated at the same time 
since old cutter doesn't build with new radare2 and new cutter doesn't 
build with old radare2
---
  gnu/packages/engineering.scm | 20 +++++++++++---------
  1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 4db8109249..f76c2800e4 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1270,14 +1270,16 @@ bindings for Python, Java, OCaml and more.")
  (define-public radare2
    (package
      (name "radare2")
-    (version "3.5.1")
+    (version "4.2.1")
      (source (origin
-              (method url-fetch)
-              (uri (string-append "https://radare.mikelloc.com/get/" 
version "/"
-                                  "radare2-" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/radareorg/radare2")
+                    (commit version)))
                (sha256
                 (base32
-                
"174x5545fw2nyf000gd46hi7rx2bn3bw5bsnvizn9yi99pn7m4mw"))
+                
"14b9433cgc2nabhz836zfgvgh2dwailcmvy05krsa0inmzbvx9fg"))
+              (file-name (string-append name "-" version "-checkout"))
                (modules '((guix build utils)))
                (snippet
                 '(begin
@@ -1290,7 +1292,7 @@ bindings for Python, Java, OCaml and more.")
                    #t))))
      (build-system gnu-build-system)
      (arguments
-     '(#:tests? #f                      ; tests require git and network 
access
+     '(#:tests? #f              ; tests require git and network access
         #:phases
         (modify-phases %standard-phases
           (add-before 'configure 'mklibdir
@@ -1312,7 +1314,7 @@ bindings for Python, Java, OCaml and more.")
      (home-page "https://radare.org/")
      (synopsis "Portable reversing framework")
      (description
-      "Radare project started as a forensics tool, a scriptable 
commandline
+     "Radare project started as a forensics tool, a scriptable 
commandline
  hexadecimal editor able to open disk files, but later support for 
analyzing
  binaries, disassembling code, debugging programs, attaching to remote 
gdb
  servers, ...")
@@ -2089,7 +2091,7 @@ simulation.")
  (define-public cutter
    (package
      (name "cutter")
-    (version "1.8.3")
+    (version "1.10.1")
      (source
       (origin
         (method git-fetch)
@@ -2099,7 +2101,7 @@ simulation.")
         (file-name (git-file-name name version))
         (sha256
          (base32
-         "03f3cdckh51anx9gd1b0ndb2fg7061hqngvygf32ky29mm2m2lyv"))))
+         "1gvsrcskcdd1hxrjpkpc657anmfs25f174vxk4wzvn385rnmrxd3"))))
      (build-system gnu-build-system)
      (arguments
       `(#:phases
-- 
2.25.0