Code Monkey home page Code Monkey logo

Comments (7)

ygrek avatar ygrek commented on August 21, 2024
Proposed solution - build another cma without UChar and UTF8 modules and provide it
via subpackage so that interested parties can link against it..

Reported by ygrekheretix on 2013-11-12 17:15:57

  • Status changed: Accepted
  • Labels added: Type-Enhancement, Milestone-Release1.6, Priority-High

from ocaml-extlib.

ygrek avatar ygrek commented on August 21, 2024
It won't work because uChar.cmi will be present in both directories and program that
compiled with the top package (not the subpackage) will not be able to choose between
extlib/uChar.cmi and camomile/uChar.cmi.

If I follow your idea, the only solution is to put uChar.cmi in a sub-directory of
extlib/ (e.g. extlib/foo/) or in a totally different package (e.g. extlib-unicode/uChar.cmi).

Reported by gildor478 on 2013-11-12 17:23:42

from ocaml-extlib.

ygrek avatar ygrek commented on August 21, 2024
Thanks for the feedback! Indeed, you are correct. I guess it is not possible to have
subdirectories with ocamlfind, so the only solution left is to provide two packages.
Not _that_ bad..

Reported by ygrekheretix on 2013-11-12 17:37:43

from ocaml-extlib.

ygrek avatar ygrek commented on August 21, 2024
With the next release extlib is going to provide and install by default two ocamlfind
packages : extlib (full, same as current) and extlib_min (without UChar UTF8 Unzip
Base64 modules) in order to mitigate this issue.

Reported by ygrekheretix on 2013-11-23 12:51:34

  • Status changed: Started

from ocaml-extlib.

ygrek avatar ygrek commented on August 21, 2024
This issue was closed by revision r428.

Reported by ygrekheretix on 2013-11-23 18:28:48

  • Status changed: Fixed

from ocaml-extlib.

ygrek avatar ygrek commented on August 21, 2024
Now I think of an alternative way to solve this. Clearly we want everybody to upgrade
extlib without UChar and UTF8, but without breaking any code. Current solution requires
everybody to change used package name from extlib to extlib_min and it will causes
chaos wrt dependencies. The proposed solution is to build by default full cma with
all modules, but have a configure-time option to build cma without UTF8. This will
allow to to gradually introduce reduced set of modules on codebases that don't need
it (e.g. opam, debian, etc).

Reported by ygrekheretix on 2013-11-25 03:11:05

  • Status changed: Started

from ocaml-extlib.

ygrek avatar ygrek commented on August 21, 2024

Reported by ygrekheretix on 2013-11-26 03:55:18

  • Status changed: Fixed

from ocaml-extlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.