all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: "54299@debbugs.gnu.org" <54299@debbugs.gnu.org>,
	Efraim Flashner <efraim@flashner.co.il>,
	Maxime Devos <maximedevos@telenet.be>
Subject: [bug#54299] [PATCH v3] Build on Aarch64
Date: Sat, 15 Oct 2022 07:17:28 +0000	[thread overview]
Message-ID: <K5yVilpipFX449PFoZ-gptDo4cHqNcZz6ltGaKIajdc359CCO5QmG55jF8qqQK-FJ4EP7aBhusXp1Qf0yYIBgrwyJeOv2RVP3II-Hx2jtDE=@protonmail.com> (raw)
In-Reply-To: <20220308164628.19298-1-trzickel@illegalaliensfrom.space>


[-- Attachment #1.1: Type: text/plain, Size: 434 bytes --]

Hi Maxime,

could you please review the 2 patches for Alacritty?

First one is to build it on Aarch64 (disables one failing test).

The other enables HW support on devices like PineBook Pro - I remeber you use one Efraim. [1]

The rest is just for newer version.

I have to check the antioxidant system! It's been on my list for too long.

1 https://github.com/alacritty/alacritty/issues/128#issuecomment-880270507

Thanks!

----
Petr

[-- Attachment #1.2: Type: text/html, Size: 853 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: v3-0003-gnu-rust-structopt-derive-0.4-Update-to-0.4.18.patch --]
[-- Type: text/x-patch; name=v3-0003-gnu-rust-structopt-derive-0.4-Update-to-0.4.18.patch, Size: 1086 bytes --]

From 40545268e803fa52727645e95c83705d2ed09e3a Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 23 Apr 2022 21:04:58 +0200
Subject: [PATCH v3 3/7] gnu: rust-structopt-derive-0.4: Update to 0.4.18.

* gnu/packages/crates-io.scm (rust-structopt-derive-0.4): Update to 0.4.18.

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 538267c560..7a095701ba 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61636,7 +61636,7 @@ (define-public rust-structopt-0.2
 (define-public rust-structopt-derive-0.4
   (package
    (name "rust-structopt-derive")
-   (version "0.4.14")
+   (version "0.4.18")
    (source
     (origin
      (method url-fetch)
@@ -61645,7 +61645,7 @@ (define-public rust-structopt-derive-0.4
       (string-append name "-" version ".tar.gz"))
      (sha256
       (base32
-       "143gjwvz3s86hwp070km83y25n8kqp5f01kb1dr19f4ilkywvaav"))))
+       "1q5gcigmvw0cinjxzpyrkflliq5r1ivljmrvfrl3phcwgwraxdfw"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
-- 
2.37.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: v3-0007-gnu-alacritty-Remove-input-labels.patch --]
[-- Type: text/x-patch; name=v3-0007-gnu-alacritty-Remove-input-labels.patch, Size: 2263 bytes --]

From 7cea824edfc410bcccbebd0c31ecd7f392648781 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Fri, 5 Aug 2022 19:06:15 +0200
Subject: [PATCH v3 7/7] gnu: alacritty: Remove input labels.

* gnu/packages/terminals.scm (alacritty)[inputs]: Remove labels.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 665d8e073e..d0513c17cb 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -1459,30 +1459,25 @@ (define-public alacritty
                (install-file "extra/completions/alacritty.fish"
                              (string-append share "/fish/vendor_completions.d"))
                #t))))))
-    (native-inputs
-     `(("cmake" ,cmake)
-       ("ncurses" ,ncurses)
-       ("pkg-config" ,pkg-config)
-       ("python3" ,python)))
-    (inputs
-     `(("expat" ,expat)
-       ("fontconfig" ,fontconfig)
-       ("freetype" ,freetype)
-       ("libx11" ,libx11)
-       ("libxcb" ,libxcb)
-       ("libxcursor" ,libxcursor)
-       ("libxi" ,libxi)
-       ("libxkbcommon" ,libxkbcommon)
-       ("libxrandr" ,libxrandr)
-       ("libxxf86vm" ,libxxf86vm)
-       ("mesa" ,mesa)
-       ("rust-bitflags" ,rust-bitflags-1)
-       ("rust-dirs" ,rust-dirs-3)
-       ("rust-libc" ,rust-libc-0.2)
-       ("rust-unicode-width" ,rust-unicode-width-0.1)
-       ("rust-wayland-client" ,rust-wayland-client-0.28)
-       ("rust-winapi" ,rust-winapi-0.3)
-       ("wayland" ,wayland)))
+    (native-inputs (list cmake ncurses pkg-config python))
+    (inputs (list expat
+                  fontconfig
+                  freetype
+                  libx11
+                  libxcb
+                  libxcursor
+                  libxi
+                  libxkbcommon
+                  libxrandr
+                  libxxf86vm
+                  mesa
+                  rust-bitflags-1
+                  rust-dirs-3
+                  rust-libc-0.2
+                  rust-unicode-width-0.1
+                  rust-wayland-client-0.28
+                  rust-winapi-0.3
+                  wayland))
     (native-search-paths
      ;; FIXME: This should only be located in 'ncurses'.  Nonetheless it is
      ;; provided for usability reasons.  See <https://bugs.gnu.org/22138>.
-- 
2.37.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: v3-0006-gnu-alacritty-Update-to-0.10.1.patch --]
[-- Type: text/x-patch; name=v3-0006-gnu-alacritty-Update-to-0.10.1.patch, Size: 4945 bytes --]

From fd2101715dd10f021db8ee5989036c1024d9f03d Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sun, 24 Apr 2022 11:06:41 +0200
Subject: [PATCH v3 6/7] gnu: alacritty: Update to 0.10.1.

* gnu/packages/terminals.scm (alacritty): Update to 0.10.1.
  [arguments]: Update to rust-alacritty-terminal-0.16, rust-glutin-0.28,
  rust-raw-window-handle-0.4 and rust-wayland-client-0.29. Add rust-dirs-3,
  rust-structopt-0.3 and rust-unicode-width-0.1. Remove rust-clap-2,
  rust-time-0.1, rust-urlocator-0.1 in cargo-inputs.
 Update version of packages in 'add-absolute-library-references phase.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index ce096b1bc2..665d8e073e 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -29,7 +29,7 @@
 ;;; Copyright © 2021 ikasero <ahmed@ikasero.com>
 ;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
 ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
-;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
 ;;; Copyright © 2022 Felipe Balbi <balbi@kernel.org>
 ;;; Copyright © 2022 ( <paren@disroot.org>
 ;;;
@@ -1331,7 +1331,7 @@ (define-public tio
 (define-public alacritty
   (package
     (name "alacritty")
-    (version "0.9.0")
+    (version "0.10.1")
     (source
      (origin
        ;; XXX: The crate at "crates.io" has limited contents.  In particular,
@@ -1350,7 +1350,7 @@ (define-public alacritty
           "alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch")
           '()))
        (sha256
-        (base32 "068y0b1a0m33r7a3j2xf6k602sc8062gm4d5568ynfx6w5n481lj"))))
+        (base32 "1s38gyx0ifcf1vcr6n8gzbk7rg1apxrz7js8cp8x5k1s0m3abys3"))))
     (build-system cargo-build-system)
     (arguments
      `(#:install-source? #f     ; virtual manifest
@@ -1360,46 +1360,42 @@ (define-public alacritty
                             '("--skip=mock_term") '()))
        #:cargo-inputs
        (("rust-alacritty-config-derive" ,rust-alacritty-config-derive-0.1)
-        ("rust-alacritty-terminal" ,rust-alacritty-terminal-0.15)
-        ("rust-clap" ,rust-clap-2)
+        ("rust-alacritty-terminal" ,rust-alacritty-terminal-0.16)
         ("rust-cocoa" ,rust-cocoa-0.24)
         ("rust-copypasta" ,rust-copypasta-0.7)
         ("rust-crossfont" ,rust-crossfont-0.3)
+        ("rust-dirs" ,rust-dirs-3)
         ("rust-embed-resource" ,rust-embed-resource-1)
         ("rust-fnv" ,rust-fnv-1)
         ("rust-gl-generator" ,rust-gl-generator-0.14)
         ;; XXX: Adjust `add-absolute-library-references' phase when updating
         ;; glutin input.
-        ("rust-glutin" ,rust-glutin-0.26)
+        ("rust-glutin" ,rust-glutin-0.28)
         ("rust-log" ,rust-log-0.4)
         ("rust-notify" ,rust-notify-4)
         ("rust-objc" ,rust-objc-0.2)
         ("rust-parking-lot" ,rust-parking-lot-0.11)
         ("rust-png" ,rust-png-0.16)
-        ("rust-raw-window-handle" ,rust-raw-window-handle-0.3)
+        ("rust-raw-window-handle" ,rust-raw-window-handle-0.4)
         ("rust-serde" ,rust-serde-1)
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-serde-yaml" ,rust-serde-yaml-0.8)
-        ("rust-time" ,rust-time-0.1)
-        ("rust-urlocator" ,rust-urlocator-0.1)
+        ("rust-structopt" ,rust-structopt-0.3)
+        ("rust-unicode-width" ,rust-unicode-width-0.1)
         ("rust-x11-dl" ,rust-x11-dl-2)
         ("rust-xdg" ,rust-xdg-2))
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'use-new-nix
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (substitute* "alacritty_terminal/Cargo.toml"
-               (("0.22.0") "^0.23.0"))))
          (add-after 'configure 'add-absolute-library-references
            (lambda* (#:key inputs cargo-inputs vendor-dir #:allow-other-keys)
-             (let* ((glutin-name ,(package-name rust-glutin-0.26))
-                    (glutin-version ,(package-version rust-glutin-0.26))
+             (let* ((glutin-name ,(package-name rust-glutin-0.28))
+                    (glutin-version ,(package-version rust-glutin-0.28))
                     (glutin-api (string-append glutin-name "-" glutin-version
                                                ".tar.gz/src/api/"))
                     (smithay-client-toolkit-name
-                     ,(package-name rust-smithay-client-toolkit-0.12))
+                     ,(package-name rust-smithay-client-toolkit-0.15))
                     (smithay-client-toolkit-version
-                     ,(package-version rust-smithay-client-toolkit-0.12))
+                     ,(package-version rust-smithay-client-toolkit-0.15))
                     (smithay-client-toolkit-src
                      (string-append smithay-client-toolkit-name "-"
                                     smithay-client-toolkit-version ".tar.gz/src"))
-- 
2.37.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: v3-0002-gnu-alacritty-Patch-to-run-on-OpenGL-3.1-on-aarch.patch --]
[-- Type: text/x-patch; name=v3-0002-gnu-alacritty-Patch-to-run-on-OpenGL-3.1-on-aarch.patch, Size: 5330 bytes --]

From 9d0448eb50f428179ae51b12f6af96f7652efa36 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 15 Oct 2022 08:42:17 +0200
Subject: [PATCH v3 2/7] gnu: alacritty: Patch to run on OpenGL 3.1 on aarch64
 target.

* gnu/packages/terminals.scm (alacritty)[source]: Apply patch on aarch64
target.
* gnu/packages/patches/alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch:
New file
* gnu/local.mk: Add patch.

diff --git a/gnu/local.mk b/gnu/local.mk
index 78bdc113ac..15c62d5c7f 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -865,6 +865,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/akonadi-paths.patch		\
   %D%/packages/patches/akonadi-not-relocatable.patch		\
   %D%/packages/patches/akonadi-timestamps.patch		\
+  %D%/packages/patches/alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch \
   %D%/packages/patches/allegro-mesa-18.2.5-and-later.patch	\
   %D%/packages/patches/anki-mpv-args.patch			\
   %D%/packages/patches/antiword-CVE-2014-8123.patch			\
diff --git a/gnu/packages/patches/alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch b/gnu/packages/patches/alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch
new file mode 100644
index 0000000000..92d72a83e7
--- /dev/null
+++ b/gnu/packages/patches/alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch
@@ -0,0 +1,86 @@
+From cc6f303100075e286d09ca77d31749f7adcdffc6 Mon Sep 17 00:00:00 2001
+From: Autumn <autumnontape@tutanota.com>
+Date: Wed, 14 Jul 2021 04:37:03 -0700
+Subject: [PATCH] use OpenGL 3.1 with extensions instead of OpenGL 3.3
+
+---
+ alacritty/build.rs            | 2 +-
+ alacritty/res/rect.f.glsl     | 2 +-
+ alacritty/res/rect.v.glsl     | 3 ++-
+ alacritty/res/text.f.glsl     | 3 ++-
+ alacritty/res/text.v.glsl     | 3 ++-
+ alacritty/src/renderer/mod.rs | 2 +-
+ 6 files changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/alacritty/build.rs b/alacritty/build.rs
+index 48841ca..28c20e2 100644
+--- a/alacritty/build.rs
++++ b/alacritty/build.rs
+@@ -11,7 +11,7 @@ fn main() {
+     let dest = env::var("OUT_DIR").unwrap();
+     let mut file = File::create(&Path::new(&dest).join("gl_bindings.rs")).unwrap();
+ 
+-    Registry::new(Api::Gl, (3, 3), Profile::Core, Fallbacks::All, ["GL_ARB_blend_func_extended"])
++    Registry::new(Api::Gl, (3, 1), Profile::Core, Fallbacks::All, ["GL_ARB_blend_func_extended", "GL_ARB_instanced_arrays", "GL_ARB_explicit_attrib_location"])
+         .write_bindings(GlobalGenerator, &mut file)
+         .unwrap();
+ 
+diff --git a/alacritty/res/rect.f.glsl b/alacritty/res/rect.f.glsl
+index 945eaf2..9f84237 100644
+--- a/alacritty/res/rect.f.glsl
++++ b/alacritty/res/rect.f.glsl
+@@ -1,4 +1,4 @@
+-#version 330 core
++#version 140
+ 
+ flat in vec4 color;
+ 
+diff --git a/alacritty/res/rect.v.glsl b/alacritty/res/rect.v.glsl
+index bf9a97d..258bb36 100644
+--- a/alacritty/res/rect.v.glsl
++++ b/alacritty/res/rect.v.glsl
+@@ -1,4 +1,5 @@
+-#version 330 core
++#version 140
++#extension GL_ARB_explicit_attrib_location : require
+ layout (location = 0) in vec2 aPos;
+ layout (location = 1) in vec4 aColor;
+ 
+diff --git a/alacritty/res/text.f.glsl b/alacritty/res/text.f.glsl
+index d5e2688..d4d559c 100644
+--- a/alacritty/res/text.f.glsl
++++ b/alacritty/res/text.f.glsl
+@@ -1,4 +1,5 @@
+-#version 330 core
++#version 140
++#extension GL_ARB_explicit_attrib_location : require
+ in vec2 TexCoords;
+ flat in vec4 fg;
+ flat in vec4 bg;
+diff --git a/alacritty/res/text.v.glsl b/alacritty/res/text.v.glsl
+index 31e6f93..09c477a 100644
+--- a/alacritty/res/text.v.glsl
++++ b/alacritty/res/text.v.glsl
+@@ -1,4 +1,5 @@
+-#version 330 core
++#version 140
++#extension GL_ARB_explicit_attrib_location : require
+ // Cell properties.
+ layout(location = 0) in vec2 gridCoords;
+ 
+diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs
+index bac8225..3e170be 100644
+--- a/alacritty/src/renderer/mod.rs
++++ b/alacritty/src/renderer/mod.rs
+@@ -600,7 +600,7 @@ impl QuadRenderer {
+                         size as *const _,
+                     );
+                     gl::EnableVertexAttribArray(index);
+-                    gl::VertexAttribDivisor(index, 1);
++                    gl::VertexAttribDivisorARB(index, 1);
+ 
+                     #[allow(unused_assignments)]
+                     {
+-- 
+2.32.0
+
diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 1084cd2d7d..ce096b1bc2 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -1341,6 +1341,14 @@ (define-public alacritty
              (url "https://github.com/jwilm/alacritty")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
+       ;; This patch enables to run Alacritty on aarch64 targets such as
+       ;; PineBook Pro which run Panfrost driver and support OpenGL 3.1
+       (patches
+         `,(if (string-prefix? "arch64" (or (%current-system)
+                                  (%current-target-system)))
+         (search-patches
+          "alacritty-use-OpenGL-3.1-with-extensions-instead-of-OpenGL-3.3.patch")
+          '()))
        (sha256
         (base32 "068y0b1a0m33r7a3j2xf6k602sc8062gm4d5568ynfx6w5n481lj"))))
     (build-system cargo-build-system)
-- 
2.37.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #6: v3-0001-gnu-alacritty-Fix-build-on-aarch64-target.patch --]
[-- Type: text/x-patch; name=v3-0001-gnu-alacritty-Fix-build-on-aarch64-target.patch, Size: 1147 bytes --]

From 1d0d0477fa095de4a8762007dcb7b18761903a0d Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 15 Oct 2022 08:39:59 +0200
Subject: [PATCH v3 1/7] gnu: alacritty: Fix build on aarch64 target.

* /gnu/packages/terminals.scm (alacritty)[arguments]: Disable failing test on
aarch64 target.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 9ece3043e0..1084cd2d7d 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -1346,7 +1346,10 @@ (define-public alacritty
     (build-system cargo-build-system)
     (arguments
      `(#:install-source? #f     ; virtual manifest
-       #:cargo-test-flags '("--release" "--" "--skip=config_read_eof")
+       #:cargo-test-flags '("--release" "--" "--skip=config_read_eof"
+         ,@(if (string-prefix? "aarch64" (or (%current-system)
+                                  (%current-target-system)))
+                            '("--skip=mock_term") '()))
        #:cargo-inputs
        (("rust-alacritty-config-derive" ,rust-alacritty-config-derive-0.1)
         ("rust-alacritty-terminal" ,rust-alacritty-terminal-0.15)
-- 
2.37.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #7: v3-0005-gnu-Add-rust-alacritty-terminal-0.16.patch --]
[-- Type: text/x-patch; name=v3-0005-gnu-Add-rust-alacritty-terminal-0.16.patch, Size: 2484 bytes --]

From 9abdeebac1889461ca4625359952d735f811d046 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sun, 24 Apr 2022 11:01:28 +0200
Subject: [PATCH v3 5/7] gnu: Add rust-alacritty-terminal-0.16.

* gnu/packages/crates-graphics.scm (rust-alacritty-terminal-0.16): New variable.
  (rust-alacritty-terminal-0.15): Remove variable.

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9d2d5a86f9..ad650e6c3e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2571,17 +2571,17 @@ (define-public rust-alacritty-config-derive-0.1
      "This package provides a failure resistant deserialization derive.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-alacritty-terminal-0.15
+(define-public rust-alacritty-terminal-0.16
   (package
     (name "rust-alacritty-terminal")
-    (version "0.15.0")
+    (version "0.16.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "alacritty_terminal" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1qv8zv20qgn407v8m196p68yddvhalcppc21702698cj99b45ckc"))))
+        (base32 "0bvffvjmkran068p9bz0p9nrkj1k4bggd7q39mszjfafz155vyq2"))))
     (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
@@ -2589,19 +2589,20 @@ (define-public rust-alacritty-terminal-0.15
        (("rust-alacritty-config-derive" ,rust-alacritty-config-derive-0.1)
         ("rust-base64" ,rust-base64-0.13)
         ("rust-bitflags" ,rust-bitflags-1)
-        ("rust-dirs" ,rust-dirs-2)
+        ("rust-dirs" ,rust-dirs-3)
         ("rust-libc" ,rust-libc-0.2)
         ("rust-log" ,rust-log-0.4)
         ("rust-mio" ,rust-mio-0.6)
         ("rust-mio-anonymous-pipes" ,rust-mio-anonymous-pipes-0.2)
         ("rust-mio-extras" ,rust-mio-extras-2)
         ("rust-miow" ,rust-miow-0.3)
-        ("rust-nix" ,rust-nix-0.23)
+        ("rust-nix" ,rust-nix-0.22)
         ("rust-parking-lot" ,rust-parking-lot-0.11)
         ("rust-regex-automata" ,rust-regex-automata-0.1)
         ("rust-serde" ,rust-serde-1)
         ("rust-serde-yaml" ,rust-serde-yaml-0.8)
-        ("rust-signal-hook" ,rust-signal-hook-0.1)
+        ("rust-signal-hook" ,rust-signal-hook-0.3)
+        ("rust-signal-hook-mio" ,rust-signal-hook-mio-0.2)
         ("rust-unicode-width" ,rust-unicode-width-0.1)
         ("rust-vte" ,rust-vte-0.10)
         ("rust-winapi" ,rust-winapi-0.3))))
-- 
2.37.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #8: v3-0004-gnu-rust-structopt-0.3-Update-to-0.3.26.patch --]
[-- Type: text/x-patch; name=v3-0004-gnu-rust-structopt-0.3-Update-to-0.3.26.patch, Size: 2071 bytes --]

From 86f63a6a845e10c569fab3cdf102b1bc01c2f598 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sun, 24 Apr 2022 01:27:08 +0200
Subject: [PATCH v3 4/7] gnu: rust-structopt-0.3: Update to 0.3.26.

* gnu/packages/crates-io.scm (rust-structopt): Update to 0.3.26.
  [arguments]: Add rust-paw-1 to cargo-inputs. Add cargo development inputs.
  Add phases to fix rust-clap-2 version and remove lints feature.

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7a095701ba..9d2d5a86f9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61585,7 +61585,7 @@ (define-public rust-strsim-0.5
 (define-public rust-structopt-0.3
   (package
     (name "rust-structopt")
-    (version "0.3.21")
+    (version "0.3.26")
     (source
      (origin
        (method url-fetch)
@@ -61594,14 +61594,27 @@ (define-public rust-structopt-0.3
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "136j0lvjmpv5syi751vxg8vb30gfyv4k81x8d18kxrj6xvbsqxsj"))))
+         "043sg3qxllann6q9i71d05qp3q13scmcvhxhd950ka2v8ij5qsqc"))))
     (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-structopt-derive" ,rust-structopt-derive-0.4)
         ("rust-lazy-static" ,rust-lazy-static-1)
-        ("rust-clap" ,rust-clap-2))))
+        ("rust-paw" ,rust-paw-1)
+        ("rust-clap" ,rust-clap-2))
+       #:cargo-development-inputs
+       (("rust-strum" ,rust-strum-0.21)
+        ("rust-trybuild" ,rust-trybuild-1)
+        ("rust-rustversion" ,rust-rustversion-1))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'fixup-cargo-toml
+           (lambda _
+             (substitute* "Cargo.toml"
+               ;; feature does not exist
+               (("lints.*") "")
+               (("2.33") ,(package-version rust-clap-2))))))))
     (home-page "https://github.com/TeXitoi/structopt")
     (synopsis "Parse command line argument by defining a struct")
     (description
-- 
2.37.2


  parent reply	other threads:[~2022-10-15  7:18 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-08 16:46 [bug#54299] [PATCH 01/27] added alacritty 0.10.1 Till Robin Zickel
2022-03-08 17:31 ` [bug#54299] [PATCH 02/27] added rust-android-log-sys@0.2 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 03/27] added rust-android-logger@0.10 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 04/27] added rust-calloop@0.9 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 05/27] added rust-dlib@0.5 Till Robin Zickel
2022-03-08 18:08     ` Maxime Devos
     [not found]       ` <baf3b583-7e80-7159-4ab9-4664f5ac114f@mailbox.org>
2022-03-21 18:50         ` Maxime Devos
2022-03-08 18:09     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 06/27] updated rust-memmap2@0.3 to version 0.3.1 Till Robin Zickel
2022-03-08 18:08     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 07/27] added rust-ndk@0.5 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 08/27] added rust-ndk-glue@0.5 Till Robin Zickel
2022-03-08 17:46     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 09/27] added rust-ndk-context@0.1 Till Robin Zickel
2022-03-08 18:07     ` Maxime Devos
     [not found]       ` <8b4b8564-7f2c-fd1b-16c8-383ad54b8ecf@mailbox.org>
2022-03-21 18:55         ` Maxime Devos
2022-03-21 18:56         ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 10/27] added rust-ndk-macro@0.3 Till Robin Zickel
2022-03-08 18:06     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 11/27] updated rust-ndk-sys@0.2 to 0.2.2 Till Robin Zickel
2022-03-08 18:05     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 12/27] added development inputs, reformatted rust-nix@0.22 Till Robin Zickel
2022-03-08 18:04     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 13/27] added rust-num-enum@0.5 Till Robin Zickel
2022-03-08 17:59     ` Maxime Devos
2022-03-08 17:59     ` Maxime Devos
2022-03-08 18:00     ` Maxime Devos
2022-03-08 18:01     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 14/27] added rust-glutin@0.28 Till Robin Zickel
2022-03-08 17:57     ` Maxime Devos
2022-03-08 17:58     ` Maxime Devos
2022-03-08 17:58     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 15/27] updated rust-glutin-egl-sys@0.1 to 0.1.5 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 16/27] added rust-raw-window-handle@0.4 Till Robin Zickel
2022-03-08 17:56     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 17/27] added rust-smithay-client-toolkit@0.15 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 18/27] reformatted rust-wayland-client@0.28 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 19/27] added rust-wayland-client@0.29 Till Robin Zickel
2022-03-08 17:56     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 20/27] added rust-wayland-commons@0.29 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 21/27] added rust-wayland-cursor@0.29 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 22/27] added rust-wayland-egl@0.29 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 23/27] added rust-wayland-protocols@0.29 Till Robin Zickel
2022-03-08 17:53     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 24/27] added rust-wayland-scanner@0.29 Till Robin Zickel
2022-03-08 17:52     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 25/27] added rust-wayland-server@0.29 Till Robin Zickel
2022-03-08 17:31   ` [bug#54299] [PATCH 26/27] added rust-wayland-sys@0.29 Till Robin Zickel
2022-03-08 17:47     ` Maxime Devos
2022-03-08 17:48     ` Maxime Devos
2022-03-08 17:49     ` Maxime Devos
2022-03-08 17:51     ` Maxime Devos
2022-03-08 17:31   ` [bug#54299] [PATCH 27/27] added rust-winit@0.26 Till Robin Zickel
2022-04-24 12:55 ` [bug#54299] [PATCH v2 01/25] gnu: rust-structopt-derive-0.4: Update to 0.4.18 phodina via Guix-patches via
2022-08-05 17:11   ` phodina via Guix-patches via
2022-06-26 13:01 ` [bug#54299] [PATCH 01/27] added alacritty 0.10.1 Maxime Devos
2022-10-15  7:17 ` phodina via Guix-patches via [this message]
2022-10-16  5:44   ` [bug#54299] [PATCH v3] Build on Aarch64 phodina via Guix-patches via
2022-12-25 17:50     ` phodina via Guix-patches via
2023-02-15 10:43       ` Efraim Flashner
2024-03-29 20:42 ` bug#54299: [PATCH 01/27] added alacritty 0.10.1 Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='K5yVilpipFX449PFoZ-gptDo4cHqNcZz6ltGaKIajdc359CCO5QmG55jF8qqQK-FJ4EP7aBhusXp1Qf0yYIBgrwyJeOv2RVP3II-Hx2jtDE=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=54299@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=maximedevos@telenet.be \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.