Giter Site home page Giter Site logo

cpanspec's People

Contributors

contyk avatar davorg avatar dlage avatar gavincarr avatar leont avatar seveas avatar silug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cpanspec's Issues

Deal with recent perl default removal of '.' from @INC

just need a definition in the %build section, harmless if perl doesn't remove '.'
(see: http://blogs.perl.org/users/todd_rinaldo/2016/11/what-happened-to-dot-in-inc.html)

Pretty sure that other 'build perl module' packages have this problem as well, but
when they fail I prefer to fall back to simpler tools like cpanspec.

diff -up ./cpanspec-1.78/cpanspec.orig ./cpanspec-1.78/cpanspec
--- ./cpanspec-1.78/cpanspec.orig 2020-12-26 10:40:41.443813026 -0500
+++ ./cpanspec-1.78/cpanspec 2020-12-26 10:42:08.183698533 -0500
@@ -1083,6 +1083,7 @@ END
print $spec <<END;

%build
+declare -x PERL_USE_UNSAFE_INC=1
END

 if ($usebuildpl) {

%files section with unneeded entries

Some modules don't have any /bin/ or /man3/ entries. The previous release didn't cause any troubles but the latest (taken from master branch) causes the spec file to include too many entries in the %files section, which causes rpmbuild to error out:

RPM build errors:
    File not found by glob: /home/rpmbuild/rpmbuild/BUILDROOT/perl-Mojolicious-Plugin-TtRenderer-1.56-1.el7.centos.x86_64/usr/bin/*
    File not found by glob: /home/rpmbuild/rpmbuild/BUILDROOT/perl-Mojolicious-Plugin-TtRenderer-1.56-1.el7.centos.x86_64/usr/share/man/man1/*

With latest version:

%files
%defattr(-,root,root,-)
%doc Changes cpanfile example LICENSE README
%{_bindir}/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
- Specfile autogenerated by cpanspec 1.79.

And with the previous:

%files
%defattr(-,root,root,-)
%doc Changes cpanfile dist.ini example LICENSE META.json README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
- Specfile autogenerated by cpanspec 1.78.

I didn't have time to investigate the issue further but will try to make a PR later this week if no fix is made meanwhile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.