Subject: Developers of Sympa
List archive
- From: IKEDA Soji <address@concealed>
- To: Luc Didry <address@concealed>
- Cc: address@concealed
- Subject: Re: [sympa-developpers] Use Carton for Sympa?
- Date: Sat, 19 May 2018 16:15:58 +0900
On Thu, 17 May 2018 11:28:22 +0200
Luc Didry <address@concealed> wrote:
> Hello,
>
> I wanted to discuss about it during the hackathon, but why not talk
> right now?
>
> Carton (https://metacpan.org/pod/Carton) is a Perl module dependency
> manager, allowing to install the exact versions of modules chosen by
> the developers. The modules are installed in a `local` directory.
>
> Pros:
> - no more "What version of modules do you have" (if the installation
> was properly made): just say what version of Sympa you have
> - a problem is caused by a module, that have a fix in a new version
> (or has not the problem in a previous version)? No pb, the devs have
> just to install the right version and push the new cpanfile.lock
> - you can create "features" like --without=oracle to not install the
> dependencies for Oracle DB (https://metacpan.org/pod/cpanfile)
>
> Cons:
> - the scripts need to be launched with `carton exec ./script --
> --options` (maybe there is some workaround, I don't know)
> I usually create wrapper scripts to avoid such long command.
>
I think it's worth tacking.
Sympa::ModDef includes information about all dependent modules.
Though it is used only by "sympa_wizard.pl --check" by now,
it is possible to generate cpanfile using it.
In fact, in the past source distribution of Sympa contained
META.json file generated from Sympa::ModDef with this script:
https://github.com/sympa-community/sympa/blob/788c69b/META.json.pl
I attached META.json generated with recent Sympa. I think cpanfile
may also be generated in similar way and it will contain enough
information for your plan.
(FYI, Chapter "Customizing Sympa" in current documentation classifies
"Optional features" roughly referring to recommended packages in
optional_features)
Regards,
-- Soji
> What do you think? Is it worth looking into?
> --
> Luc
> "La route est longue, mais la voie est libre…" https://framasoft.org
>
> Framasoft ne vit que par vos dons (déductibles des impôts). Merci d'avance
> pour votre soutien https://soutenir.framasoft.org
>
>
--
株式会社 コンバージョン
ITソリューション部 システムソリューション1グループ 池田荘児
〒140-0014 東京都品川区大井1-49-15 アクセス大井町ビル4F
e-mail address@concealed TEL 03-6429-2880
https://www.conversion.co.jp/
Attachment:
META.json
Description: Binary data
-
[sympa-developpers] Use Carton for Sympa?,
Luc Didry, 05/17/2018
- Re: [sympa-developpers] Use Carton for Sympa?, Luc Didry, 05/18/2018
-
Re: [sympa-developpers] Use Carton for Sympa?,
IKEDA Soji, 05/19/2018
- Re: [sympa-developpers] Use Carton for Sympa?, Luc Didry, 05/25/2018
Archive powered by MHonArc 2.6.19+.