From: Vivien Kraus via Guix-patches via <guix-patches@gnu.org>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: rg@raghavgururajan.name, liliana.prikler@gmail.com,
69677@debbugs.gnu.org
Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build.
Date: Sat, 09 Mar 2024 20:39:45 +0100 [thread overview]
Message-ID: <6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu> (raw)
In-Reply-To: <87y1are0a8.fsf@gmail.com>
Le samedi 09 mars 2024 à 13:18 -0500, Maxim Cournoyer a écrit :
>
> I'd like to hear about upstream. Perhaps our package is simply
> buggy?
> It'd be nice to have an upstream issue to link to.
With a closer investigation, it looks lik we are doing things wrong
indeed.
From within the failed build directory, if I set up the environment
variable, run ocaml -I <the bunch of include directories>, and in the
prompt, run:
#load "base64.cma";;
Base64.decode_exn;;
I get an error message:
Error: The files /gnu/store/wh2ipi0bjywcf5pyis6z1s52adf5cqyd-ocaml-
base64-3.5.1/lib/ocaml/site-lib/base64/base64.cma
and /gnu/store/i01v0c5yzhw62qmvrlv3y436igwhcafh-ocaml-extlib-
1.7.9/lib/ocaml/site-lib/extlib/base64.cmi
make inconsistent assumptions over interface Base64
My guess is that we have 2 ocaml libraries implementing Base64 (ocaml-
base64 and ocaml-extlib, propagated from ocaml-dose3). Dune sees that
we have a powerful ocaml-base64 installed, so it lays out the
compatibility version 6 for us, but when it comes to actually building
the project, ocamlfind prioritizes the ocaml-extlib path by adding it
first, and it shadows our powerful ocaml-base64 implementation.
With this new extlib actor in the plot, I could search better. It
seems like Opam is aware of the issue:
https://github.com/ocaml/opam/issues/5694
The solution seems to be for extlib to ship a minimal version. But
maybe this should primarily concern the ocaml team, not gnome-team, as
it looks to me like a recipe for breaking at least half of the ocaml
ecosystem.
Best regards,
Vivien
next prev parent reply other threads:[~2024-03-09 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-09 12:08 [bug#69677] [PATCH gnome-team 0/1] Fix opam on gnome-team Vivien Kraus via Guix-patches via
2024-03-09 9:46 ` [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build Vivien Kraus via Guix-patches via
2024-03-09 18:18 ` Maxim Cournoyer
2024-03-09 18:21 ` Vivien Kraus via Guix-patches via
2024-03-09 19:39 ` Vivien Kraus via Guix-patches via [this message]
2024-03-09 20:35 ` Liliana Marie Prikler
2024-03-09 21:29 ` Vivien Kraus via Guix-patches via
2024-03-09 21:35 ` Julien Lepiller
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=6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu \
--to=guix-patches@gnu.org \
--cc=69677@debbugs.gnu.org \
--cc=liliana.prikler@gmail.com \
--cc=maxim.cournoyer@gmail.com \
--cc=rg@raghavgururajan.name \
--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.