unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63669: [PATCH] gnu: cutter: Update to 2.3.4.
       [not found] <CA+8M6w=QL66jkmWOpvTQ443DfjAn_dhUW2wsH3bq5thSws1cFg@mail.gmail.com>
@ 2024-04-14  2:54 ` Juliana Sims via Bug reports for GNU Guix
  2024-06-11 21:56   ` bug#70371: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Juliana Sims via Bug reports for GNU Guix @ 2024-04-14  2:54 UTC (permalink / raw)
  To: guix-patches; +Cc: Juliana Sims, 63669, raingloom, xvilka, zimon.toutoune

Hello,

This patch updates Cutter to the latest version and removes an unneeded radare2
package. It closes issue 63669.

Disregard my comments on that issue. I decided against packaging the decompilers
so there is no reason to enable all of the other options. This is great because
enabling all of them increases the package closure's size by 1.5GB. By contrast,
this version's entire closure is more like 1.1GB.

I do have patches for both rz-ghidra and the "full" version of Cutter if they
prove desirable. I did not manage to resolve the plugin discovery issue, but I
did manage to build Cutter with Python plugin support.

Thanks,
Juli

* gnu/packages/engineering.scm (cutter): Update to 2.3.4.
(radare2-for-cutter): Delete.
---
 gnu/packages/engineering.scm | 75 +++++++++++++-----------------------
 1 file changed, 26 insertions(+), 49 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 6f42d674e51..c68c49adf0f 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -39,6 +39,7 @@
 ;;; Copyright © 2023 Theofilos Pechlivanis <theofilos.pechlivanis@gmail.com>
 ;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;; Copyright © 2023 pinoaffe <pinoaffe@gmail.com>
+;;; Copyright © 2024 Juliana Sims <juli@incana.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2491,67 +2492,43 @@ (define-public gnucap
 simulation.")
     (license license:gpl3+)))
 
-(define-public radare2-for-cutter
-  (package
-    (inherit radare2)
-    (name "radare2")
-    (version "5.0.0")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/radareorg/radare2")
-                    (commit version)))
-              (sha256
-               (base32
-                "0aa7c27kd0l55fy5qfvxqmakp4pz6240v3hn84095qmqkzcbs420"))
-              (file-name (git-file-name name version))))))
-
 (define-public cutter
   (package
     (name "cutter")
-    (version "1.12.0")
+    (version "2.3.4")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
              (url "https://github.com/rizinorg/cutter")
-             (commit (string-append "v" version))))
+             (commit (string-append "v" version))
+             (recursive? #t)))
+       (snippet #~((@ (guix build utils) delete-file-recursively)
+                   "rizin"))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0ljj3j3apbbw628n2nyrxpbnclixx20bqjxm0xwggqzz9vywsar0"))))
-    (build-system gnu-build-system)
+        (base32 "0d10g1wpw8p8hcxvw5q7ymfdxyrp4xqs6a49lf3gdgnmcpb248ad"))))
+    (build-system qt-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'configure
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out"))
-                   (radare2 (assoc-ref inputs "radare2")))
-               ;; Fix pkg-config detection ./src/lib_radare2.pri:PREFIX=/usr/lib
-               ;; override `qmake PREFIX=`.
-               (substitute* "./src/lib_radare2.pri"
-                 (("PREFIX") "R2PREFIX")
-                 (("R2PREFIX=/usr") (string-append "R2PREFIX=" radare2)))
-               (invoke "qmake"
-                       (string-append "PREFIX=" out)
-                       "./src/Cutter.pro")))))))
-    (native-inputs
-     (list pkg-config))
-    (inputs
-     (list qtbase-5
-           qtsvg-5
-           openssl
-           ;; Depends on radare2 4.5.1 officially, builds and works fine with
-           ;; radare2 5.0.0 but fails to build with radare2 5.1.1.
-           radare2-for-cutter))
+     (list
+      #:configure-flags #~(list "-DCUTTER_USE_BUNDLED_RIZIN=OFF")
+      #:tests? #f)) ;no tests
+    (native-inputs (list pkgconf))
+    (inputs (list libzip
+                  openssl
+                  qtsvg-5
+                  qttools-5
+                  rizin
+                  zlib))
     (home-page "https://cutter.re")
-    (synopsis "GUI for radare2 reverse engineering framework")
-    (description "Cutter is a GUI for radare2 reverse engineering framework.
-Its goal is making an advanced andcustomizable reverse-engineering platform
-while keeping the user experience at mind.  Cutter is created by reverse
-engineers for reverse engineers.")
-    (license (list license:cc-by-sa3.0  ;the "Iconic" icon set
-                   license:gpl3+))))    ;everything else
+    (synopsis "Software reverse engineering platform")
+    (description
+     "Cutter is a free and open-source reverse engineering platform powered by
+@code{rizin}.  It aims to be an advanced and customizable reverse engineering
+platform while keeping the user experience in mind.  Cutter is created by
+reverse engineers for reverse engineers.")
+    (license (list license:cc-by-sa3.0 ;the "Iconic" icon set
+                   license:gpl3+))))   ;everything else
 
 (define-public lib3mf
   (package

base-commit: 238e4ec73e4143f3a5a85b56ca00d395cdf60197
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#70371: [PATCH] gnu: cutter: Update to 2.3.4.
  2024-04-14  2:54 ` bug#63669: [PATCH] gnu: cutter: Update to 2.3.4 Juliana Sims via Bug reports for GNU Guix
@ 2024-06-11 21:56   ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-06-11 21:56 UTC (permalink / raw)
  To: Juliana Sims; +Cc: 70371-done, zimon.toutoune, raingloom, xvilka, 63669-done

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

Hi Juliana,

Juliana Sims <juli@incana.org> skribis:

> * gnu/packages/engineering.scm (cutter): Update to 2.3.4.
> (radare2-for-cutter): Delete.

Applied with the cosmetic changes below.  Thanks!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1511 bytes --]

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 2dbbaaa040f..e518d24fa2f 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2504,8 +2504,8 @@ (define-public cutter
              (url "https://github.com/rizinorg/cutter")
              (commit (string-append "v" version))
              (recursive? #t)))
-       (snippet #~((@ (guix build utils) delete-file-recursively)
-                   "rizin"))
+       (modules '((guix build utils)))
+       (snippet #~(delete-file-recursively "rizin"))
        (file-name (git-file-name name version))
        (sha256
         (base32 "0d10g1wpw8p8hcxvw5q7ymfdxyrp4xqs6a49lf3gdgnmcpb248ad"))))
@@ -2524,10 +2524,10 @@ (define-public cutter
     (home-page "https://cutter.re")
     (synopsis "Software reverse engineering platform")
     (description
-     "Cutter is a free and open-source reverse engineering platform powered by
-@code{rizin}.  It aims to be an advanced and customizable reverse engineering
-platform while keeping the user experience in mind.  Cutter is created by
-reverse engineers for reverse engineers.")
+     "Cutter is a reverse engineering platform powered by @code{rizin}.  It
+aims to be an advanced and customizable reverse engineering platform while
+keeping the user experience in mind.  Cutter is created by reverse engineers
+for reverse engineers.")
     (license (list license:cc-by-sa3.0 ;the "Iconic" icon set
                    license:gpl3+))))   ;everything else
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-11 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CA+8M6w=QL66jkmWOpvTQ443DfjAn_dhUW2wsH3bq5thSws1cFg@mail.gmail.com>
2024-04-14  2:54 ` bug#63669: [PATCH] gnu: cutter: Update to 2.3.4 Juliana Sims via Bug reports for GNU Guix
2024-06-11 21:56   ` bug#70371: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).