You are not logged in.

#1 2012-06-03 18:38:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

recent perl upgrade roached a perl script [solved]

The recent perl upgrade to 5.16.0-2 seems to have roached a perl script I have been using for years.  Would been very pleased if some of you perl gurus out there can suggest a fix.

Code is here:  https://github.com/graysky2/mplayer-res … er-resumer

Error I get file trying to use it:

$ mplayer-resumer test.mkv
Can't locate Shell.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/bin/mplayer-resumer line 3.
BEGIN failed--compilation aborted at /usr/bin/mplayer-resumer line 3.

Last edited by graysky (2012-06-03 22:40:31)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-06-03 22:03:17

juiko
Member
Registered: 2012-03-29
Posts: 5

Re: recent perl upgrade roached a perl script [solved]

Tried installing Shell package using cpan?

Last edited by juiko (2012-06-03 22:04:02)

Offline

#3 2012-06-03 22:25:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: recent perl upgrade roached a perl script [solved]

@juiko - I haven't yet.  I'm scratching my head over why in 5.14.2 Shell.pm is included but in 5.16.0 it is not.  Is Shell.pm the same as what the older version had naively?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-06-03 22:40:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: recent perl upgrade roached a perl script [solved]

That did the trick... now I am the proud owner of a perl module in the AUR... https://aur.archlinux.org/packages.php?ID=59748

Odd thing is that perl 5.14.2 included this:

$ pacman -Qo /usr/share/perl5/core_perl/Shell.pm
/usr/share/perl5/core_perl/Shell.pm is owned by perl 5.14.2-7

When I diff'ed this file vs. the one my PKGBUILD installs, there are trivial differences.  Perhaps my package needs to be included in [community]?  How many other perl scripts dep on this guy and why was it removed from 5.16.0?  Anyway, perhaps I'll open a flyspray so the right people can see it.  Thanks for your suggestion.

EDIT: https://bugs.archlinux.org/task/30131

Last edited by graysky (2012-06-03 22:51:29)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2012-06-03 22:54:50

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: recent perl upgrade roached a perl script [solved]

graysky wrote:

in 5.14.2 Shell.pm is included but in 5.16.0 it is not.

Is for me, in my custom distro - perl 5.16.0 installs:

/usr/lib/perl5/5.16.0/CPAN/Shell.pm
/usr/lib/perl5/5.16.0/CPANPLUS/Shell.pm

Maybe Arch's perl package is failing to include it?

Edit: It's in the source file - perl-5.16.0.tar.gz contains:

cpan/CPAN/lib/CPAN/Shell.pm
cpan/CPANPLUS/lib/CPANPLUS/Shell.pm

Last edited by brebs (2012-06-03 22:57:19)

Offline

#6 2012-06-03 22:57:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: recent perl upgrade roached a perl script [solved]

@brebs - Odd.  Perhaps it _is_ a bug in the ARCH package then... in any case, I opened a bug report so the right people will see it.

Last edited by graysky (2012-06-03 22:58:53)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2012-06-04 03:28:17

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: recent perl upgrade roached a perl script [solved]

Shell.pm != CPAN/Shell.pm

Offline

#8 2012-06-04 09:45:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: recent perl upgrade roached a perl script [solved]

I agree that Shell.pm != CPAN/Shell.pm

But if I diff the one my AUR package provides against the one that perl 5.14.2-2 provides, they are nearly identical:

$ diff aur/Shell.pm old/core_perl/Shell.pm
11a12,13
> use if $] >= 5.011, 'deprecate';
>

Last edited by graysky (2012-06-04 09:46:23)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2012-06-04 20:16:07

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: recent perl upgrade roached a perl script [solved]

Shell was removed as a core module. See perldelta: https://metacpan.org/module/perldelta#R … d-Pragmata

For possible reasons why, look at the beginning of the online docs for the Shell module:

This package is included as a show case, illustrating a few Perl features. It shouldn't be used for production programs. Although it does provide a simple interface for obtaining the standard output of arbitrary commands, there may be better ways of achieving what you need.

Offline

Board footer

Powered by FluxBB