Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undeclared dependency File::chdir #13

Closed
eserte opened this issue Mar 27, 2020 · 3 comments
Closed

Undeclared dependency File::chdir #13

eserte opened this issue Mar 27, 2020 · 3 comments

Comments

@eserte
Copy link

eserte commented Mar 27, 2020

The compile test fails if File::chdir is not installed:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

#   Failed test 'Serge/Sync/Plugin/TranslationService/weblate.pm loaded ok'
#   at t/00-compile.t line 43.
#          got: '512'
#     expected: '0'
Can't locate File/chdir.pm in @INC (@INC contains: ... .) at /home/cpansand/.cpan/build/2020032700/Serge-Sync-Plugin-TranslationService-weblate-0.900.1-N7ptCd/blib/lib/Serge/Sync/Plugin/TranslationService/weblate.pm line 8.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2020032700/Serge-Sync-Plugin-TranslationService-weblate-0.900.1-N7ptCd/blib/lib/Serge/Sync/Plugin/TranslationService/weblate.pm line 8.
Compilation failed in require at -e line 1.
# Looks like you failed 1 test of 1.
t/00-compile.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
@dragosv
Copy link
Owner

dragosv commented Mar 27, 2020

Can you specify what Perl version are you using? File::chdir shows as being part of Perl itself (at least 5.30).

@dragosv
Copy link
Owner

dragosv commented Mar 27, 2020

Also keep in mind that the weblate plugin require wlc 1.3 (unreleased) so you would need to install wlc from sources
git clone https://github.com/WeblateOrg/wlc.git
pip3 install -e <source of wlc>

Or you can use the associated docker container.

@eserte
Copy link
Author

eserte commented Mar 29, 2020

Can you specify what Perl version are you using? File::chdir shows as being part of Perl itself (at least 5.30).

Module::CoreList thinks otherwise:

$ /opt/perl-5.31.10/bin/corelist5.31.10 File::chdir 

Data for 2020-03-20
File::chdir was not in CORE (or so I think)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants