From patchwork Tue Feb 18 17:12:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "pelzflorian (Florian Pelz)" X-Patchwork-Id: 38828 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1AA0F27BBEA; Tue, 18 Feb 2025 17:13:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 686DF27BBE2 for ; Tue, 18 Feb 2025 17:13:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tkR9k-0000gN-Aa; Tue, 18 Feb 2025 12:13:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tkR9b-0000eW-Ft for guix-patches@gnu.org; Tue, 18 Feb 2025 12:13:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tkR9b-0006jR-77 for guix-patches@gnu.org; Tue, 18 Feb 2025 12:13:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ipqpf/aa62nPeMV/53kiCFyHmY4TQ4KRd5rM/PeReZA=; b=iACw0wYEVlPKfR0cLB8rJt8UvTn95aC3gBpMbV1pTNrFHn0fvOptytkMxNrkiJh3BDeg1jr+ghwrkPGFsedzzh6ePy/YXBtQY/f/LKRK08NasWeIDSvgeK2ZJtPhjN1syQR7BB+4omNW3iUQkBWWKpTt21O/o+gfedoasPCvQdG9EHGMFeAhvbdgDy6kIdlOYC4a4DChyflPWBbf0lFQZYfkSSUvIEBcSfQmglcb4Nm3hbLVqGENevJWexY98hBcm08Mk/PEmiLp+Byj4EA5LSnytmgBBzJf2yhPpzQTB7SfYZB+8+mEtPpGyO7ayZbuuS1/if6Fj8yZt8aLwYla3A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tkR9a-0008QJ-PN; Tue, 18 Feb 2025 12:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76246] [PATCH v5 2/6] gnu: Add guile-cairo-next. Resent-From: Florian Pelz Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, vivien@planete-kraus.eu, guix-patches@gnu.org Resent-Date: Tue, 18 Feb 2025 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76246 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76246@debbugs.gnu.org Cc: Florian Pelz , Liliana Marie Prikler , Maxim Cournoyer , Vivien Kraus X-Debbugs-Original-Xcc: Liliana Marie Prikler , Maxim Cournoyer , Vivien Kraus Received: via spool by 76246-submit@debbugs.gnu.org id=B76246.173989875432223 (code B ref 76246); Tue, 18 Feb 2025 17:13:02 +0000 Received: (at 76246) by debbugs.gnu.org; 18 Feb 2025 17:12:34 +0000 Received: from localhost ([127.0.0.1]:60275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkR98-0008Nd-5K for submit@debbugs.gnu.org; Tue, 18 Feb 2025 12:12:34 -0500 Received: from relay.yourmailgateway.de ([46.38.247.119]:38059) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkR95-0008NJ-Ev for 76246@debbugs.gnu.org; Tue, 18 Feb 2025 12:12:32 -0500 Received: from mors-relay-8404.netcup.net (localhost [127.0.0.1]) by mors-relay-8404.netcup.net (Postfix) with ESMTPS id 4Yy5gL0h7Fz85Ts for <76246@debbugs.gnu.org>; Tue, 18 Feb 2025 18:12:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1739898750; bh=yvMOwUgO5toxrq//DnN02zVtNzshCAP17cMlFcbi5d0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MoTzRxvGIZ7DplINX73eIrlC+jB/aUHeXXq151JxQrRADTh6IxB8jKpGiBSW7iJx0 mWtHfloEaADUrx+T9VPqVrgnHkI+G281cv0xamRGmUJfayGqepW0RzaMFogeGWPkwJ ZTsUfSqdSyXVZYVZl4YVTXjk+jatVr3oA/5XlHatoixNdZGqPyY5N/mSYCgwzMly3i o1N6hipOnMeKQ7cyFWdpN23La6zruRNZAmoyJpZkQUO72Q48GzzuT+l1oyNzJCBmkv LEHppvSePzkzSF/+e2x+gxohSUuWiYGRAUW+m0OghWCaZs+enDvOHNSKGpjZ9swYrc WOOXooStbzqzQ== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8404.netcup.net (Postfix) with ESMTPS id 4Yy5gL0JpCz4xrY for <76246@debbugs.gnu.org>; Tue, 18 Feb 2025 18:12:30 +0100 (CET) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4Yy5gK61CGz8sZf for <76246@debbugs.gnu.org>; Tue, 18 Feb 2025 18:12:29 +0100 (CET) Received: from florianhp.fritz.box (ipb21a5dbf.dynamic.kabel-deutschland.de [178.26.93.191]) by mxe217.netcup.net (Postfix) with ESMTPSA id A7CCC84665; Tue, 18 Feb 2025 18:12:24 +0100 (CET) From: Florian Pelz Date: Tue, 18 Feb 2025 18:12:17 +0100 Message-ID: <04aef89d602a509d635059fa48b7cdf85c7ddf97.1739898237.git.pelzflorian@pelzflorian.de> X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 X-Rspamd-Queue-Id: A7CCC84665 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: 8Ma74irLgHnNIYPhzDb5SC0PcaFcJRTOSO4yvU4Z+04FU04AQUodsFce X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/gtk.scm (guile-cairo-next): New variable. Change-Id: I328afe58d46e60243e075edead12afc0d1c4a98a --- gnu/packages/gtk.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 8e893d66c3..15b43da636 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -37,6 +37,7 @@ ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Janneke Nieuwenhuizen ;;; Copyright © 2024 John Kehayias +;;; Copyright © 2025 Florian Pelz ;;; ;;; This file is part of GNU Guix. ;;; @@ -1481,6 +1482,47 @@ (define-public guile2.2-cairo ,@(fold alist-delete (package-inputs guile-cairo) '("guile" "guile-lib")))))) +(define-public guile-cairo-next + ;; A commit with cairo-pointer->context, missing from guile-cairo@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 "https://git.savannah.gnu.org/git/guile-cairo.git/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0dslfldzgxis8g0g3xaffcqnd1njzz23fjy0v3lc0r2694ra4ny4")))) + (arguments + (substitute-keyword-arguments (package-arguments guile-cairo) + ((#:phases phases) + `(modify-phases ,phases + ;; To allow running the check phase before install, add two phases + ;; similar to David Pirotte's suggested patch: + ;; . + (add-after 'build 'fix-dynamic-link-path + (lambda _ + ;; Dynamic-link libguile-cairo foreign extension by name, not + ;; path. + (substitute* "cairo/config.scm" + (("\\(define \\*cairo-lib-path\\* .*") + "\(define *cairo-lib-path* \"libguile-cairo\")\n")))) + (add-before 'check 'set-libtool-path + (lambda _ + ;; Use appropriate pre-install libtool path in tests. + (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))))) + (define-public guile-rsvg ;; Use a recent snapshot that supports Guile 2.2 and beyond. (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")