https://bugzilla.redhat.com/show_bug.cgi?id=1456589
Bug ID: 1456589
Summary: cpanspec uses wrong argument format for
Module::Build::Tiny
Product: Fedora
Version: 25
Component: cpanspec
Severity: medium
Assignee: psabata(a)redhat.com
Reporter: charlieb-fedora-bugzilla(a)budge.apana.org.au
QA Contact: extras-qa(a)fedoraproject.org
CC: ktdreyer(a)ktdreyer.com,
perl-devel(a)lists.fedoraproject.org,
psabata(a)redhat.com, steve(a)silug.org,
strobert(a)strobe.net
cpanspec version is 1.78-25.fc25.
If I do 'cpanspec Mojo::SQLite' followed by 'rpmbuild -ba
perl-Mojo-SQLite.spec'
...
+ cd Mojo-SQLite-2.001
+ rm -rf
/home/speech/bradyc/rpms/BUILDROOT/perl-Mojo-SQLite-2.001-1.fc25.x86_64
+ ./Build install
destdir=/home/speech/bradyc/rpms/BUILDROOT/perl-Mojo-SQLite-2.001-1.fc25.x86_64
create_packlist=0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at /usr/share/perl5/vendor_perl/Module/Build/Tiny.pm line 119.
error: Bad exit status from /var/tmp/rpm-tmp.Xa08Ob (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.Xa08Ob (%install)
bash-4.3$
...
The problem can be fixed via these changes in the generated spec file:
--- perl-Mojo-SQLite.spec 2017-05-29 12:53:13.916904000 -0400
+++ perl-Mojo-SQLite.spec.fixed 2017-05-29 12:52:29.284925000 -0400
@@ -45,13 +45,13 @@
%setup -q -n Mojo-SQLite-%{version}
%build
-%{__perl} Build.PL installdirs=vendor
+%{__perl} Build.PL --installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
This is a known problem upstream, and a fix has been provided.
https://github.com/silug/cpanspec/pull/5/files
There are other bugfixes available here as well:
https://github.com/silug/cpanspec/commits/
--
You are receiving this mail because:
You are on the CC list for the bug.