all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Christopher Baines <mail@cbaines.net>
Cc: Simon Josefsson <simon@josefsson.org>,
	Vivien Kraus <vivien@planete-kraus.eu>,
	63331@debbugs.gnu.org
Subject: bug#63331: Guile-GnuTLS/Git circular dependency
Date: Wed, 10 May 2023 17:37:22 +0200	[thread overview]
Message-ID: <87pm788afh.fsf@gnu.org> (raw)
In-Reply-To: <874jol4uje.fsf@cbaines.net> (Christopher Baines's message of "Tue, 09 May 2023 12:15:24 +0100")

Hi,

Christopher Baines <mail@cbaines.net> skribis:

> It seems to build for me, but I'm having problems cross building. There
> were warnings before about protocol/ssl3 being undefined, but now this
> seems to result in an error when building extra.scm:
>
>
>   GUILEC   modules/gnutls.go
> gnutls.scm:608:23: warning: possibly unbound variable `protocol/ssl3'
> gnutls.scm:609:25: warning: possibly unbound variable `protocol/tls1-0'
> gnutls.scm:610:25: warning: possibly unbound variable `protocol/tls1-1'
>   GUILEC   modules/gnutls/extra.go

[...]

> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Unbound variable: protocol/ssl3
> make[3]: *** [Makefile:1295: modules/gnutls/extra.go] Error 1

Is it a regression or did we already have that problem?

That comes from this bit in (gnutls):

  ;; Renaming.
  (define protocol/ssl-3 protocol/ssl3)
  (define protocol/tls-1.0 protocol/tls1-0)
  (define protocol/tls-1.1 protocol/tls1-1)

When cross-compiling, the .so cannot be loaded (understandably; see also
GNUTLS_GUILE_CROSS_COMPILING) so ‘protocol/ssl3’ above is undefined.
The problem is that when compiling (gnutls extra), we end up loading
(gnutls) and thus evaluating the lines above, which fail.

In Guile-Avahi I worked around it like so:

  (define protocol/unspecified
    (and (defined? 'protocol/unspec) protocol/unspec))

I guess we could do that as well here.

HTH,
Ludo’.




  parent reply	other threads:[~2023-05-10 15:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-06 17:20 bug#63331: Guile-GnuTLS/Git circular dependency Ludovic Courtès
2023-05-06 20:07 ` Vivien Kraus via Bug reports for GNU Guix
2023-05-06 20:17   ` Ludovic Courtès
2023-09-25 14:03     ` Simon Tournier
2023-05-07  8:54 ` Simon Josefsson via Bug reports for GNU Guix
2023-05-08 13:57 ` Simon Josefsson via Bug reports for GNU Guix
2023-05-09 11:15   ` Christopher Baines
2023-05-09 12:23     ` Simon Josefsson via Bug reports for GNU Guix
2023-05-09 15:19       ` Vivien Kraus via Bug reports for GNU Guix
2023-05-10 15:37     ` Ludovic Courtès [this message]
2023-05-10 15:59       ` Christopher Baines
2023-05-11 10:38         ` Ludovic Courtès
2023-09-11 14:36 ` Ludovic Courtès
2023-09-11 15:16   ` [bug#65866] bug#63331: Guile-GnuTLS/Git circular dependency and built-in git checkouts Vivien Kraus via Guix-patches via
2023-09-11 20:57     ` [bug#65866] [PATCH 0/8] Add built-in builder for Git checkouts Ludovic Courtès
2023-10-12 14:44   ` bug#63331: Guile-GnuTLS/Git circular dependency Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm788afh.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=63331@debbugs.gnu.org \
    --cc=mail@cbaines.net \
    --cc=simon@josefsson.org \
    --cc=vivien@planete-kraus.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.