Gentoo Archives: gentoo-user

From: "Arttu V." <arttuv69@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: perl versioning problem, how to get beyond for @world
Date: Mon, 21 May 2012 18:43:50
Message-Id: CA+2pebtjuBJ+B+60s9-oUtCs+kNjUYFSnBA+NWx4bYRMjopMhg@mail.gmail.com
In Reply to: [gentoo-user] Re: perl versioning problem, how to get beyond for @world by Harry Putnam
1 It looks like the @INC list (the directory list perl uses for finding
2 its modules) is not right or is not processed right. Only one
3 directory is looked into? (You can see @INC with "perl -V", it should
4 be up to about ten directories on a Gentoo install.)
5
6 Unless you really, really want to know exactly which bit from which
7 package is sideways you might get out of the hole simply with:
8 perl-cleaner --reallyall
9
10 --
11 Arttu V.
12
13 On 5/18/12, Harry Putnam <reader@×××××××.com> wrote:
14 > Alan McKinnon <alan.mckinnon@×××××.com> writes:
15 >
16 > [...]
17 >
18 >>> | Checking prerequisites...
19 >>> | build_requires:
20 >>> | ! Parse::CPAN::Meta (1.40) is installed, but we need version >=
21 >>> | 1.4401
22 >>> | ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install
23 >>> the versions | of the modules indicated above before proceeding with
24 >>> this installation |
25 >>> | Could not create MYMETA files
26 >>> | Creating new 'Build' script for 'Module-Build' version '0.40'
27 >>> | Copied META.yml to MYMETA.yml for bootstrapping
28 >>> |
29 >>> | These additional prerequisites must be installed:
30 >>> | requires:
31 >>> | ! version (we need version 0.87)
32 >>> | >>> Source configured.
33 >>> | >>> Compiling source in
34 >>> | /var/tmp/portage/perl-core/Module-Build-0.400.0/work/Module-Build-0.40
35 >>> ...
36 >>> | version version 0.87 required--this is only version 0.82 at
37 >>> | /usr/lib/perl5/vendor_perl/5.12.4/Module/Metadata
38 >>> | .pm line 20.
39 >>> | [...]
40 >>> `----
41 >>>
42 >>> I can't really see what to do about this...
43 >>>
44 >>> What is installed is:
45 >>>
46 >>> ,----
47 >>> | # eix -Ic|grep Parse.*Meta
48 >>> | [I] perl-core/Parse-CPAN-Meta (1.440.400@05/03/12): Parse META.yml
49 >>> and other | similar CPAN metadata files
50 >>> | [I] virtual/perl-Parse-CPAN-Meta (1.440.400@04/25/12): Virtual for
51 >>> Parse-CPAN-Meta `----
52 >>
53 >> Perl and any package manager tend to make an ugly combination...
54 >>
55 >> Now, I've never seen this specific error before but it looks like perl
56 >> thinks your installed Parse-CPAN-Meta is still the old version 1.40. It
57 >> doesn't realize what portage did in the interim.
58 >>
59 >> Have a look in that ebuild and 1.440.400 and you'll see quite a
60 >> difference.
61 >
62 > Quite a difference in what? Or compared to what?
63 >
64 >> Does unmerging and remerging Parse-CPAN-Meta fix anything?
65 >
66 > I tried emerge -vC the core Parse-CPAN-Meta and the Virtual
67 > Parse-CPAN-Meta
68 >
69 > Then eix-sync, then emerge -vuD world
70 >
71 > When it gets to building `perl-core/Module-Build-0.400.0'
72 >
73 > The same failure happens:
74 >
75 > ,----
76 > | [...]
77 > | Checking prerequisites...
78 > | build_requires:
79 > | ! Parse::CPAN::Meta (1.40) is installed, but we need version >=
80 > 1.4401
81 > |
82 > | ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the
83 > versions
84 > | of the modules indicated above before proceeding with this installation
85 > |
86 > | Could not create MYMETA files
87 > | Creating new 'Build' script for 'Module-Build' version '0.40'
88 > | Copied META.yml to MYMETA.yml for bootstrapping
89 > |
90 > | These additional prerequisites must be installed:
91 > | requires:
92 > | ! version (we need version 0.87)
93 > | >>> Source configured.
94 > | [...]
95 > `----
96 >
97 > emerge has installed two very different [...]//Parse/CPAN/Meta.pm
98 >
99 > ,----
100 > | ls -l /usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm \
101 > | /usr/lib/perl5/vendor_perl/5.12.4/Parse/CPAN/Meta.pm
102 > |
103 > | [...]10522 Apr 25 20:49 /usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm
104 > | [...] 7582 May 11 20:13
105 > /usr/lib/perl5/vendor_perl/5.12.4/Parse/CPAN/Meta.pm
106 > `----
107 >
108 > And they say very different things:
109 >
110 > From /usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm:
111 >
112 > [...]
113 > # Class structure
114 > require 5.004;
115 > require Exporter;
116 > $Parse::CPAN::Meta::VERSION = '1.40';
117 > @Parse::CPAN::Meta::ISA = qw{ Exporter };
118 > @Parse::CPAN::Meta::EXPORT_OK = qw{ Load LoadFile };
119 > [...]
120 >
121 > From /usr/lib/perl5/vendor_perl/5.12.4/Parse/CPAN/Meta.pm:
122 >
123 > # Class structure
124 > require 5.004;
125 > require Exporter;
126 > $Parse::CPAN::Meta::VERSION = '1.4404';
127 > @Parse::CPAN::Meta::ISA = qw{ Exporter };
128 > @Parse::CPAN::Meta::EXPORT_OK = qw{ Load LoadFile };
129 >
130 > One looks for 1.40, the other for 1.4404
131 >
132 > I don't know what the code does but, is this possibly the problem? If
133 > so its not at all clear what to do about it.
134 >
135 > qfile on /usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm
136 > Shows it comes from the main perl installation:
137 >
138 > qfile /usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm
139 > ,----
140 > | dev-lang/perl (/usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm)
141 > `----
142 > So that is from the main perl installation.
143 >
144 > Just renaming /usr/lib/perl5/5.12.4/Parse/CPAN/Meta.pm to
145 > /usr/lib/perl5/5.12.4/Parse/CPAN/XMeta.pmX
146 >
147 > Causes a new miss match on version when building
148 > perl-core/Module-Build-0.400.0
149 > ,----
150 > | *** BOOTSTRAPPING version ***
151 > | Could not create MYMETA files
152 > | Creating new 'Build' script for 'Module-Build' version '0.40'
153 > | Copied META.yml to MYMETA.yml for bootstrapping
154 > |
155 > | These additional prerequisites must be installed:
156 > | requires:
157 > | ! version (we need version 0.87)
158 > | >>> Source configured.
159 > | >>> Compiling source in
160 > /var/tmp/portage/perl-core/Module-Build-0.400.0/work/Module-Build-0.40 ...
161 > | version version 0.87 required--this is only version 0.82 at
162 > /usr/lib/perl5/vendor_perl/5.12.4/Module/Metadata.pm line 20.
163 > `----
164 >
165 > So it appears there is some deeper mangling somewhere.
166 >
167 >
168 >
169 >

Replies

Subject Author
[gentoo-user] Re: perl versioning problem, how to get beyond for @world Harry Putnam <reader@×××××××.com>