Description of problem:
Perl cannot be updated on machine where /usr/local is an NFS mount without root write permissions, as the packages is trying to touch /usr/local/lib64/perl5
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum -y update
Updating : 4:perl-5.10.1-119.el6.x86_64 2/4
Error unpacking rpm package 4:perl-5.10.1-119.el6.x86_64
error: unpacking of archive failed on file /usr/local/share/perl5: cpio: chown
rpm -ql perl | grep /usr/local
*** Bug 717567 has been marked as a duplicate of this bug. ***
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
Does this mean that installation of perl in RHEL 6.1 is broken and isn't going to be fixed?
Apart from moving to Oracle Linux what can we do? We have Academic licenses so don't have a support representative.
This is the first time I've used Bugzilla, and I'm very disappointed.
A couple of very helpful people on the RHEL 6 mailing list suggested using rpm macros
"The file is /etc/rpm/macros.nfs, and you just need to have the content,
This has fixed my problem but RedHat is still broken.
The same thing appears broken in Fedora 15. See Bug 732799.
I agree with Iain. Rpm's that come with the distribution should not be writing to /usr/local. In a shared environment it is commonplace to have an NFS shared /usr/local partition and it should be set to read-only. Normal updates fail under these conditions.
It was already filed as #707960, not sure if you can see that one.
Not only Perl owns directories in /usr/local, so using
%_netsharedpath /usr/local might be good thing.
I'd like to fix it with next erratum of Perl.
I can't see 707960. Would be nice if this could be fixed. Why was the initial RedHat response [comment 3] so unhelpful?
It was usual triage, not unhelpful comment. Ideas about this bug differs, see for more information #732799.
We decided to disown /usr/local directories but to keep them in Perl search paths as `site' paths. Also the directories will not be created automatically by any RPM package scriptlet.
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update release.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.