all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
@ 2022-05-11 13:10 Rostislav Svoboda
       [not found] ` <handler.55367.B.16522747076110.ack@debbugs.gnu.org>
  2022-05-11 13:49 ` bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct) Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Rostislav Svoboda @ 2022-05-11 13:10 UTC (permalink / raw)
  To: 55367

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

The /home/bost/.config/guix/current/bin/guix is attached.
Greetings,
Bost


$ guix refresh
nongnu/packages/wine.scm:160:13: dxvk would be upgraded from 1.9 to 1.10.1
nongnu/packages/wasm.scm:146:13: wasm32-wasi-libcxx would be upgraded
from 13.0.0 to 14.0.3
nongnu/packages/vpn.scm:31:13: zerotier would be upgraded from 1.8.4 to 1.8.9
nongnu/packages/video.scm:56:13: intel-media-driver would be upgraded
from 22.2.2 to 2018Q2.1
nongnu/packages/video.scm:31:13: gmmlib would be upgraded from 22.0.3 to 22.1.2
nongnu/packages/playonlinux.scm:41:13: playonlinux would be upgraded
from 4.3.4 to 4.4
nongnu/packages/nvidia.scm:410:2: nvidia-settings would be upgraded
from 470.86 to 510.68.02
nongnu/packages/mozilla.scm:94:13: firefox would be upgraded from
100.0 to 100.0.
nongnu/packages/linux.scm:194:11: raspberrypi-firmware would be
upgraded from 1.20220120 to 1.20220331
following redirection to
`https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/'...
nongnu/packages/linux.scm:790:5: warning: no valid tags found for
intel-microcode
nongnu/packages/linux.scm:576:7: warning: no tags were found for
rtl8192eu-linux-module
nongnu/packages/linux.scm:841:13: sof-firmware would be upgraded from
1.7 to 2.1.1
nongnu/packages/linux.scm:53:2: linux would be upgraded from 5.17.5 to 5.17.6
nongnu/packages/gog.scm:36:13: lgogdownloader would be upgraded from 3.7 to 3.9
nongnu/packages/game-development.scm:280:2: warning: no valid tags
found for fury
nongnu/packages/game-development.scm:185:7: warning: no valid tags
found for eduke32
following redirection to
`http://downloads.sourceforge.net/mirrorproblem?failedmirror=deac-ams.dl.sourceforge.net'...
Backtrace:
          15 (primitive-load "/home/bost/.config/guix/current/bin/gu…")
