markong has asked for the wisdom of the Perl Monks concerning the following question:
I am going to upgrade a GNU/Linux system Perl installation! :)
This could be variously exciting, probably depending on the mood and the subject :D, except that using heavily local::lib coupled with cpanm(1) for many modules installation I am going to find all the XS ones broken after the upgrade.
Because last time I had to carry out such an upgrade, I found myself in a strange (better say nightmare) situation in which a local installation of Scalar::Util (if I remember well) was one of the XS modules blocking practically the execution of 70% of the library , including the standard cpan(1) script from executing (which resulted in practically re-installing the whole library), I thought better ask this time and plan for the worst: is there any recommended/battle-tested way to proceed with XS modules rebuilding after an upgrade?
Somebody recommend to go for the whole library rebuild which I'd like to avoid (I usually have few XS modules compared to the Perl ones).
I did look at finding a way to reliably find all and only the XS modules in my local lib but I hadn't any luck. Any suggestions?
It seems also that while cpanm(1) has not some related "magic" (correct me if I'm wrong) good old cpan(1) instead has r which could really be what I'm looking for: recompile.
It also has CPAN::Nox which would untangle any problems related to broken XS modules.
BUT(!) I suspect that CPAN::Shell::recompile will proceed with rebuilding all the XS modules in the search path, not only the ones in my $PERL_LOCAL_LIB_ROOT search path which is a problem.
Any experience with cpan in this sense?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dealing with perl upgrade and local XS modules
by no longer just digit (Beadle) on Apr 01, 2021 at 07:39 UTC | |
by markong (Pilgrim) on Apr 02, 2021 at 23:12 UTC | |
|
Re: Dealing with perl upgrade and local XS modules
by perlfan (Parson) on Apr 01, 2021 at 02:09 UTC | |
by markong (Pilgrim) on Apr 01, 2021 at 10:23 UTC | |
|
Re: Dealing with perl upgrade and local XS modules
by Anonymous Monk on Apr 01, 2021 at 06:56 UTC |