Re: Update Hombrew install instructions on the web site

Thomas Leonard <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy-XQoK5YUA_R_6X3ZbVTN-FLZ+iTrOx-nRMRqEh_VoKRQ@mail.gmail.com>
On 2 August 2015 at 20:06, Anders F Björklund <[email protected]> wrote:
> Thomas Leonard wrote:
>>>>> And I don't really want to go through the hassle of having to maintain
>>>>> all the dependencies, and update them if there's new versions etc etc.
>>>>
>>>> Yes, this does seem like an annoying requirement.
>>>
>>> But seems necessary, like in case of Lwt below ? Should be some way
>>> to "pin" opam to use the bundled libraries, if it can't stay offline.
>>
>> If you delete from opam-repository all the versions you're not using,
>> it won't have any choice :-)
>
> Right, but if I just deleted the remote it didn't find anything at all.
> Suppose I could do something with the repo, but it is too much hassle.

Would this work?

  export OPAMROOT=/tmp/opam
  opam init --no-setup
  opam remote remove default
  tar cjf opam-empty.tar.bz2 /tmp/opam

The small opam-empty.tar.bz2 could be added to the package. Then, at build-time:

  opam remote add local /path/to/opam-repository
  opam install 0install

Might have to adjust the paths in "system/config/global-config.config"
so they don't start /tmp/opam...

>> Or, you could add some exact version constraints to 0install's opam file.
>>
>>> I know that I did this for the release, since the "sha" module didn't
>>> work with the older SDK (bug filed). Seems missing on Fedora as well ?
>>>
>>> Will see if I can't get it to install the ones that I provided instead.
>>
>> You can specify versions like this:
>>
>> opam install 'lwt=2.5.0'
>>
>> But it might be easier to 'opam install 0install' and grab the binary
>> it produces.
>
> Right, but that's pretty much what we had already before the resources.
> And then I still need to move everything out from the $OPAMROOT/system ?
>
>
> Whatever I try to do with OPAM, it still needs the compilers/packages.
>
> And If I don't use OPAM, then I need to install/maintain everything
> myself and keep track of all the silly build'ing variants needed...
>
> The right thing to do seems to be to "pin" every resource, in order.
>
> --anders
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Zero-install-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zero-install-devel



-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.