Permalink
Commits on May 18, 2016
  1. Merge pull request #2564 from OCamlPro/fixes

    Small fixes to the higher level part of opam and scripts
    AltGr committed May 18, 2016
  2. Improve split-install script

    It was missing some cases of 'install'
    AltGr committed May 18, 2016
  3. Disable stats after update

    They are kind of cryptic, not very useful, and take time to compute.
    Print a message advising upgrade anyway (another option would be to just
    check for 'reinstall' and for new versions of installed packages, which
    is instant, and print "upgrades are available, ...".
    AltGr committed May 18, 2016
  4. Set OPAM_SWITCH_PREFIX in the environment

    extend to not only have it set in package build scripts, but also
    exported by `opam config env`.
    
    Note: this may require (manually) removing the cache in `.opam-switch/environment`
    AltGr committed May 18, 2016
  5. Mark packages with changed ext-files as removed

    They used to only be marked for reinstall. This is needed because of
    a7c2074 : marking for reinstall does
    not guarantee that the package will be reinstalled if a (transitively)
    dependent package is getting installed.
    AltGr committed May 18, 2016
  6. Merge pull request #2563 from OCamlPro/wrappers

    Add global `wrap-build/install/remove-commands:` fields
    AltGr committed May 18, 2016
  7. Add wrapper scripts based on Linux "unshare"

    These, if setup through `wrap-{build,install,remove}-commands:` in
    ~/.opam, restrict network and write access when executing package commands.
    
    Some limitations:
    - Linux only
    - manual setup
    - packages are installed as (remapped) uid 0 (similar to fakeroot),
      which may confuse some of them
    - not a secure solution (as user 0 in the namespace, it's possible to
      remount read-write)
    - requires `sysctl kernel.unprivileged_userns_clone=1` on some
      distribs (e.g. Debian)
    
    Yet it can be quite useful to check packages in test environments, or
    for local enforcing of policy. In time, we could imagine integrating a
    similar mechanism in core opam..
    
    **Note 1**: it should be possible to not run the package scripts as uid 0. I
    attempted to re-map differently before the final `exec`, but without
    success, help from a namespace wizard would be gladly accepted.
    
    **Note 2**: as said before, this shouldn't be considered a secure solution,
    AltGr committed May 18, 2016
  8. Merge pull request #2560 from OCamlPro/better-sub-pkgs

    Update the sub-lib packages
    AltGr committed May 18, 2016
  9. Merge pull request #2562 from OCamlPro/remove-othercomps

    Remove unneeded compiler versions from the universe.
    AltGr committed May 18, 2016
Commits on May 17, 2016
  1. Add global `wrap-build/install/remove-commands:` fields

    These are defined in ~/.opam/config and allow to wrap all command
    invocation; this is primarily intended for testing purposes at the
    moment, and the fields can only be set by hand.
    
    The wrappers are resolved in the scope of the command that is
    run (package variables are available). One intended usage is to restrict
    read/write access of the commands on the testing frameworks (so that
    e.g. a package that tries to install during its build phase will fail).
    AltGr committed May 17, 2016
  2. Merge pull request #2555 from OCamlPro/opam-switch-prefix-env

    Define OPAM_SWITCH_PREFIX when running package commands
    AltGr committed May 17, 2016
  3. Remove unneeded compiler versions from the universe.

    This resolves for the most part the solving delay issues for
    2.0~alpha (#2534, #2548), but needs more testing
    AltGr committed May 17, 2016
  4. Fix the 'make opam-lib' target

    AltGr committed May 17, 2016
  5. Merge pull request #2561 from Chris00/opam-config-env

    AppVeyor: print opam config env at end of compilation
    AltGr committed May 17, 2016
Commits on May 15, 2016
  1. AppVeyor: print opam config env at end of compilation

    The environment variable OCAML_TOPLEVEL_PATH is not set under Cygwin,
    this change is a first step towards detecting what's wrong.
    See ocaml#2362
    Chris00 committed May 15, 2016
Commits on May 14, 2016
  1. Update the sub-lib packages

    relying on more advanced ocp-build features, and the new opam `{=
    version}` capability.
    AltGr committed May 14, 2016
Commits on May 13, 2016
  1. Merge pull request #2557 from OCamlPro/fix-multivar-simpler-pkg-upg

    Don't process reinstalls of parents on package upgrade
    AltGr committed May 13, 2016
  2. Merge pull request #2556 from OCamlPro/show-file

    Allow 'opam show --file', add '-' to read from stdin
    AltGr committed May 13, 2016
  3. Merge pull request #2554 from OCamlPro/fix-format-upgrade

    Fix bug in ~/.opam format upgrade
    AltGr committed May 13, 2016
  4. Don't process reinstalls of parents on package upgrade

    The idea was that you don't want to recompile `foo` twice on `opam
    upgrade foo; opam upgrade`. But in practice, and after some discussions,
    it seems this was more trouble than benefit, as you generally want the
    minimum on `opam upgrade foo`, and esp. don't want to be forced to
    recompile everything if `ocamlfind` has changed.
    AltGr committed May 13, 2016
  5. Allow 'opam show --file', add '-' to read from stdin

    Document the fact that this can now print any field, from 'opam show' or
    from the package description if suffixed with ':' (which is the general
    convention when referring to opam file fields).
    
    `opam show --file - --field f` can be useful to third-party tool that want
    to access opam metadata.
    AltGr committed May 12, 2016
  6. Merge pull request #2552 from OCamlPro/fix-light-unins

    Fix OSX travis for latest brew version of OCaml
    AltGr committed May 13, 2016
  7. Fix bug in ~/.opam format upgrade

    that caused installed package definitions (including compiler defs
    generated in a previous step) to be lost.
    
    @Drup: sorry!
    AltGr committed May 12, 2016
  8. Travis: allow failure on OSX opam-rt for now

    this is a travis script problem and is holding PRs back
    AltGr committed May 13, 2016
Commits on May 12, 2016
Commits on May 11, 2016
  1. opam list: better filter descriptors

    so that the difference between 'search' and 'list' is visible
    AltGr committed May 11, 2016
  2. Fix the "light-uninstall" flag

    Closes #2471 -- sorry for the silly mistake
    AltGr committed May 11, 2016
  3. Merge pull request #2547 from OCamlPro/dyn-version-constraints

    Allow version references in the 'depends' and 'depopts' fields
    AltGr committed May 11, 2016
  4. Fix consistency of partial filter evaluation

    This gives some more guarantees, in particular for multiple expansions
    in strings.
    AltGr committed May 11, 2016
  5. Allow version references in the 'depends' and 'depopts' fields

    Define 'name' and 'version' in switch scope in opam files, and allow
    references.
    
    This makes it possible e.g. for a package to depend on another one at
    the same version.
    
        depends: "bar" { = version }
    AltGr committed May 10, 2016