[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-21 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504



--- Comment #5 from Petr Pisar ppi...@redhat.com ---
Either there is a real permission denial, or this is just a fuzz in module
look-up made by perl and returning aa bogus error message.

Minimal reproducer should be:

$ perl -e 'use Pod::Usage'

Does it fail either?

To verify the error comes from the operating system, run the failing command
under strace tool:

$ strace -fq -- perl -e 'use Pod::Usage'
[...]
stat(/usr/local/lib64/perl5/Pod/Usage.pm, 0x7fff0a8b6880) = -1 ENOENT (No
such file or directory)
stat(/usr/local/share/perl5/Pod/Usage.pm, 0x7fff0a8b6880) = -1 ENOENT (No
such file or directory)
stat(/usr/lib64/perl5/vendor_perl/Pod/Usage.pm, 0x7fff0a8b6880) = -1 ENOENT
(No such file or directory)
stat(/usr/share/perl5/vendor_perl/Pod/Usage.pm, {st_mode=S_IFREG|0644,
st_size=26857, ...}) = 0
open(/usr/share/perl5/vendor_perl/Pod/Usage.pm, O_RDONLY) = 3
[...]
exit_group(0)   = ?
+++ exited with 0 +++

Here you can see, the file could not been found in the site directories, but it
was found in the vendor no-arch directory, and opened successfully. What do you
see on your system?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=KbyWnp7Dlsa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-21 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504

Emmanuel Seyman emman...@seyman.fr changed:

   What|Removed |Added

 CC||emman...@seyman.fr



--- Comment #6 from Emmanuel Seyman emman...@seyman.fr ---
I've had a third-party try to reproduce Doug's problem and also fail yet the
size and timestamp of the Usage.pm he listed seems correct. Strange...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=IRhihPXuiEa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-21 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504



--- Comment #7 from Petr Pisar ppi...@redhat.com ---
Searching web for phrase

  perl Can't locate Permission denied.

results in reports where people (on Debian, Fedora, Gentoo) had some
directories listed in @INC without having access there.

What's reporter's @INC (run perl -V and look at the end)? Does the strace
output have some EACCES or ENOPERM errors for those directories listen in the
@INC?

E.g. running as a normal user one get this error:

$ PERL5LIB=/root perl -e 'use Pod::Usage'
Can't locate Pod/Usage.pm:   Permission denied at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=nVXPMIut7aa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-21 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504

Petr Pisar ppi...@redhat.com changed:

   What|Removed |Added

URL||https://rt.perl.org/Public/
   ||Bug/Display.html?id=113422#
   ||txn-1309618



--- Comment #8 from Petr Pisar ppi...@redhat.com ---
And exactly this non-comprehensive error message was commented
https://rt.perl.org/Public/Bug/Display.html?id=113422#txn-1309618 after
upstream implemented it in the perl 5.18.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=CqyW2NW57ja=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-21 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504

Petr Pisar ppi...@redhat.com changed:

   What|Removed |Added

URL|https://rt.perl.org/Public/ |https://rt.perl.org/Public/
   |Bug/Display.html?id=113422# |Bug/Display.html?id=123270
   |txn-1309618 |



-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=nTAvylVSJQa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-21 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504



--- Comment #9 from Petr Pisar ppi...@redhat.com ---
Created attachment 959634
  -- https://bugzilla.redhat.com/attachment.cgi?id=959634action=edit
Improved error message proposed to upstream

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=JiroPtzTsTa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-20 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504

Ralf Corsepius rc040...@freenet.de changed:

   What|Removed |Added

 Status|NEW |CLOSED
 Resolution|--- |NOTABUG
Last Closed||2014-11-21 01:25:50



--- Comment #1 from Ralf Corsepius rc040...@freenet.de ---
The Pod::Usage module is shipped in a separate package and not as part of the
main perl-package.

# repoquery --whatprovides 'perl(Pod::Usage)'
perl-Pod-Usage-4:1.64-2.fc21.noarch

= Try
yum install 'perl(Pod::Usage)'
or
yum install perl-Pod_Usage
and then rerun your script.

I am closing this bug for now, because it seems to me you simply missed to
install this package. Feel free to reopen it, should I be wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=oKz7iBNA4ga=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-20 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504

Doug Maxey d...@enoyolf.org changed:

   What|Removed |Added

 Status|CLOSED  |NEW
 Resolution|NOTABUG |---
   Keywords||Reopened



--- Comment #2 from Doug Maxey d...@enoyolf.org ---
# yum list perl-Pod-Usage
Loaded plugins: aliases, auto-update-debuginfo, changelog, fastestmirror,
filter-data, fs-snapshot, keys, langpacks, list-data,
  : local, merge-conf, post-transaction-actions, priorities,
protectbase, ps, puppetverify, refresh-updatesd,
  : remove-with-leaves, rpm-warm-cache, show-leaves, tmprepo,
tsflags, upgrade-helper, verify, versionlock
Loading mirror speeds from cached hostfile
 * fedora: mirror.steadfast.net
 * fedora-debuginfo: mirror.steadfast.net
 * rpmfusion-free-rawhide: mirror.nexcess.net
 * rpmfusion-free-rawhide-debuginfo: mirror.nexcess.net
 * rpmfusion-nonfree-rawhide: mirror.nexcess.net
 * rpmfusion-nonfree-rawhide-debuginfo: mirror.nexcess.net
 * updates: archive.linux.duke.edu
 * updates-debuginfo: archive.linux.duke.edu
0 packages excluded due to repository protections
Installed Packages
perl-Pod-Usage.noarch  4:1.64-2.fc21   
   installed
# 

It here, and been here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=NHwkz6E9rRa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-20 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504



--- Comment #3 from Doug Maxey d...@enoyolf.org ---
More background - all these scripts that I have (close to a hundred), when run
as root, throw this error:

# git-sys-filter --man
Can't find any loadable formatter class in Pod::Perldoc::Toterm
Pod::Perldoc::Toterm Pod::Perldoc::ToTerm Pod::Perldoc::ToTERM
Pod::Simple::term Pod::Simple::term Pod::Simple::Term Pod::Simple::TERM
Pod::term Pod::term Pod::Term Pod::TERM Pod::Perldoc::Totext
Pod::Perldoc::Totext Pod::Perldoc::ToText Pod::Perldoc::ToTEXT
Pod::Simple::text Pod::Simple::text Pod::Simple::Text Pod::Simple::TEXT
Pod::text Pod::text Pod::Text Pod::TEXT Pod::Perldoc::ToPod?!
Aborting
 at /usr/bin/perldoc line 9.

Did a google, and came up with a thread that seemed to indicate there was a
problem when running as root, so sez to self, oh, just ignore this for now and
run them as a regular user.  

http://code.activestate.com/lists/perl5-porters/200430/

Alas, the error message in this bug seems a little more direct.  And hoping a
large and important vendor might have a little sway in persuading the powers
that be there should be a 'feature' backout.  :)

I can see it with a one liner, with a related error message:

$ perl -MPod::Usage -E 'say hello world'
Can't locate Pod/Usage.pm:   Permission denied.
BEGIN failed--compilation aborted.
$ 
$ ls -l /usr/share/perl5/vendor_perl/Pod/Usage.pm 
-rw-r--r--. 1 root root 26857 Jun 29 13:00
/usr/share/perl5/vendor_perl/Pod/Usage.pm
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=xQks7G9dZBa=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Bug 1166504] all scripts with 'use Pod::Usage' broken

2014-11-20 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1166504



--- Comment #4 from Ralf Corsepius rc040...@freenet.de ---
(In reply to Doug Maxey from comment #3)
 $ perl -MPod::Usage -E 'say hello world'
 Can't locate Pod/Usage.pm:   Permission denied.
 BEGIN failed--compilation aborted.

Sorry, I can't reproduce:
$ perl -MPod::Usage -E 'say hello world'
hello world

Do you have any perl modules installed which are not fedora-rpm provided, e.g.
are you mixing CPAN installed modules with yum provided one?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=SCBLUd5NIja=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel