GNU bug report logs - #76246
[PATCH 0/2] Add G-Golf's GTK-4 examples.

Previous Next

Package: guix-patches;

Reported by: Florian Pelz <pelzflorian <at> pelzflorian.de>

Date: Thu, 13 Feb 2025 02:51:01 UTC

Severity: normal

Tags: patch

Done: "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 76246 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Florian Pelz <pelzflorian <at> pelzflorian.de>
Cc: Vivien Kraus <vivien <at> planete-kraus.eu>,
 Liliana Marie Prikler <liliana.prikler <at> gmail.com>, 76246 <at> debbugs.gnu.org
Subject: Re: [bug#76246] [PATCH 2/5] gnu: Add guile-cairo-next.
Date: Mon, 17 Feb 2025 10:37:00 +0900
Hi,

Florian Pelz <pelzflorian <at> pelzflorian.de> writes:

> * gnu/packages/gtk.scm (guile-cairo-next): New variable.

[...]

> +(define-public guile-cairo-next
> +  ;; A commit with cairo-pointer->context, missing from guile-cairo <at> 1.11.2
> +  ;; and needed by animated-paintable from g-golf-gtk-4-examples.
> +  (let ((commit "30da459d7a4380174ff243b1560d5512a4bca86e")
> +        (revision "0"))
> +    (package
> +      (inherit guile-cairo)
> +      (name "guile-cairo-next")
> +      (version (git-version "1.11.2" revision commit))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "git://git.savannah.nongnu.org/guile-cairo.git")

Prefer https:// to git://, for privacy and the extra authenticity check.

> +                      (commit commit)))
> +                (file-name (git-file-name name version))
> +                (sha256
> +                 (base32
> +                   "0dslfldzgxis8g0g3xaffcqnd1njzz23fjy0v3lc0r2694ra4ny4"))))
> +      ;; To allow running the check phase before install, use a libtool path
> +      ;; similar to David Pirotte's suggested patch
> +      ;; <https://lists.gnu.org/archive/html/guile-user/2023-03/msg00028.html>.

This comment should be nested inside the set-libtool-path phase, which
is the one it relates to.

> +      (arguments
> +       (substitute-keyword-arguments (package-arguments guile-cairo)
> +         ((#:phases phases)
> +          `(modify-phases ,phases
> +             (add-after 'build 'fix-dynamic-link-path
> +               (lambda _
> +                 ;; Make libguile-cairo foreign extension usable in tests.
> +                 (substitute* "cairo/config.scm"
> +                   (("\\(define \\*cairo-lib-path\\* .*")
> +                    "\(define *cairo-lib-path* \"libguile-cairo\")\n"))))
> +             (add-before 'check 'set-libtool-path
> +               (lambda _
> +                 (setenv "LTDL_LIBRARY_PATH" "../../guile-cairo/.libs")))))))
> +      (inputs
> +       (list gettext-minimal guile-3.0 guile-lib))
> +      (native-inputs
> +       (list autoconf automake libtool pkg-config texinfo)))))

Otherwise, it LGTM.

Could you please send a new revision?

-- 
Thanks,
Maxim




This bug report was last modified 85 days ago.

Previous Next


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