Bug 614917 - Vendor perl paths with trailing slash break libtool
Vendor perl paths with trailing slash break libtool
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: perl (Show other bugs)
All Linux
urgent Severity medium
: rc
: ---
Assigned To: Petr Pisar
Michal Nowak
: EasyFix
Depends On:
  Show dependency treegraph
Reported: 2010-07-15 10:45 EDT by Steve Grubb
Modified: 2013-03-07 21:11 EST (History)
6 users (show)

See Also:
Fixed In Version: perl-5.10.1-115.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-11-10 16:20:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Steve Grubb 2010-07-15 10:45:32 EDT
Description of problem:
During the build of openscap, it would fail creating the perl bindings with the following error message:

test -z "/usr/lib/perl5/vendor_perl/" || /bin/mkdir -p 
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   _openscap_pm.la 
libtool: install: error: cannot install `_openscap_pm.la' to a directory not 
ending in /usr/lib/perl5/vendor_perl/

Full build log is here:
Comment 1 Petr Pisar 2010-07-15 12:39:27 EDT
This bug can be easily circumvent by removing trailing slash from vendor paths in perl configuration. Feel free to reassign to perl if you think fixing libtool is to hard.
Comment 2 Bill Nottingham 2010-07-15 12:56:40 EDT
Given that a full libtool fix would involve regenerating the local copies of libtool in many packages, I'd opt for the perl fix for now.
Comment 3 Petr Pisar 2010-07-15 13:15:24 EDT
Trivial fix:

Index: perl.spec
RCS file: /cvs/dist/rpms/perl/RHEL-6/perl.spec,v
retrieving revision 1.151
diff -u -r1.151 perl.spec
--- perl.spec   30 Jun 2010 14:57:07 -0000      1.151
+++ perl.spec   15 Jul 2010 17:12:35 -0000
@@ -1063,9 +1063,9 @@
         -Dsitelib="%{_prefix}/local/share/perl5" \
         -Dsitearch="%{_prefix}/local/%{_lib}/perl5" \
         -Dprivlib="%{privlib}" \
-        -Dvendorlib="%{privlib}/vendor_perl/" \
+        -Dvendorlib="%{privlib}/vendor_perl" \
         -Darchlib="%{archlib}" \
-        -Dvendorarch="%{archlib}/vendor_perl/" \
+        -Dvendorarch="%{archlib}/vendor_perl" \
 %if 0
         -Dprivlib="%{_prefix}/lib/perl5/%{perl_version}" \
         -Dsitelib="%{_prefix}/local/lib/perl5/site_perl/%{perl_version}" \
Comment 7 releng-rhel@redhat.com 2010-11-10 16:20:00 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.