GNU bug report logs - #34499
Fwd: Guile-gnome package broken in Guix

Previous Next

Package: guix;

Reported by: swedebugia <swedebugia <at> riseup.net>

Date: Sat, 16 Feb 2019 11:03:02 UTC

Severity: normal

To reply to this bug, email your comments to 34499 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34499; Package guix. (Sat, 16 Feb 2019 11:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to swedebugia <swedebugia <at> riseup.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 16 Feb 2019 11:03:02 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: Report new Guix bug <bug-guix <at> gnu.org>
Subject: Fwd: Guile-gnome package broken in Guix
Date: Sat, 16 Feb 2019 12:02:10 +0100
The files end up in profile/share/guile-gnome-2/... which is not in 
guiles load path.

The result of running the examples:
(first get it with guix build --source)


$ guile -s hello.scm
...
ERROR: In procedure scm-error:
no code for module (gnome gobject)



-------- Forwarded Message --------
Subject: Guile-gnome package broken in Guix
Date: Sat, 16 Feb 2019 11:47:13 +0100
From: swedebugia <swedebugia <at> riseup.net>
To: guile-gtk-general <at> gnu.org

Hi

I would really like to start creating my first gtk program with guile.

The package guile-gnome in guix is unfortunately broken and the docs and 
examples are missing.

I tried fixing the package but it seems I do not understand gtk nor 
autotools well enough to succeed.

I got these questions:

* why are there no TARGET_DIR in the makefiles?
* what is the purpose of the "guilesite" variable?
* what is the purpose of the files in /defs/gnome/defs ? The makefile 
there seems to try to check for stuff in DEFS_HEADER_DIR = /usr/include

Thanks in advance.

-- 
Cheers Swedebugia




Information forwarded to bug-guix <at> gnu.org:
bug#34499; Package guix. (Sat, 16 Feb 2019 12:28:02 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: 34499 <at> debbugs.gnu.org
Subject: Re: bug#34499: Fwd: Guile-gnome package broken in Guix
Date: Sat, 16 Feb 2019 13:28:18 +0100
On 2019-02-16 12:02, swedebugia wrote:
> The files end up in profile/share/guile-gnome-2/... which is not in 
> guiles load path.
> 
> The result of running the examples:
> (first get it with guix build --source)
> 
> 
> $ guile -s hello.scm
> ...
> ERROR: In procedure scm-error:
> no code for module (gnome gobject)
> 

Trying to set the right load path results in this error:

guile-gnome-platform-2.16.5/gtk/examples$ guile -L 
~/.guix-profile/share/guile-gnome-2/ -s hello.scm
guile: warning: failed to install locale
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling 
/home/sdb/src/guile-gnome-platform-2.16.5/gtk/examples/hello.scm
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject.scm
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/gtype.scm
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/utils.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/utils.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/config.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/config.scm.go
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/gtype.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/gvalue.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/gvalue.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/gclosure.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/gclosure.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/gsignal.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/gsignal.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/gparameter.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/gparameter.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/gobject.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/gobject.scm.go
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/support/modules.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gw/support/modules.scm.go
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject.scm.go
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gtk.scm
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gobject/generics.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/99nyg5hqmnk4l42xv018wmckby54yq2y-guile-gnome-2.16.5/share/guile-gnome-2/gnome/gobject/generics.scm.go
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/gdk.scm
;;; compiling 
/home/sdb/.guix-profile/share/guile/site/2.2/g-wrap/gw/standard.scm
;;; compiling /home/sdb/.guix-profile/share/guile/site/2.2/g-wrap/config.scm
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/lhyaqrqlyvahxbw6vk4v13qryv4pmd19-g-wrap-1.9.15/share/guile/site/2.2/g-wrap/config.scm.go
;;; compiled 
/home/sdb/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/lhyaqrqlyvahxbw6vk4v13qryv4pmd19-g-wrap-1.9.15/share/guile/site/2.2/g-wrap/gw/standard.scm.go
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/glib.scm
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/glib.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-glib", message: 
"file not found"
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/gdk.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-glib", message: 
"file not found"
;;; compiling 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/gobject.scm
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/gobject.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-gobject", 
message: "file not found"
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gtk.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-gobject", 
message: "file not found"
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/gtk.scm
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/atk.scm
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/atk.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-atk", message: 
"file not found"
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/gtk.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-atk", message: 
"file not found"
;;; compiling /home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/cairo.scm
;;; WARNING: compilation of 
/home/sdb/.guix-profile/share/guile-gnome-2/gnome/gw/cairo.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-cairo", message: 
"file not found"
;;; WARNING: compilation of 
/home/sdb/src/guile-gnome-platform-2.16.5/gtk/examples/hello.scm failed:
;;; In procedure dynamic-link: file: "libgw-guile-gnome-cairo", message: 
"file not found"
Backtrace:
           4 (primitive-load "/home/sdb/src/guile-gnome-platform-2.?")
In ice-9/eval.scm:
   293:34  3 (_ #(#(#<directory (guile-user) 1c1f140>)))
    163:9  2 (_ #(#(#<directory (guile-user) 1c1f140>)))
   223:20  1 (proc #(#(#<directory (guile-user) 1c1f140>)))
In unknown file:
           0 (%resolve-variable (7 . <gtk-window>) #<directory (guil?>)

ERROR: In procedure %resolve-variable:
Unbound variable: <gtk-window>

-- 
Cheers Swedebugia




Information forwarded to bug-guix <at> gnu.org:
bug#34499; Package guix. (Fri, 22 Feb 2019 23:27:02 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: 34499 <at> debbugs.gnu.org
Subject: Re: bug#34499: Fwd: Guile-gnome package broken in Guix
Date: Fri, 22 Feb 2019 19:09:26 +0100
[Message part 1 (text/plain, inline)]
On 2019-02-16 13:28, swedebugia wrote:
> On 2019-02-16 12:02, swedebugia wrote:
>> The files end up in profile/share/guile-gnome-2/... which is not in
>> guiles load path.
>>
>> The result of running the examples:
>> (first get it with guix build --source)
>>
>>
>> $ guile -s hello.scm
>> ...
>> ERROR: In procedure scm-error:
>> no code for module (gnome gobject)

I found the error!

Guile-gnome installs in such a way that it only works if you run it like
this: guile-gnome2 -s hello.scm

This seems undocumented and was unexpected. I expected "guile -s" to be
able to run also the modules installed by guile-gnome.

Should we add a note somewhere to avoid confusion and/or inform upstream
about this non-standard behavior?

-- 
Cheers Swedebugia

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 6 years and 110 days ago.

Previous Next


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