Giter Club home page Giter Club logo

sv-opam's People

Contributors

cyphertjohn avatar nclskoh avatar zkincaid avatar

Watchers

 avatar  avatar

sv-opam's Issues

Hand-written opam file for ntl uses dune incorrectly

When installing ntl from this opam repository for duet into a local opam switch, the installation of the ntl package fails:

simmo@roentgenium:~/Desktop/duet/duet/_opam/.opam-switch/build/ntl.20200321 (modern)$ dune install
Entering directory '/home/simmo/Desktop/duet/duet'
Error: The following <package>.install are missing:
- _build/default/duet.install
- _build/default/pa.install
- _build/default/srk/srk.install
Hint: try running: dune build @install

The problem is that the hand-written opam file for it uses dune incorrectly here:

install: [
["dune" "install"]
]

Namely, this call of dune install will also find the dune-project file above in the filesystem and execute it there instead of the build directory of the local opam switch. A correct call of dune via opam needs to use --root or really just -p (which contains the former) to prevent the automatic detection of uppermost dune project. As-is, installation of ntl escapes its build directory, which it definitely should not.

Even though this is fixable with an additional -p argument, the correct way would be to replace hand-written opam files with ones generated by dune itself: https://dune.readthedocs.io/en/stable/opam.html#generating-opam-files. That guarantees that the opam file calls dune correctly.
Weirdly, ntl's own dune-project and opam file are completely empty: https://github.com/zkincaid/ocaml-ntl/tree/modern. Which is why I'm opening the issue here, where the incorrect command is given, instead of on ntl itself.

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.