In guix/ui.scm:
   2230:7 14 (run-guix . _)
  2193:10 13 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   658:37 10 (thunk)
  2129:25  9 (run-with-store #<store-connection 256.99 7f3142848a00> …)
In guix/scripts/refresh.scm:
   578:14  8 (_ _)
In srfi/srfi-1.scm:
    634:9  7 (for-each #<procedure 7f31509298a0 at guix/scripts/ref…> …)
In guix/scripts/refresh.scm:
   378:10  6 (check-for-package-update #<package gog-world-of-goo@1…> …)
In srfi/srfi-1.scm:
   858:15  5 (any1 #<procedure 7f314c55de60 at guix/upstream.scm:28…> …)
In guix/upstream.scm:
   284:15  4 (_ _)
In guix/memoization.scm:
    101:0  3 (_ #<hash-table 7f31422cfce0 55/113> #<package gog-wor…> …)
In guix/gnu-maintenance.scm:
   188:20  2 (_)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1
(expecting struct): #f

[-- Attachment #2: guix --]
[-- Type: application/octet-stream, Size: 1254 bytes --]

#!/gnu/store/wmsy2fmx6x2j0nmy3h5mlhjpsb6p8isc-guile-wrapper/bin/guile --no-auto-compile
!#
(begin (set! %load-extensions (quote (".scm"))) (set! %load-path (append (list (string-append "/gnu/store/a2j4wlsslk02lgpa2ra3s3s7fhyphl07-guix-module-union" "/share/guile/site/" (effective-version)) (string-append "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8" "/share/guile/" (effective-version))) %load-path)) (set! %load-compiled-path (append (list (string-append "/gnu/store/a2j4wlsslk02lgpa2ra3s3s7fhyphl07-guix-module-union" "/lib/guile/" (effective-version) "/site-ccache") (string-append "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8" "/lib/guile/" (effective-version) "/ccache")) %load-compiled-path)) (let ((locpath (getenv "GUIX_LOCPATH"))) (setenv "GUIX_LOCPATH" (string-append (if locpath (string-append locpath ":") "") "/gnu/store/fx878z6nskih682cwhdfxk8dh8078593-glibc-utf8-locales-2.33/lib/locale"))) (let ((guix-main (module-ref (resolve-interface (quote (guix ui))) (quote guix-main)))) (begin (bindtextdomain "guix" "/gnu/store/6w2f4jmbdcbk2lhqjn1aqz8cdr5jd4xp-guix-locale-guix") (bindtextdomain "guix-packages" "/gnu/store/69hrizkqqx7ip9dla43c1f4rkq1d92dh-guix-locale-guix-packages")) (apply guix-main (command-line))))

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

* bug#55367: Acknowledgement (guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct))
       [not found] ` <handler.55367.B.16522747076110.ack@debbugs.gnu.org>
@ 2022-05-11 13:15   ` Rostislav Svoboda
  0 siblings, 0 replies; 9+ messages in thread
From: Rostislav Svoboda @ 2022-05-11 13:15 UTC (permalink / raw)
  To: 55367

And also I just noticed, for firefox the indicated version numbers are
the same. I.e. from 100.0 to 100.0
```
nongnu/packages/mozilla.scm:94:13: firefox would be upgraded from
100.0 to 100.0.
```




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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-11 13:10 bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct) Rostislav Svoboda
       [not found] ` <handler.55367.B.16522747076110.ack@debbugs.gnu.org>
@ 2022-05-11 13:49 ` Ludovic Courtès
  2022-05-11 14:08   ` Maxime Devos
  1 sibling, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2022-05-11 13:49 UTC (permalink / raw)
  To: Rostislav Svoboda; +Cc: 55367

Hi,

Rostislav Svoboda <rostislav.svoboda@gmail.com> skribis:

> In guix/scripts/refresh.scm:
>    378:10  6 (check-for-package-update #<package gog-world-of-goo@1…> …)
> In srfi/srfi-1.scm:
>    858:15  5 (any1 #<procedure 7f314c55de60 at guix/upstream.scm:28…> …)
> In guix/upstream.scm:
>    284:15  4 (_ _)
> In guix/memoization.scm:
>     101:0  3 (_ #<hash-table 7f31422cfce0 55/113> #<package gog-wor…> …)
> In guix/gnu-maintenance.scm:
>    188:20  2 (_)
> In ice-9/boot-9.scm:
>   1685:16  1 (raise-exception _ #:continuable? _)
>   1685:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1
> (expecting struct): #f

This happens with a package that’s not in the ‘guix’ channel (see
above).  I can’t find the definition of that package though, so I can’t
really help.

If you can reproduce it with a package that’s in Guix, or if you can
point me to the source, we might be able to better understand.

The code at guix/gnu-maintenance.scm:188:20 checks a URI, so my guess is
that the source of that package is not a valid URI, and thus
‘string->uri’ returns #false.

Ludo’.




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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-11 13:49 ` bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct) Ludovic Courtès
@ 2022-05-11 14:08   ` Maxime Devos
  2022-05-11 14:13     ` Maxime Devos
  2022-05-12  8:18     ` Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Maxime Devos @ 2022-05-11 14:08 UTC (permalink / raw)
  To: Ludovic Courtès, Rostislav Svoboda; +Cc: 55367

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

Ludovic Courtès schreef op wo 11-05-2022 om 15:49 [+0200]:
> The code at guix/gnu-maintenance.scm:188:20 checks a URI, so my guess is
> that the source of that package is not a valid URI, and thus
> ‘string->uri’ returns #false.

It's "gogdownloader://world_of_goo/en3installer0".

(string->uri "gogdownloader://world_of_goo/en3installer0")
$1 = #f
(string->uri "gogdownloader://worldofgoo/en3installer0")
$2 = #f

Apparently it doesn't like _ characters.  Makes some sense for http,
https and ftp, but what about other protocols?  Do the Internet RFCs
say anything about this?

Worse, looks like non-ASCII characters (that are valid DNS names, at
least ignoring punycode encodings and such) aren't supported:

(string->uri "https://www.étoile.fr")
$3 = #f

though maybe that's due to the URI -- IRI distinction.  Even then, not
supporting IRIs (even if in a separate module or such) seems like quite
a limitation.  (What does Guile aim to implement -- the strict version
of URIs, or the more general IRIs, sometimes just named URIs?)

However, non-ASCII in 'path' is supported:

(string->uri "https://etoile.fr/étoile.html")

#<<uri> scheme: https userinfo: #f host: "etoile.fr" port: #f path: "/étoile.html" query: #f fragment: #f>

Seems a bit arbitrary to me ...
I guess 'top-level-regexp' and 'domain-label-regexp' might need to be adjusted.

Though there's a comment

;; See RFC 3986 #3.2.2 for comments on percent-encodings, IDNA (RFC
;; 3490), and non-ASCII host names.

in the Guile module ... maybe we want IRIs instead?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-11 14:08   ` Maxime Devos
@ 2022-05-11 14:13     ` Maxime Devos
  2022-05-12  8:18     ` Ludovic Courtès
  1 sibling, 0 replies; 9+ messages in thread
From: Maxime Devos @ 2022-05-11 14:13 UTC (permalink / raw)
  To: Ludovic Courtès, Rostislav Svoboda; +Cc: 55367

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

Maxime Devos schreef op wo 11-05-2022 om 16:08 [+0200]:
> Though there's a comment
> 
> ;; See RFC 3986 #3.2.2 for comments on percent-encodings, IDNA (RFC
> ;; 3490), and non-ASCII host names.
> 
> in the Guile module ... maybe we want IRIs instead?

Some URI and IRI things on debbugs:

<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49085> (handling more
unicode characters, though I don't know if this is also supports them
in the host component)

<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53201> -- allow a
terminating dot (not i18n related).

Greetings,
Maxime


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-11 14:08   ` Maxime Devos
  2022-05-11 14:13     ` Maxime Devos
@ 2022-05-12  8:18     ` Ludovic Courtès
  2022-05-12  8:57       ` Maxime Devos
  2022-05-12  9:07       ` Maxime Devos
  1 sibling, 2 replies; 9+ messages in thread
From: Ludovic Courtès @ 2022-05-12  8:18 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 55367, Rostislav Svoboda

Hi,

Maxime Devos <maximedevos@telenet.be> skribis:

> Ludovic Courtès schreef op wo 11-05-2022 om 15:49 [+0200]:
>> The code at guix/gnu-maintenance.scm:188:20 checks a URI, so my guess is
>> that the source of that package is not a valid URI, and thus
>> ‘string->uri’ returns #false.
>
> It's "gogdownloader://world_of_goo/en3installer0".
>
> (string->uri "gogdownloader://world_of_goo/en3installer0")
> $1 = #f
> (string->uri "gogdownloader://worldofgoo/en3installer0")
> $2 = #f

The second one works for me:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)>  (string->uri "gogdownloader://worldofgoo/en3installer0")
$7 = #<<uri> scheme: gogdownloader userinfo: #f host: "worldofgoo" port: #f path: "/en3installer0" query: #f fragment: #f>
--8<---------------cut here---------------end--------------->8---

The first one has an invalid authority part, which doesn’t match
‘authority-regexp’ (underscores are not permitted; I believe (web uri)
is correct here.)

> Worse, looks like non-ASCII characters (that are valid DNS names, at
> least ignoring punycode encodings and such) aren't supported:
>
> (string->uri "https://www.étoile.fr")
> $3 = #f

Right; I think ‘string->uri’ expects a Punycode-encoded string, which is
probably correct per RFC 3986.

That said, it’s beyond this scope of this bug report.

To me, the conclusion is that the package has a invalid URI, so it’s not
a Guix bug strictly speaking.  However, we could change
gnu-maintenance.scm so that it deals with invalid URIs gracefully.

Thoughts?

Ludo’.




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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-12  8:18     ` Ludovic Courtès
@ 2022-05-12  8:57       ` Maxime Devos
  2022-05-12  9:07       ` Maxime Devos
  1 sibling, 0 replies; 9+ messages in thread
From: Maxime Devos @ 2022-05-12  8:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 55367, Rostislav Svoboda

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

Ludovic Courtès schreef op do 12-05-2022 om 10:18 [+0200]:
> > (string->uri "gogdownloader://worldofgoo/en3installer0")
> > $2 = #f
> 

Oops I miscopied this, needs to be

scheme@(guile-user)>  (string->uri
"gogdownloader://worldofgoo/en3installer0")
$7 = #<<uri> scheme: gogdownloader userinfo: #f host: "worldofgoo"
port: #f path: "/en3installer0" query: #f fragment: #f>


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-12  8:18     ` Ludovic Courtès
  2022-05-12  8:57       ` Maxime Devos
@ 2022-05-12  9:07       ` Maxime Devos
  2022-05-12  9:47         ` Rostislav Svoboda
  1 sibling, 1 reply; 9+ messages in thread
From: Maxime Devos @ 2022-05-12  9:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 55367, Rostislav Svoboda

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

Ludovic Courtès schreef op do 12-05-2022 om 10:18 [+0200]:
> To me, the conclusion is that the package has a invalid URI, so it’s not
> a Guix bug strictly speaking.  However, we could change
> gnu-maintenance.scm so that it deals with invalid URIs gracefully.
> 
> Thoughts?

Maybe emit a warning and skip them?  Or just skip them (by returning
#false in the is-it-a-gnu-package procedure)?

Extending Guile to support IRIs can be left for later I think.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)
  2022-05-12  9:07       ` Maxime Devos
@ 2022-05-12  9:47         ` Rostislav Svoboda
  0 siblings, 0 replies; 9+ messages in thread
From: Rostislav Svoboda @ 2022-05-12  9:47 UTC (permalink / raw)
  To: Maxime Devos, a; +Cc: Ludovic Courtès, 55367

That invalid uri string comes from
    (uri "gogdownloader://world_of_goo/en3installer0")
https://gitlab.com/guix-gaming-channels/games/-/blob/master/games/packages/world-of-goo.scm#L122
and the commit was made by Alex Griffin <a@ajgrf.com> ~2,5 years ago
on Dec 17 2019.

@Alex if you remember, can you tell us please how it got committed?
(See the package definition below. The whole discussion is here
https://issues.guix.gnu.org/55367) Thanks

Greetings,
Bost

(define-public gog-world-of-goo
  (let ((buildno "29337")
        (binary (if (target-64bit?)
                  "data/x86_64/WorldOfGoo.bin.x86_64"
                  "data/x86/WorldOfGoo.bin.x86")))
    (package
      (inherit world-of-goo)
      (name "gog-world-of-goo")
      (version "1.51")
      (source
       (origin
        (method gog-fetch)
        (uri "gogdownloader://world_of_goo/en3installer0")
        (file-name (string-append "world_of_goo_"
                                  (string-replace-substring version "." "_")
                                  "_" buildno ".sh"))
        (sha256
         (base32
          "01bhwnlgpkrjz6sb72z8ci51pwb38b9bp4ifncw480022qlswya1"))))
      (build-system mojo-build-system)
      (arguments
       `(#:patchelf-plan
         `((,,binary
            ("libc" "sdl2" "sdl2-mixer" "libvorbis" "libogg" "gcc"
"mesa" "glu")))))
      (license (undistributable
                (string-append "file://data/noarch/docs/"
                               "End User License Agreement.txt"))))))




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

end of thread, other threads:[~2022-05-12 10:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-11 13:10 bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct) Rostislav Svoboda
     [not found] ` <handler.55367.B.16522747076110.ack@debbugs.gnu.org>
2022-05-11 13:15   ` bug#55367: Acknowledgement (guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct)) Rostislav Svoboda
2022-05-11 13:49 ` bug#55367: guix refresh fails. struct-vtable: Wrong type argument in position 1 (expecting struct) Ludovic Courtès
2022-05-11 14:08   ` Maxime Devos
2022-05-11 14:13     ` Maxime Devos
2022-05-12  8:18     ` Ludovic Courtès
2022-05-12  8:57       ` Maxime Devos
2022-05-12  9:07       ` Maxime Devos
2022-05-12  9:47         ` Rostislav Svoboda

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.