From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: GNU G-Golf 0.8.0-rc-3 available for testing Date: Thu, 2 May 2024 21:17:48 -0300 Message-ID: <20240502211748.07318328@tintin> References: <20240417025615.0b6c50f5@tintin> <871q73vcz4.fsf@pelzflorian.de> <20240418192132.245200a9@tintin> <87cyql1e56.fsf@pelzflorian.de> <20240420015158.50031f08@tintin> <877cgepwm1.fsf@pelzflorian.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8/nmBLd8PEqBiyMrX6Ta+xY"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34642"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: "pelzflorian (Florian Pelz)" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri May 03 02:19:09 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s2gdo-0008sg-Jm for guile-user@m.gmane-mx.org; Fri, 03 May 2024 02:19:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2gcy-00040F-3i; Thu, 02 May 2024 20:18:17 -0400 Original-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 1s2gcs-0003z3-CH for guile-user@gnu.org; Thu, 02 May 2024 20:18:10 -0400 Original-Received: from sys2.all2all.org ([79.99.200.14] helo=moses.all2all.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2gcl-0007Dr-BZ for guile-user@gnu.org; Thu, 02 May 2024 20:18:10 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by moses.all2all.org (Postfix) with ESMTP id 7A8D067C007A; Fri, 3 May 2024 02:17:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at moses.all2all.org Original-Received: from moses.all2all.org ([127.0.0.1]) by localhost (moses.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4LVlVv4EUr1R; Fri, 3 May 2024 02:17:56 +0200 (CEST) Original-Received: from tintin (unknown [168.227.184.177]) by moses.all2all.org (Postfix) with ESMTPSA id D70AA67C0074; Fri, 3 May 2024 02:17:54 +0200 (CEST) In-Reply-To: <877cgepwm1.fsf@pelzflorian.de> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=79.99.200.14; envelope-from=david@altosw.be; helo=moses.all2all.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19575 Archived-At: --Sig_/8/nmBLd8PEqBiyMrX6Ta+xY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Florian, > ... > examples/gtk-4/simple-paintable.scm fails at (add-to-load-path > (dirname (current-filename)). I have not yet spent time to debug > this one further. So we can make progress, till you find why (current-filename) fails - note that it is a syntax, not a procedure, and the doc clearly state that it returns #f "... when this information is not available." - but i wonder why "this information" is available in other distro and not in guix, for the same example code i mean? Meanwhile, so we can make progress, could you manually patch this example to set the path and try again: 1- you need a patched version of guile-cairo "... G-Golf actually requires a patched version of guile-cairo that contains the following new interface (which is not in guile-cairo 1.11.2): cairo-pointer->context." see if you have or update your guile-cairo to commit 30da459d7a4380174ff243b1560d5512a4bca86e It should then segfault as well, since it defines two vfunc methods, let's see ... > I have not run adw1-demo.scm successfully, because the modules it > needs are not in the load path. I guess this is the same small issue. Dito, please manually update the path and try again, thanks - the adw1-demo extensively use (the) GtkWidget template(s) (mechanism), no other example does, so far ... we need to check and possibly debug this in Guix as well ... the sooner the better: you'll need to update all occurrences of (current-filename), quite a few, one in the 'main' adw1-demo.scm file, one or two (depending) in all scm files in the adw1-demo subdir [1] Ideally, you'd do that automatically ofc, using the guix machinery to achieve those little but fundamental changes. While at it :), let me add the ideally as well, Guix should define a (separate) g-golf.scm module/file and this module should contain the following pkg defs: g-golf [ g-golf-doc - possibly a separate pkg as well g-golf-gtk4-examples g-golf-adw1-examples ... - other examples to come It is very important, in distros, that g-golf be separate from its examples, because g-golf itself only depends on automake, makeinfo, glib-2.0, gobject-2.0, gobject-introspection-1.0, a C compiler and guile of= c. G-Golf can indeed import typelibs that do not depend on gtk4, adwaita ...and allow to perform many other things then 'just' GUI ... Cheers, David [1] sfind current-filename ./adw1-demo.scm: (dirname (current-filename))) ./adw1-demo/welcome.scm: #:template (string-append (dirname (current-filen= ame)) ./adw1-demo/style-classes-demo-dialog.scm: #:template (string-append (dirn= ame (current-filename)) ./adw1-demo/carousel.scm: #:template (string-append (dirname (current-file= name)) ./adw1-demo/animations.scm: #:template (string-append (dirname (current-fi= lename)) ./adw1-demo/clamp.scm: #:template (string-append (dirname (current-filenam= e)) ./adw1-demo/window.scm: #:template (string-append (dirname (current-filena= me)) ./adw1-demo/window.scm: (let* ((cwd (dirname (current-filename))) ./adw1-demo/style-classes.scm: #:template (string-append (dirname (current= -filename)) ./adw1-demo/dialogs.scm: #:template (string-append (dirname (current-filen= ame)) ./adw1-demo/navigation-view.scm: #:template (string-append (dirname (curre= nt-filename)) ./adw1-demo/preferences.scm: #:template (string-append (dirname (current-f= ilename)) ./adw1-demo/navigation-view-demo-dialog.scm: #:template (string-append (di= rname (current-filename)) ./adw1-demo/lists.scm: #:template (string-append (dirname (current-filenam= e)) --Sig_/8/nmBLd8PEqBiyMrX6Ta+xY Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmY0LSwACgkQ83T9k6MF etfwlggApHg3O640+ifZxmEf6BLwAYCy91NfW/cFsWzZqhqXVOK3ic5eD225E/zF BrcdIZv/y++n5Ji+aVO9QEE6qtATZbmZVmPfqL4LHhFA8wd+8Q+q1rKikvpDJpGm Xm2eZ1ca5KFHhnGNI2lhzb1QYZWDdi+qOFSWerwB+rZAdAJ6iUGMCsTAzG8EAutW Er5rmN09uKXHMOX1tMeBVxV0RHq2rqtjlCcSVUgZXRQfb8ULdJADTK7GCqOo8O+e DsnVmTBc2VYW7eKAClHXZ62dSuLnUH3vsLDfZvwuNSPoOfa2pRzMXcglSTz7ViE+ 0MrPFA27ZpFjdaoCbha10ATfSXGNfQ== =gBnV -----END PGP SIGNATURE----- --Sig_/8/nmBLd8PEqBiyMrX6Ta+xY--