develooper Front page | perl.perl5.porters | Postings from August 2018

Re: [perl #133440] binaries mismatched again

Thread Previous | Thread Next
August 19, 2018 03:25
Re: [perl #133440] binaries mismatched again
Message ID:
Thanks for your reply. While trying to downgrade my system (debugging
another issue) I discovered a possible reason why I have problematic
binary modules in my home directory which are also in Perl core
(causing cpan to break when I upgrade Perl). The reason appears to be
that the "recompile" cpan command reinstalls modules which I had
removed earlier using 'cpanm'.

$ PERL5LIB= cpanm -U Digest::SHA
$ PERL5LIB= cpanm -U Time::HiRes
$ perldoc -l Time::HiRes
$ perldoc -l Digest::SHA

(after cpan recompile)

$ perldoc -l Time::HiRes
$ perldoc -l Digest::SHA

I don't know if this is a bug or just an annoyance, but it may go a
little way towards solving the mystery of why I have these modules
around, since I think I recall removing them earlier. Obviously, I
don't look too carefully at the ouput of 'cpan -r', because I have
better things to do, I just assume it's doing the "right thing". By
the time I realize that I have duplicate modules installed, it's
probably a year later and I don't remember having removed them.

Also, I notice that if I ask 'cpanm' to install a module which is
already in core, then it doesn't warn me:

$ perldoc -l DB_File
$ cpanm DB_File
--> Working on DB_File
Fetching ... OK
Configuring DB_File-1.842 ... ^C

I haven't checked what happens if I use cpanm to install a module
which depends on modules in core, but if you give me an example of a
CPAN module with dependencies in core then I can try this out.

I couldn't figure out how to use the 'cpan' tool to remove modules,
but 'cpanm' has a nice simple interface for doing that so I thought it
would be compatible with 'cpan'.

Also, I see 'cpan -r -T' runs lots of tests, I thought '-T' was to
supposed to skip the tests.

Hope this helps,


On Fri, Aug 17, 2018 at 01:40:52PM -0700, (Andreas J. Koenig) via RT wrote:
> >>>>> On Thu, 16 Aug 2018 21:51:39 -0700, said:
>   > Just wanted to briefly follow this up...
>   > Andreas: "cpan[1]> recompile" worked fine on both my machines. I also
>   > noticed that the second time I run it, it notices nothing needs to be
>   > done, which is great.
> Thanks for letting me know and for sending the report how noisy it was
> during its performance. I'm sorry for this bug, I've since fixed it in
> the repository so it will appear in version 2.21.
> Besides that I have also found the original ticket in which we received
> the first guide that explained the "got handshake key" message. It was
> Maybe the two
> tickets would be suited to be folded into one, I'm not sure.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About