[Bug 1456589] New: cpanspec uses wrong argument format for Module::Build:: Tiny

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
          Reporter: charlieb-fedora-bugzilla@xxxxxxxxxxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: ktdreyer@xxxxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx,
                    psabata@xxxxxxxxxx, steve@xxxxxxxxx,
                    strobert@xxxxxxxxxx



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.
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux