unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* G-Golf - Installation problems in Guix
@ 2023-05-28  9:56 Erik Grun
  2023-05-28 10:11 ` Erik Grun
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Erik Grun @ 2023-05-28  9:56 UTC (permalink / raw)
  To: guile-user


[-- Attachment #1.1.1: Type: text/plain, Size: 2077 bytes --]

[[[ Hiermit widerspreche ich ausdrücklich der Erfassung, Speicherung
und Verarbeitung meiner Daten zu anderen Zwecken, als der Zustellung
meiner Nachricht zum Empfänger ]]]


Hello, G-Golfers,

I have some troubles getting G-Golf to run.

I am using Guix on Fedora 38. Via Guix I tried to install G-Golf version 
"a.1"[0] together with GTK@4.8.1. This raised a conflict during 
installation, as GTK (as well as libadwaita) require glib@2.72.3, but 
g-golf requires glib@2.73.3.
After some research I found the "--with-input" option in Guix and build 
"g-golf" locally with glib@2.72.3 (GTKs requirement) and then did a 
"guix install" on the local version (/gnu/store/…/guile-g-golf…).

So after a successful? installation I tried to execute the "Hello World" 
example[1] and got this message (posting last 4 lines, full output here[2])

 > […]
 > In g-golf/gi/repository.scm:
 >     99:2  0 (g-irepository-require _ #:version _ #:repository _)

 > g-golf/gi/repository.scm:99:2: In procedure g-irepository-require:
 > Typelib file for namespace 'Gtk', version '4.8.1' not found

And this is where I am stuck.

I tried commenting out this line in "hello-world.scm":
 >  (g-irepository-require "Gtk" #:version "4.0")

Even installing GTK4 (gtk4-devel) from Fedoras own repo didn't help.

Do you have an idea how to fix this?

Kind regards,

Erik (egnun)

[0] Which seems to be outdated?
[1] 
http://git.savannah.gnu.org/cgit/g-golf.git/tree/examples/gtk-4/hello-world.scm
[2] https://etherpad.belug.de/etherpad/p/g-golf

-- 
pub   rsa4096/C02662E2370D6F27 2016-05-27 [SCA] [verfällt: 2022-05-08]
   Schl.-Fingerabdruck = 7E0E 8A9E EAEE 075D E689  F32F C026 62E2 370D 6F27
uid              [ ultimativ ] Erik Grun <egnun@posteo.de>
uid              [ ultimativ ] Erik Grun <egnun@fsfe.org>
sub   rsa4096/1DF94895FA78155E 2016-05-27 [E] [verfällt: 2022-05-08]

You are wondering, what this signature means?
Visit *emailselfdefense.fsf.org/en/infographic.html*
to find out how YOU can securely encrypt your e-mails.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 8887 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: G-Golf - Installation problems in Guix
  2023-05-28  9:56 G-Golf - Installation problems in Guix Erik Grun
@ 2023-05-28 10:11 ` Erik Grun
  2023-05-28 16:12 ` pelzflorian (Florian Pelz)
  2023-05-28 19:21 ` David Pirotte
  2 siblings, 0 replies; 6+ messages in thread
From: Erik Grun @ 2023-05-28 10:11 UTC (permalink / raw)
  To: guile-user


[-- Attachment #1.1.1: Type: text/plain, Size: 3077 bytes --]

[[[ Hiermit widerspreche ich ausdrücklich der Erfassung, Speicherung
und Verarbeitung meiner Daten zu anderen Zwecken, als der Zustellung
meiner Nachricht zum Empfänger ]]]

Hello, G-Golfers,
hello, Guile users,

By the way running G-Golf in a shell environment yields different errors.

So, I executed this
$ guix shell guile-g-golf gtk
$ ./hello-world.scm

And got this output[1]

 > […]
 > In oop/goops.scm:01
 >  1567:11  1 (cache-miss #<<gtk-application> 7f826c644120> ("./hell…"))
 >   1585:2  0 (_ _ _)

 > oop/goops.scm:1585:2: No applicable method for #<<generic> 
g-application-run (1)> in call (g-application-run #<<gtk-application> 
7f826c644120> ("./hello-world.scm"))

Does anyone know why this is different this time?

Kind regards,

Erik

[1] Full output here https://etherpad.belug.de/etherpad/p/g-golf

Am 28.05.23 um 11:56 schrieb Erik Grun:
> [[[ Hiermit widerspreche ich ausdrücklich der Erfassung, Speicherung
> und Verarbeitung meiner Daten zu anderen Zwecken, als der Zustellung
> meiner Nachricht zum Empfänger ]]]
> 
> 
> Hello, G-Golfers,
> 
> I have some troubles getting G-Golf to run.
> 
> I am using Guix on Fedora 38. Via Guix I tried to install G-Golf version 
> "a.1"[0] together with GTK@4.8.1. This raised a conflict during 
> installation, as GTK (as well as libadwaita) require glib@2.72.3, but 
> g-golf requires glib@2.73.3.
> After some research I found the "--with-input" option in Guix and build 
> "g-golf" locally with glib@2.72.3 (GTKs requirement) and then did a 
> "guix install" on the local version (/gnu/store/…/guile-g-golf…).
> 
> So after a successful? installation I tried to execute the "Hello World" 
> example[1] and got this message (posting last 4 lines, full output here[2])
> 
>  > […]
>  > In g-golf/gi/repository.scm:
>  >     99:2  0 (g-irepository-require _ #:version _ #:repository _)
> 
>  > g-golf/gi/repository.scm:99:2: In procedure g-irepository-require:
>  > Typelib file for namespace 'Gtk', version '4.8.1' not found
> 
> And this is where I am stuck.
> 
> I tried commenting out this line in "hello-world.scm":
>  >  (g-irepository-require "Gtk" #:version "4.0")
> 
> Even installing GTK4 (gtk4-devel) from Fedoras own repo didn't help.
> 
> Do you have an idea how to fix this?
> 
> Kind regards,
> 
> Erik (egnun)
> 
> [0] Which seems to be outdated?
> [1] 
> http://git.savannah.gnu.org/cgit/g-golf.git/tree/examples/gtk-4/hello-world.scm
> [2] https://etherpad.belug.de/etherpad/p/g-golf
> 


-- 
pub   rsa4096/C02662E2370D6F27 2016-05-27 [SCA] [verfällt: 2022-05-08]
   Schl.-Fingerabdruck = 7E0E 8A9E EAEE 075D E689  F32F C026 62E2 370D 6F27
uid              [ ultimativ ] Erik Grun <egnun@posteo.de>
uid              [ ultimativ ] Erik Grun <egnun@fsfe.org>
sub   rsa4096/1DF94895FA78155E 2016-05-27 [E] [verfällt: 2022-05-08]

You are wondering, what this signature means?
Visit *emailselfdefense.fsf.org/en/infographic.html*
to find out how YOU can securely encrypt your e-mails.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 8887 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: G-Golf - Installation problems in Guix
  2023-05-28  9:56 G-Golf - Installation problems in Guix Erik Grun
  2023-05-28 10:11 ` Erik Grun
@ 2023-05-28 16:12 ` pelzflorian (Florian Pelz)
  2023-05-28 19:46   ` Mike Gran
  2023-05-29 15:17   ` pelzflorian (Florian Pelz)
  2023-05-28 19:21 ` David Pirotte
  2 siblings, 2 replies; 6+ messages in thread
From: pelzflorian (Florian Pelz) @ 2023-05-28 16:12 UTC (permalink / raw)
  To: Erik Grun; +Cc: guile-user

Hello Erik.

I tried to use g-golf on Guix recently, and gave up, because while Guix’
guile-g-golf depends on glib@2.73.3, Guix’ gtk (GTK4) and gtk+ (GTK3,
GTK2) depend on glib@2.72.3.  In other words, I believe that currently,
g-golf cannot be used with gtk in Guix.  Upgrading gtk’s glib in the
Guix source code caused issues with other software (that I’m sure
someone someday will fix), though I do not remember exactly.  Using
Fedora’s GTK with Guix’ might be possible with tricks, but normally the
software in Guix is patched to make it use only software from Guix.

Regards,
Florian



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: G-Golf - Installation problems in Guix
  2023-05-28  9:56 G-Golf - Installation problems in Guix Erik Grun
  2023-05-28 10:11 ` Erik Grun
  2023-05-28 16:12 ` pelzflorian (Florian Pelz)
@ 2023-05-28 19:21 ` David Pirotte
  2 siblings, 0 replies; 6+ messages in thread
From: David Pirotte @ 2023-05-28 19:21 UTC (permalink / raw)
  To: Erik Grun; +Cc: guile-user

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

Hello Erik,
(and Florian),

> I am using Guix on Fedora 38. Via Guix I tried to install G-Golf
> version "a.1"[0] together with GTK@4.8.1. This raised a conflict
> during installation, as GTK (as well as libadwaita) require
> glib@2.72.3, but g-golf requires glib@2.73.3.
> ...

I don't use guix [1]. I would recommend that you ask for help in a guix
ml or in #guix. I also would highly recommend to use g-golf 0.8.0-a4,
as a couple of serious bugs have been fixed 'on the way to' and in that
version.

David

[1]	fwiw, I use debian bookworm (testing).

	https://www.gnu.org/software/g-golf/install.html
	Dependencies ...

		[ i see i 'published' gtk-4 >= 4.10, but 4.8.x should
		[ be fine

		[ the gtk-4 cairo based examples needs a patched version
		[ guile-cairo, as describe in the INSTALL file and
		[ in the link above

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: G-Golf - Installation problems in Guix
  2023-05-28 16:12 ` pelzflorian (Florian Pelz)
@ 2023-05-28 19:46   ` Mike Gran
  2023-05-29 15:17   ` pelzflorian (Florian Pelz)
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Gran @ 2023-05-28 19:46 UTC (permalink / raw)
  To: Erik Grun, pelzflorian (Florian Pelz); +Cc: guile-user@gnu.org

> I tried to use g-golf on Guix recently, and gave up, because while Guix’
> guile-g-golf depends on glib@2.73.3, Guix’ gtk (GTK4) and gtk+ (GTK3,
> GTK2) depend on glib@2.72.3.  In other words, I believe that currently,
> g-golf cannot be used with gtk in Guix.  Upgrading gtk’s glib in the
> Guix source code caused issues with other software (that I’m sure
> someone someday will fix), though I do not remember exactly.  Using
> Fedora’s GTK with Guix’ might be possible with tricks, but normally the
> software in Guix is patched to make it use only software from Guix.

Yeah, guile-gi had the same problem on Guix. Working around it is hard.

I made a patchset where I linked GLib at runtime, but that created other problems.

No easy answers

-Mike Gran



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: G-Golf - Installation problems in Guix
  2023-05-28 16:12 ` pelzflorian (Florian Pelz)
  2023-05-28 19:46   ` Mike Gran
@ 2023-05-29 15:17   ` pelzflorian (Florian Pelz)
  1 sibling, 0 replies; 6+ messages in thread
From: pelzflorian (Florian Pelz) @ 2023-05-29 15:17 UTC (permalink / raw)
  To: Erik Grun; +Cc: guile-user

[-- Attachment #1: Type: text/plain, Size: 787 bytes --]

Erik, following up on your idea about using --with-input, I used the
code equivalent of --with-input and wrote the attached manifest that
installs GTK with the same glib@2.73.3 as guile-g-golf (and also
upgrades g-golf to version 0.8.0-a.4 as recommended by David Pirotte).

guix shell -m guile-g-golf-with-gtk.scm

Unfortunately, GTK indirectly depends on python-pygobject@3.10.7 and its
test suite fails reproducibly for me with the newer glib.
(pygobject-test-suite gets killed by SIGTRAP.)  If you wanted to
investigate, you could try adding a --without-tests transformation to
disable pygobject’s test suite or see what Debian does differently.
Or unlikely maybe, pygobject would not fail on faster hardware?

I will not investigate further.

Regards,
Florian


[-- Attachment #2: guile-g-golf-with-gtk.scm --]
[-- Type: application/octet-stream, Size: 659 bytes --]

(use-modules (gnu packages glib)
             (gnu packages gtk)
             (gnu packages guile-xyz) ;for guile-g-golf
             (guix packages)
             (guix transformations))

(define rewrite-glib-to-glibnext
  (package-input-rewriting
   `((,glib . ,glib-next)
     (,gobject-introspection . ,gobject-introspection-next))))

(define rewrite-g-golf-to-a4
  (options->transformation
   ;; For some reason, with-version fails to find the git tags; use with-commit.
   '((with-commit . "guile-g-golf=66123dc74589843a5665234068c4a23767d34f0b"))))

(packages->manifest
 (list (rewrite-glib-to-glibnext gtk)
       (rewrite-g-golf-to-a4 guile-g-golf)))

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-29 15:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-28  9:56 G-Golf - Installation problems in Guix Erik Grun
2023-05-28 10:11 ` Erik Grun
2023-05-28 16:12 ` pelzflorian (Florian Pelz)
2023-05-28 19:46   ` Mike Gran
2023-05-29 15:17   ` pelzflorian (Florian Pelz)
2023-05-28 19:21 ` David Pirotte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).