https://bugzilla.redhat.com/show_bug.cgi?id=1837823

Hopefully I've CC'd this to everyone who has a package that
BuildRequires ocaml-extlib in Fedora.

As Andy pointed out in the bug report above, ocaml-extlib has two ways
to build it, and upstream recommends building using the "minimal"
variant.  The difference is that the minimal variant omits certain
modules which conflict with OCaml modules found in the standard
library or in other packages.

Because of the way OCaml modules work, you cannot have a program with
two modules with the exact same name even if they come from different
packages - instead you should namespace modules, but extlib never did this.

The modules that are *removed* by setting minimal=1 are:

 - Unzip
 - UChar
 - UTF8

I looked at the packages in Fedora which BR ocaml-extlib and it looks
like nothing uses these modules.  Haxe seems to have a bundled copy of
extlib with these modules, some renamed, it's not very clear what's
going on.

So I think there are three plausible options here:

(1) Use the minimal=1 flag, since nothing directly in Fedora should be
affected.  But perhaps external users will care, or I made a mistake
in my analysis.

(2) Build both extlib variants from single source.

(3) Do nothing.

Note that the professed aim of extlib upstream is to make itself
obsolete by including all the features in the standard library, so one
day in the perhaps distant future we will remove ocaml-extlib.

Let me know if you have any thoughts.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to