Bug 1456589 - cpanspec uses wrong argument format for Module::Build::Tiny
Summary: cpanspec uses wrong argument format for Module::Build::Tiny
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cpanspec
Version: 25
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Šabata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-29 17:33 UTC by Charlie Brady
Modified: 2017-06-09 19:15 UTC (History)
5 users (show)

Fixed In Version: cpanspec-1.78-27.fc25 cpanspec-1.78-27.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-08 14:31:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 91412 0 None None None 2017-05-29 17:36:56 UTC

Description Charlie Brady 2017-05-29 17:33:54 UTC
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/

Comment 1 Petr Šabata 2017-05-30 07:56:33 UTC
Somehow I thought this one's been in already :)

We bundle several of post-1.78 patches but not all of them.  It might be worth rebasing to upstream master HEAD at some point.  I'm including just this patch for now.

Comment 2 Fedora Update System 2017-05-30 08:14:22 UTC
cpanspec-1.78-27.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6e9a4e80d0

Comment 3 Fedora Update System 2017-05-30 08:14:33 UTC
cpanspec-1.78-27.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b094945c06

Comment 4 Fedora Update System 2017-05-30 21:46:55 UTC
cpanspec-1.78-27.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b094945c06

Comment 5 Fedora Update System 2017-05-31 01:04:45 UTC
cpanspec-1.78-27.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6e9a4e80d0

Comment 6 Fedora Update System 2017-06-08 14:31:37 UTC
cpanspec-1.78-27.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2017-06-09 19:15:28 UTC
cpanspec-1.78-27.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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