<div dir="auto">Good point. I have to say managing things with ENV is a good path for packaging Koha in different ways (flatpak, snap, docker, etc)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020, 18:20 MJ Ray <<a href="mailto:mjr@phonecoop.coop">mjr@phonecoop.coop</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">"Renvoize, Martin" <<a href="mailto:martin.renvoize@ptfs-europe.com" target="_blank" rel="noreferrer">martin.renvoize@ptfs-europe.com</a>> wrote:<br>
<br>
> My vague recollection of such a conversation was summarized in this<br>
> post: <a href="https://jmmv.dev/2016/09/env-considered-harmful.html" rel="noreferrer noreferrer" target="_blank">https://jmmv.dev/2016/09/env-considered-harmful.html</a><br>
> <br>
> I'm generally pro /usr/bin/env but they do make some good points in<br>
> the above that are worth consideration.<br>
<br>
Let me consider those six points (converting roman numerals to arabic):<br>
<br>
1-3. basically variations on using env might not find the version you<br>
want - but that applies to /usr/bin/perl too;<br>
<br>
4. cannot pass flags to the interpreter - do we want to?<br>
<br>
5. affected by user environment - I think we use some environment<br>
variables anyway, so we already need to control the environment, so<br>
this is not a problem for Koha.<br>
<br>
6. "not suitable to being installed" due to 1-5 plus some arbitrary<br>
rules about "the installed script must see the exact same environment<br>
that was specified at installation time" which is not true of any<br>
system getting security updates, is it? Maybe I don't understand this<br>
point.<br>
<br>
So I don't think I see a compelling reason against env there.<br>
<br>
Have I missed something?<br>
<br>
Regards,<br>
-- <br>
<br>
MJR <a href="http://mjr.towers.org.uk/" rel="noreferrer noreferrer" target="_blank">http://mjr.towers.org.uk/</a><br>
Member of <a href="http://www.software.coop/" rel="noreferrer noreferrer" target="_blank">http://www.software.coop/</a> (but this email is my personal view<br>
only)<br>
<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a><br>
<a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
</blockquote></div>