]> git.koha-community.org Git - koha.git/commit
Bug 21480: misc/translator/translate does not work with perl 5.26
authorOlli-Antti Kivilahti <olli-antti.kivilahti@helsinki.fi>
Wed, 3 Oct 2018 08:24:38 +0000 (11:24 +0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 19 Oct 2018 06:30:17 +0000 (08:30 +0200)
commit4a7ec67faeeae3b3f8a5a38c49ac7ec74135e072
tree3bda8fe409cad4439ee879dde50ae217224b13b8
parent5febaef09f56059875a7bb4b0518903e41333d3a
Bug 21480: misc/translator/translate does not work with perl 5.26

Perl 5.26 (or earlier) introduced a security feature, where implicitly
including the program directory as a Perl library directory no longer
happens (perl -I. ).

This causes translate to fail because it cannot find the *.pm -files in
it's own directory.

This patch adds the familiar mantra
    use lib $FindBin::Bin;
to the relevant scripts.

To test:

1. Install Ubuntu18.04 or something else with Perl 5.26
2. Install Koha (we use the dev-install)
3. cd $KOHA_PATH/misc/translator/
4. perl translate create fi-FI
5. Observe problems with missing modules.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Cannot recreate the issue right now but the changes make sense.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 8aa86cdf2d5e0dbda7d21394e52f37ba17a8064c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 24e2d2d9c46772804ee1904ec7ab3e80a8bf9d28)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/translator/text-extract.pl
misc/translator/text-extract2.pl
misc/translator/tmpl_process3.pl
misc/translator/translate
misc/translator/xgettext.pl