[Koha-devel] Inconsistent Perl shebangs (new coding guideline?)

Tomas Cohen Arazi tomascohen at gmail.com
Wed Oct 14 01:52:24 CEST 2020


Good point. I have to say managing things with ENV is a good path for
packaging Koha in different ways (flatpak, snap, docker, etc)

On Tue, Oct 13, 2020, 18:20 MJ Ray <mjr at phonecoop.coop> wrote:

> "Renvoize, Martin" <martin.renvoize at ptfs-europe.com> wrote:
>
> > My vague recollection of such a conversation was summarized in this
> > post: https://jmmv.dev/2016/09/env-considered-harmful.html
> >
> > I'm generally pro /usr/bin/env but they do make some good points in
> > the above that are worth consideration.
>
> Let me consider those six points (converting roman numerals to arabic):
>
> 1-3. basically variations on using env might not find the version you
> want - but that applies to /usr/bin/perl too;
>
> 4. cannot pass flags to the interpreter - do we want to?
>
> 5. affected by user environment - I think we use some environment
> variables anyway, so we already need to control the environment, so
> this is not a problem for Koha.
>
> 6. "not suitable to being installed" due to 1-5 plus some arbitrary
> rules about "the installed script must see the exact same environment
> that was specified at installation time" which is not true of any
> system getting security updates, is it? Maybe I don't understand this
> point.
>
> So I don't think I see a compelling reason against env there.
>
> Have I missed something?
>
> Regards,
> --
>
> MJR http://mjr.towers.org.uk/
> Member of http://www.software.coop/ (but this email is my personal view
> only)
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20201013/937fec79/attachment.htm>


More information about the Koha-devel mailing list