=========================================================================== Patrick DUPRÉ | | email: pdupre@xxxxxxx 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@xxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > 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@xxxxxxxxxxxxxxxxxxxxxxx > Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure > _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure