Package Details: perl-perl-languageserver 2.6.2-1

Git Clone URL: https://aur.archlinux.org/perl-perl-languageserver.git (read-only, click to copy)
Package Base: perl-perl-languageserver
Description: Language Server and Debug Protocol Adapter for Perl
Upstream URL: https://metacpan.org/release/Perl-LanguageServer
Licenses: GPL, PerlArtistic
Submitter: DanielDavis
Maintainer: BluePeril
Last Packager: BluePeril
Votes: 6
Popularity: 0.018506
First Submitted: 2019-03-13 22:25 (UTC)
Last Updated: 2024-02-04 15:42 (UTC)

Latest Comments

jthvai commented on 2023-12-09 18:31 (UTC)

Would be nice if this fix could be included in the PKGBUILD :)

diff --git a/PKGBUILD b/PKGBUILD
index 9c7b1fd..33a0a78 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,6 +32,7 @@ build() {
 check() {
   cd "$srcdir/$_distdir"
   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    unset PERL_JSON_BACKEND
     make test
   )
 }

jthvai commented on 2023-12-09 13:17 (UTC) (edited on 2023-12-09 18:24 (UTC) by jthvai)

Update: this error only happens if PERL_JSON_BACKEND is set (irrespective of the value), and can be fixed by adding unset PERL_JSON_BACKEND in the subshell in check(), before make test. The resulting package still operates successfully in an environment with PERL_JSON_BACKEND set.

When building this package (makepkg -s as well as -scC), check() failed with:

==> Starting check()...
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t .. 1/? Bailout called.  Further testing stopped:  

#   Failed test 'use Perl::LanguageServer;'
#   at t/00-load.t line 10.
#     Tried to use 'Perl::LanguageServer'.
#     Error:  Insecure dependency in eval while running with -T switch at /usr/share/perl5/vendor_perl/JSON.pm line 274.
# Compilation failed in require at /path/to/perl-perl-languageserver/src/Perl-LanguageServer-2.6.1/blib/lib/Perl/LanguageServer.pm line 14.
# BEGIN failed--compilation aborted at /path/to/perl-perl-languageserver/src/Perl-LanguageServer-2.6.1/blib/lib/Perl/LanguageServer.pm line 14.
# Compilation failed in require at t/00-load.t line 10.
# BEGIN failed--compilation aborted at t/00-load.t line 10.
Use of uninitialized value $Perl::LanguageServer::VERSION in concatenation (.) or string at t/00-load.t line 13.
# Testing Perl::LanguageServer , Perl 5.038001, /usr/bin/perl
# Looks like you failed 1 test of 1.
t/00-load.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
FAILED--Further testing stopped.
make: *** [Makefile:904: test_dynamic] Error 1
==> ERROR: A failure occurred in check().
    Aborting...

Cloning the repo itself, or downloading the release archive for 2.6.1, and running the same commands as the PKGBUILD produces passing tests.

DanielDavis commented on 2020-10-20 01:59 (UTC)

Yea, I see it's out of date; probably not the only one. I'll run through all my packages when I get some time tomorrow.