[opam-devel] opam installext packaged up

Anil Madhavapeddy anil at recoil.org
Fri Jan 2 19:24:07 GMT 2015


Awesome!  I've just cut an installext.1.0.1 with some fixes for Debian and CentOS detection (thanks to Dave Scott for the latter).
https://github.com/ocaml/opam-repository/pull/3309

I think we should maintain both a shell script and an OCaml-based distro detection, since they are both of use in different contexts (installation vs programmatic use in OPAM).

How about turning the distro detection logic into a separate library called os-identify, and then opam-installext can just become a thin shell on top of that?  For now though, if you have no objection I'll move avsm/opam-installext under the ocaml/ org since it's used by a lot of the bulk build scripts already.

I'm CCing xen-api at lists.xen.org, as the Citrix folk may be interested in having the OCaml library as well...

-anil

> On 28 Dec 2014, at 03:10, Louis Gesbert <louis.gesbert at ocamlpro.com> wrote:
> 
> Let's synchronize our efforts! I've been doing the same but in OCaml recently; not handling as many archs though.
> 
> https://github.com/AltGr/opam-installext
> 
> Le 28 décembre 2014 06:06:50 UTC+09:00, Peter Zotov <whitequark at whitequark.org> a écrit :
>> On 2014-12-28 00:01, Anil Madhavapeddy wrote:
>>> On 27 Dec 2014, at 19:36, Peter Zotov <whitequark at whitequark.org> 
>>> wrote:
>>>> 
>>>> On 2014-12-27 22:20, Anil Madhavapeddy wrote:
>>>>> Hi,
>>>>> I've been cleaning up some of the bulk building infrastructure, and
>> 
>>>>> so
>>>>> have packaged up opam-installext into an OPAM package as Thomas
>>>>> Gazagnaire suggested a while back:
>>>>> https://github.com/ocaml/opam-repository/pull/3296
>>>> 
>>>> Nice! The next step is tighter integration with OPAM...
>>> 
>>> Yep -- I just wanted to get all the hacky shell script and OS distro
>>> detection stuff into a package first, since that will really benefit
>>> from a wider contribution base.  I couldn't find anything out there
>>> for doing distro detection from shell scripts -- does anyone know of
>>> an existing tool to replace the `configure` script in
>> opam-installext?
>> 
>> To my knowledge, the mechanism you're using is about the best you can 
>> do.
> 



More information about the opam-devel mailing list