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

Problem installing language packs with cpanm #45

Closed
bschmalhofer opened this issue Feb 26, 2024 · 6 comments
Closed

Problem installing language packs with cpanm #45

bschmalhofer opened this issue Feb 26, 2024 · 6 comments

Comments

@bschmalhofer
Copy link

bschmalhofer commented Feb 26, 2024

Hi,

I get errors when installing some language packs for 0.44.0. Here is an example for Portuguese:

$ cpanm -l local Locale::CLDR::Locales::Pt
--> Working on Locale::CLDR::Locales::Pt
Fetching http://www.cpan.org/authors/id/J/JG/JGNI/Locale-CLDR-Locales-Pt-v0.44.0.tar.gz ... OK
Configuring Locale-CLDR-Locales-Pt-v0.44.0 ... OK
==> Found dependencies: Locale::CLDR, Locale::CLDR::Locales::Pt::Latn::Pt
--> Working on Locale::CLDR
Fetching http://www.cpan.org/authors/id/J/JG/JGNI/Locale-CLDR-v0.44.0.tar.gz ... OK
Configuring Locale-CLDR-v0.44.0 ... OK
Building and testing Locale-CLDR-v0.44.0 ... OK
Successfully installed Locale-CLDR-v0.44.0 (upgraded from v0.40.1)
! Installing the dependencies failed: Module 'Locale::CLDR::Locales::Pt::Latn::Pt' is not installed
! Bailing out the installation for Locale-CLDR-Locales-Pt-v0.44.0.
1 distribution installed

In 0.40.0 the localisation for Portugal was listed as a provided module in META.json:

 "provides" : {
      ....
      "Locale::CLDR::Locales::Pt::Any::Pt" : {
         "file" : "lib/Locale/CLDR/Locales/Pt/Any/Pt.pm",
         "version" : "v0.40.1"
      },
      ....
}

In 0.44.0 it is listed as a required module in META.json:


   "prereqs" : {
      "build" : {
         "requires" : {
            "Test::Exception" : "0",
            "Test::More" : "0.98",
            "ok" : "0"
         }
      },
      "configure" : {
         "requires" : {
            "Module::Build" : "0.40"
         }
      },
      "runtime" : {
         "requires" : {
            "DateTime" : "0.72",
            "Locale::CLDR" : "v0.44.0",
            "Locale::CLDR::Locales::Pt::Latn::Pt" : "v0.44.0",
            "Moo" : "2",
            "MooX::ClassAttribute" : "0.011",
            "Type::Tiny" : "0",
            "perl" : "v5.10.1",
            "version" : "0.95"
         }
      }
   },
@ThePilgrim
Copy link
Owner

The x::Any::y shouldn't exist any more. I'll take a look as soon as I can.

@bschmalhofer
Copy link
Author

The x::Any::y shouldn't exist any more. I'll take a look as soon as I can.

I mistyped, the first snippet is from 0.40.0. So the only problem is that in 0.44.0 some modules are listed as requirements instead of filed under "provides".

@ThePilgrim
Copy link
Owner

I'll take a look at how those files are generated.

@ThePilgrim
Copy link
Owner

ThePilgrim commented Feb 28, 2024

I've just started uploading a trial version of version 0.44.1 this should fix the problem once all the languages are uploaded
Upload complete

@bschmalhofer
Copy link
Author

Hi John,

I updated my cpanfile to use the version 0.44.1 for Locale::CLDR and the language pack. I hade a small hickup when Nb was complaining about no having Locale::CLDR::Locales::No available. But that disappeared once I added No to the language list. Maybe cpanm could not automatically fetch No 0.44.1 because the 0.44.1 is still labelled as a devel realease.

The translation of the languages seems to work fine, at least 'Dutch' was correctly translated into French.

@ThePilgrim
Copy link
Owner

ThePilgrim commented Feb 29, 2024

The tests for Nb are passing so I guess it's the cpanm client not picking up the parent as you say.
I'm going to generate and upload the production version now
Production version uploaded

@bschmalhofer bschmalhofer changed the title Problem installing lanuguage packs with cpanm Problem installing language packs with cpanm Jan 18, 2025
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