GNU bug report logs - #68144
[PATCH 0/2] gnu: grim: Update to 1.4.1 and fix cross-compiling

Previous Next

Package: guix-patches;

Reported by: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>

Date: Sat, 30 Dec 2023 11:06:01 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
To: 68144 <at> debbugs.gnu.org
Subject: [bug#68144] [PATCH 2/2] gnu: grim: Fix cross-compiling.
Date: Sat, 30 Dec 2023 19:07:20 +0800
gnu/packages/image.scm(grim):
[native-inputs]: When cross compiling, add wayland, pkg-config-for-build.

Change-Id: I9dbf99d0bc92a62b17ded36937827dfbc6b29bb2
---
 gnu/packages/image.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 843181a941..8cf6207c57 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -2236,7 +2236,11 @@ (define-public grim
      (sha256
       (base32 "1snp4qlj05d0nx4f0qr8kywv0i1xcw5i278ybng1rand2alhkjz5"))))
    (build-system meson-build-system)
-   (native-inputs (list pkg-config scdoc))
+   (native-inputs (append (if (%current-target-system)
+                              ;; for wayland-scanner
+                              (list pkg-config-for-build wayland)
+                              '())
+                          (list pkg-config scdoc)))
    (inputs (list pixman libpng libjpeg-turbo wayland wayland-protocols))
    (home-page "https://sr.ht/~emersion/grim/")
    (synopsis "Create screenshots from a Wayland compositor")
-- 
2.41.0





This bug report was last modified 1 year and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.