Hello,
I am trying to obtain perl-PDL-Graphics-PLplot I downloaded PDL-Graphics-PLplot-0.81.tar.gz run cpanspec PDL-Graphics-PLplot-0.81.tar.gz to obtain the spec file run rpmbuild -bb perl-PDL-Graphics-PLplot.spec //////////////////////// Name: perl-PDL-Graphics-PLplot Version: 0.81 Release: 1%{?dist} Summary: PDL::Graphics::PLplot Perl module License: CHECK(Distributable) Group: Development/Libraries URL: http://search.cpan.org/dist/PDL-Graphics-PLplot/ Source0: http://www.cpan.org/modules/by-module/PDL/PDL-Graphics-PLplot-%%7Bversion%7D... BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(PDL) BuildRequires: perl(Test::More) >= 0.88 Requires: perl(PDL) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description The interface consists of two levels. A low level interface which maps closely to the PLplot C interface, and a high level, object-oriented interface which is easier to use.
%prep %setup -q -n PDL-Graphics-PLplot-%{version}
%build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} ; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ;
%{_fixperms} $RPM_BUILD_ROOT/*
%check make test
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(-,root,root,-) %doc Changes META.json plplot.pd README %{perl_vendorarch}/auto/* %{perl_vendorarch}/PDL* %{_mandir}/man3/*
%changelog * Fri Jul 15 2022 Patrick Dupre pdupre@gmx.com 0.81-1 - Specfile autogenerated by cpanspec 1.78.
///////////////////
but I get:
setting SOURCE_DATE_EPOCH=1657843200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Y8RjCw + umask 022 + cd /home/pdupre/rpmbuild/BUILD + cd /home/pdupre/rpmbuild/BUILD + rm -rf PDL-Graphics-PLplot-0.81 + /usr/bin/gzip -dc /home/pdupre/rpmbuild/SOURCES/PDL-Graphics-PLplot-0.81.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd PDL-Graphics-PLplot-0.81 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iPMqZz + umask 022 + cd /home/pdupre/rpmbuild/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/home/pdupre/rpmbuild/BUILD/PDL-Graphics-PLplot-0.81/.package_note-perl-PDL-Graphics-PLplot-0.81-1.fc36.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh perl-PDL-Graphics-PLplot 0.81-1.fc36 x86_64 + cd PDL-Graphics-PLplot-0.81 + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for PDL::Graphics::PLplot Writing MYMETA.yml and MYMETA.json + make -j4 "/usr/bin/perl" "-I/usr/lib64/perl5/vendor_perl" "-MPDL::PP=PDL::Graphics::PLplot,PDL::Graphics::PLplot,PLplot,,1" plplot.pd Running Mkbootstrap for PLplot () gcc -c "-I/usr/lib64/perl5/vendor_perl/PDL/Core" -I/usr/include/plplot -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION="0.81" -DXS_VERSION="0.81" -fPIC "-I/usr/lib64/perl5/CORE" callback.c chmod 644 "PLplot.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- PLplot.bs blib/arch/auto/PDL/Graphics/PLplot/PLplot.bs 644 touch PLplot.pm cp PLplot.pm blib/lib/PDL/Graphics/PLplot.pm "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/usr/lib64/perl5/vendor_perl/PDL/Core/typemap' PLplot.xs > PLplot.xsc gcc -c "-I/usr/lib64/perl5/vendor_perl/PDL/Core" -I/usr/include/plplot -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION="0.81" -DXS_VERSION="0.81" -fPIC "-I/usr/lib64/perl5/CORE" pp-pladv.c gcc -c "-I/usr/lib64/perl5/vendor_perl/PDL/Core" -I/usr/include/plplot -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION="0.81" -DXS_VERSION="0.81" -fPIC "-I/usr/lib64/perl5/CORE" pp-plaxes.c callback.c: In function 'pltr_callback_set': callback.c:21:1: error: format not a string literal and no format arguments [-Werror=format-security] 21 | MAKE_SETTABLE(pltr) | ^~~~~~~~~~~~~ callback.c: In function 'defined_callback_set': callback.c:76:1: error: format not a string literal and no format arguments [-Werror=format-security] 76 | MAKE_SETTABLE(defined) | ^~~~~~~~~~~~~ callback.c: In function 'mapform_callback_set': callback.c:106:1: error: format not a string literal and no format arguments [-Werror=format-security] 106 | MAKE_SETTABLE(mapform) | ^~~~~~~~~~~~~ callback.c: In function 'xform_callback_set': callback.c:175:1: error: format not a string literal and no format arguments [-Werror=format-security] 175 | MAKE_SETTABLE(xform) | ^~~~~~~~~~~~~ callback.c: In function 'labelfunc_callback_set': callback.c:213:1: error: format not a string literal and no format arguments [-Werror=format-security] 213 | MAKE_SETTABLE(labelfunc) | ^~~~~~~~~~~~~ callback.c: In function 'labelfunc_callback': callback.c:243:3: error: format not a string literal and no format arguments [-Werror=format-security] 243 | snprintf( label_text, length, (char *)SvPV_nolen(ST(0)) ); | ^~~~~~~~ cc1: some warnings being treated as errors make: *** [Makefile:344: callback.o] Error 1 make: *** Waiting for unfinished jobs.... mv PLplot.xsc PLplot.c gcc -c "-I/usr/lib64/perl5/vendor_perl/PDL/Core" -I/usr/include/plplot -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION="0.81" -DXS_VERSION="0.81" -fPIC "-I/usr/lib64/perl5/CORE" PLplot.c /usr/lib64/perl5/vendor_perl/PDL/PP.pm:673:12: warning: 'CoreSV' defined but not used [-Wunused-variable] 673 | static SV* CoreSV; PDL_COMMENT("Gets pointer to perl var holding core structure") | ^~~~~~ /usr/lib64/perl5/vendor_perl/PDL/PP.pm:672:12: warning: '__pdl_boundscheck' defined but not used [-Wunused-variable] .................. PLplot.xs:346:9: note: in definition of macro 'PDL_XS_PREAMBLE' 346 | char *objname = "PDL"; /* XXX maybe that class should actually depend on the value set \ | ^~~~~~~ error: Bad exit status from /var/tmp/rpm-tmp.iPMqZz (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.iPMqZz (%build)
Would somebody knows what is wrong? Thank.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
On 2022-07-15 14:35, Patrick Dupre wrote:
I am trying to obtain perl-PDL-Graphics-PLplot
This package was retired a long time ago in Fedora because it failed to build. https://src.fedoraproject.org/rpms/perl-PDL-Graphics-PLplot
callback.c: In function 'labelfunc_callback': callback.c:243:3: error: format not a string literal and no format arguments [-Werror=format-security] 243 | snprintf( label_text, length, (char *)SvPV_nolen(ST(0)) ); | ^~~~~~~~ cc1: some warnings being treated as errors
This is bad code. You will need to figure out how to disable that compiler option ("-Werror=format-security").
On 2022-07-15 14:35, Patrick Dupre wrote:
I am trying to obtain perl-PDL-Graphics-PLplot
This package was retired a long time ago in Fedora because it failed to build. https://src.fedoraproject.org/rpms/perl-PDL-Graphics-PLplot
Maybe, but I need to make it works. I have a key application based on this package.
callback.c: In function 'labelfunc_callback': callback.c:243:3: error: format not a string literal and no format arguments [-Werror=format-security] 243 | snprintf( label_text, length, (char *)SvPV_nolen(ST(0)) ); | ^~~~~~~~ cc1: some warnings being treated as errors
This is bad code. You will need to figure out how to disable that compiler option ("-Werror=format-security"). _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Sat, Jul 16, 2022 at 4:14 AM Patrick Dupre pdupre@gmx.com wrote:
On 2022-07-15 14:35, Patrick Dupre wrote:
I am trying to obtain perl-PDL-Graphics-PLplot
This package was retired a long time ago in Fedora because it failed to build. https://src.fedoraproject.org/rpms/perl-PDL-Graphics-PLplot
Maybe, but I need to make it works. I have a key application based on this package.
Usually failure to build from source (FTBFS) affects multiple distributions as well as Apple open-source projects (macports, homebrew). A bit of searching should tell you if the package is available in other distributions (debian is usually a good place to start). The look in the source packages for patches that fix your issue.
I've been in a similar bind many times. You need to determine whether FTBFS has a simple fix (which you may be able to steal from another distro) or will need a major effort, in which case you should consider alternatives to the failing application.
callback.c: In function 'labelfunc_callback': callback.c:243:3: error: format not a string literal and no format
arguments [-Werror=format-security]
243 | snprintf( label_text, length, (char *)SvPV_nolen(ST(0)) ); | ^~~~~~~~ cc1: some warnings being treated as errors
This is bad code. You will need to figure out how to disable that compiler option ("-Werror=format-security"). _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Sat, Jul 16, 2022 at 10:33 AM Patrick Dupre pdupre@gmx.com wrote:
Thanks for the advise.
However, I cannot see any distribution offering perl-PDL-Graphics-PLplot.
Have you asked on the PDL list?
Distributions often use different names, so searching is not trivial. It helps to have some experience with the various packaging systems.
https://aur.archlinux.org/cgit/aur.git/?h=perl-pdl-git last activity was 2015
https://ports.macports.org/port/p5.34-pdl-graphics-plplot/details/ with no maintainer, no current version, and no binary packages for current versions of macOS.
Nevertheless, this package is still active https://metacpan.org/pod/PDL::Graphics::PLplot
If I cannot compile for the source, how can I make it compatible with my distribution?
See if anyone has done the work to fix the source. If the package has been abandoned by mainstream platforms you should look for alternatives.
cpanm PDL::Graphics::PLplot
perl -MCPAN -e shell install PDL::Graphics::PLplot
Is this acceptable?
Thank
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
*Sent:* Saturday, July 16, 2022 at 1:55 PM *From:* "George N. White III" gnwiii@gmail.com *To:* "Community support for Fedora users" users@lists.fedoraproject.org *Subject:* Re: cpan build perl-PDL-Graphics-PLplot On Sat, Jul 16, 2022 at 4:14 AM Patrick Dupre pdupre@gmx.com wrote:
On 2022-07-15 14:35, Patrick Dupre wrote:
I am trying to obtain perl-PDL-Graphics-PLplot
This package was retired a long time ago in Fedora because it failed to build. https://src.fedoraproject.org/rpms/perl-PDL-Graphics-PLplot
Maybe, but I need to make it works. I have a key application based on this package.
Usually failure to build from source (FTBFS) affects multiple distributions as well as Apple open-source projects (macports, homebrew). A bit of searching should tell you if the package is available in other distributions (debian is usually a good place to start). The look in the source packages for patches that fix your issue.
I've been in a similar bind many times. You need to determine whether FTBFS has a simple fix (which you may be able to steal from another distro) or will need a major effort, in which case you should consider alternatives to the failing application.
callback.c: In function 'labelfunc_callback': callback.c:243:3: error: format not a string literal and no format
arguments [-Werror=format-security]
243 | snprintf( label_text, length, (char *)SvPV_nolen(ST(0)) ); | ^~~~~~~~ cc1: some warnings being treated as errors
This is bad code. You will need to figure out how to disable that compiler option ("-Werror=format-security"). _______________________________________________
-- George N. White III
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Sat, 16 Jul 2022 15:32:57 +0200 Patrick Dupre pdupre@gmx.com wrote:
However, I cannot see any distribution offering perl-PDL-Graphics-PLplot. Nevertheless, this package is still active https://metacpan.org/pod/PDL::Graphics::PLplot
It has many failures on CPAN Testers: http://matrix.cpantesters.org/?dist=PDL-Graphics-PLplot+0.81 Others also have problems.
Also, this distribution layout and Makefile.PL are not typical for Perl modules.
If I cannot compile for the source, how can I make it compatible with my distribution?
A bug report seems like a good start.
cpanm PDL::Graphics::PLplot perl -MCPAN -e shell install PDL::Graphics::PLplot Is this acceptable?
Does it work? Can you adapt the spec file to match?
Jim
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
On Sat, 16 Jul 2022 15:32:57 +0200 Patrick Dupre pdupre@gmx.com wrote:
However, I cannot see any distribution offering perl-PDL-Graphics-PLplot. Nevertheless, this package is still active https://metacpan.org/pod/PDL::Graphics::PLplot
It has many failures on CPAN Testers: http://matrix.cpantesters.org/?dist=PDL-Graphics-PLplot+0.81 Others also have problems.
Also, this distribution layout and Makefile.PL are not typical for Perl modules.
If I cannot compile for the source, how can I make it compatible with my distribution?
A bug report seems like a good start.
cpanm PDL::Graphics::PLplot perl -MCPAN -e shell install PDL::Graphics::PLplot Is this acceptable?
Does it work? Can you adapt the spec file to match?
cpanm PDL::Graphics::PLplot provide the error as rpmbuild
callback.c: In function ‘pltr_callback_set’: callback.c:21:1: error: format not a string literal and no format arguments [-Werror=format-security] 21 | MAKE_SETTABLE(pltr) | ^~~~~~~~~~~~~ callback.c: In function ‘defined_callback_set’: callback.c:76:1: error: format not a string literal and no format arguments [-Werror=format-security] 76 | MAKE_SETTABLE(defined) | ^~~~~~~~~~~~~ callback.c: In function ‘mapform_callback_set’: callback.c:106:1: error: format not a string literal and no format arguments [-Werror=format-security] 106 | MAKE_SETTABLE(mapform) | ^~~~~~~~~~~~~ callback.c: In function ‘xform_callback_set’: callback.c:175:1: error: format not a string literal and no format arguments [-Werror=format-security] 175 | MAKE_SETTABLE(xform) | ^~~~~~~~~~~~~ callback.c: In function ‘labelfunc_callback_set’: callback.c:213:1: error: format not a string literal and no format arguments [-Werror=format-security] 213 | MAKE_SETTABLE(labelfunc) | ^~~~~~~~~~~~~ callback.c: In function ‘labelfunc_callback’: callback.c:243:3: error: format not a string literal and no format arguments [-Werror=format-security] 243 | snprintf( label_text, length, (char *)SvPV_nolen(ST(0)) ); | ^~~~~~~~ cc1: some warnings being treated as errors
make: *** [Makefile:343: callback.o] Error 1 -> FAIL Installing PDL::Graphics::PLplot failed. See /home/pdupre/.cpanm/work/1658005526.192963/build.log for details. Retry with --force to force install it.
I could probably edit Makefile.PL to avoid: cc1: some warnings being treated as errors
by changing a compilation option?
Or should I use the --force option like suggested? Is it a gcc compiler option or a linker option? What is cc1?
Probably the spec file needs to be modified to avoid: error: Bad exit status from /var/tmp/rpm-tmp.C6g64i (%build)
%build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
Jim _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Hello,
It seems that the issue has been fixed in
PDL-Graphics-PLplot-0.83
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
Sent: Saturday, July 16, 2022 at 9:13 PM From: "James Szinger" jszinger@gmail.com To: users@lists.fedoraproject.org Subject: Re: cpan build perl-PDL-Graphics-PLplot
On Sat, 16 Jul 2022 15:32:57 +0200 Patrick Dupre pdupre@gmx.com wrote:
However, I cannot see any distribution offering perl-PDL-Graphics-PLplot. Nevertheless, this package is still active https://metacpan.org/pod/PDL::Graphics::PLplot
It has many failures on CPAN Testers: http://matrix.cpantesters.org/?dist=PDL-Graphics-PLplot+0.81 Others also have problems.
Also, this distribution layout and Makefile.PL are not typical for Perl modules.
If I cannot compile for the source, how can I make it compatible with my distribution?
A bug report seems like a good start.
cpanm PDL::Graphics::PLplot perl -MCPAN -e shell install PDL::Graphics::PLplot Is this acceptable?
Does it work? Can you adapt the spec file to match?
Jim _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure