🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.caml
Article #21

Re: [Caml-list] Re: ~/.opam design

#21
From: Sébastien Dailly
Date: Thu, 30 May 2013 08:14
52 lines
4700 bytes
Le 2013-05-30 09:38, Thomas Gazagnaire a écrit :

>
> The subject is not closed at all, and we might move in this direction
> in future releases of OPAM. See for instance [1]

Thanks for pointing the issue. I answerd on the mailing list without 
consulting the project site.

>
> The current design has a lot of advantages (the main one being that
> you can remove your ~/.opam if you want restart from scratch) and it
> can be tweaked to have a global installation (see [2,3], even if the
> tweak is not very well documented).

Each application has a good reason for beiing installed directly in the 
~ directory. But in a deskop usage (server is different), this finaly 
create a big polution in the user directory. The xdg try to define a 
general usage for preventing this.

> But yes, for some configurations
> (such as shared NFS homedirs), the current situation is not perfect
> and it would be nice to be able to separate the data from the
> configuration bits.

This is a more general problem : exporting the configuration from one 
site to another one, or versionning the opam conf in a production server 
is greatly facilitated if the configuration is located in a dedicated 
path.

> Luckily, all the paths used by OPAM are defined in
> [4] so they can be changed without too much hassle.

The main advantage I can see with the xdg path is that the 
configuration path is declared before installing anything, and can be 
configured once for a whole system. This allow to configure differents 
workspace just by sourcing a bash file ; as I can do with findlib and 
${OCAMLFIND_CONF}

I think you can get as many pros as cons, but today, the xdg path is a 
standard in a desktop…

Regards,

-- 
Sébastien

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
Technical Details
Message-ID: <fa.pV7OKPJCtny/xLd4RaE3NLut5KM@ifi.uio.no>
Path: arc1-ca.pugleaf.net!d5ni21675pbl.0!nntp.google.com!news.glorb.com!uio.no!nntp.uio.no!.POSTED!not-for-mail
References: <fa./0FYyTu/mG/VdH6G16fdN6WHMTQ@ifi.uio.no> <fa.jsgNvpBia/4McdqPw8/Eq/j63NI@ifi.uio.no> <fa.JW2Bk0K3HBfa9sK8ahbkYQIB1AM@ifi.uio.no>

Show Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,e9ea07762c93b6b4
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,UTF8
X-Received: by 10.66.197.229 with SMTP id ix5mr968392pac.23.1369901699477;
        Thu, 30 May 2013 01:14:59 -0700 (PDT)
Path: arc1-ca.pugleaf.net!d5ni21675pbl.0!nntp.google.com!news.glorb.com!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Sébastien Dailly <sebastien-ocaml@chimrod.com>
Newsgroups: fa.caml
Subject: Re: [Caml-list] Re: ~/.opam design
Date: Thu, 30 May 2013 08:14:58 UTC
Organization: Internet mailing list
Lines: 52
Sender: caml-list-request@inria.fr
Message-ID: <fa.pV7OKPJCtny/xLd4RaE3NLut5KM@ifi.uio.no>
References: <fa./0FYyTu/mG/VdH6G16fdN6WHMTQ@ifi.uio.no> <fa.jsgNvpBia/4McdqPw8/Eq/j63NI@ifi.uio.no> <fa.JW2Bk0K3HBfa9sK8ahbkYQIB1AM@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1369901698 24201 129.240.7.9 (30 May 2013 08:14:58 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Thu, 30 May 2013 08:14:58 +0000 (UTC)
User-Agent: Roundcube Webmail/0.7.2
Cc: <caml-list@inria.fr>
To: Thomas Gazagnaire <thomas@ocamlpro.com>
X-IronPort-AV: E=Sophos;i="4.87,769,1363129200"; 
   d="scan'208";a="19583844"
X-Original-To: caml-list@sympa.inria.fr
Delivered-To: caml-list@sympa.inria.fr
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvMAAOMJp1HUGyoBk2dsb2JhbABZhnS6dXCCanoWDgEBAQEHCwsJFAMlgiMBAQQBIw8BBTYLBQsEBxoCGA4CAiwrBhuHfwqnYpIXgSaHaoYDB4JDgRQDrAw
X-IPAS-Result: AvMAAOMJp1HUGyoBk2dsb2JhbABZhnS6dXCCanoWDgEBAQEHCwsJFAMlgiMBAQQBIw8BBTYLBQsEBxoCGA4CAiwrBhuHfwqnYpIXgSaHaoYDB4JDgRQDrAw
X-IronPort-AV: E=Sophos;i="4.87,769,1363129200"; 
   d="scan'208";a="19583818"
X-PHP-Originating-Script: 0:main.inc
In-Reply-To: <85FC58B0-BA1E-49C0-9380-802315C81592@ocamlpro.com>
X-Sender: sebastien-ocaml@chimrod.com
X-Sequence: 6846
X-no-archive: yes
List-Id: <caml-list.inria.fr>
List-Archive: <http://sympa.inria.fr/sympa/arc/caml-list>
List-Help: <mailto:sympa_inria@inria.fr?subject=help>
List-Owner: <mailto:caml-list-request@inria.fr>
List-Post: <mailto:caml-list@inria.fr>
List-Subscribe: <mailto:sympa_inria@inria.fr?subject=subscribe%20caml-list>
List-Unsubscribe: <mailto:sympa_inria@inria.fr?subject=unsubscribe%20caml-list>
Original-Date: Thu, 30 May 2013 10:14:47 +0200
Original-Message-Id: <a3fb8eabc251838bbd71927fe4b26ffa@chimrod.com>
Original-References: <CAE1DttB8v4hp1jjf7hhQhaeaH9orong36L2LoRScf_QwGJGiXA@mail.gmail.com>
 <3da55d6fccc845346c96c7af502cc706@chimrod.com>
 <85FC58B0-BA1E-49C0-9380-802315C81592@ocamlpro.com>
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit