Re: rpmbuild

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

 




 
===========================================================================
Patrick DUPRÉ | | email: pdupre@xxxxxxx
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
===========================================================================
 
 
Sent: Tuesday, July 08, 2025 at 10:40 AM
From: "Barry Scott" <barry@xxxxxxxxxxxxxxxx>
To: "Patrick Dupre" <pdupre@xxxxxxx>
Cc: users@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: rpmbuild
 
 
On 8 Jul 2025, at 09:36, Patrick Dupre <pdupre@xxxxxxx> wrote:
 
 
On 8 Jul 2025, at 09:07, Patrick Dupre <pdupre@xxxxxxx> wrote:

Thank Barry,

This what I get


+ cd PDL-Transform-Color-1.010_PD
+ /usr/bin/make install DESTDIR=/home/pdupre/rpmbuild/BUILD/perl-PDL-Transform-Color-1.010_PD-build/BUILDROOT 'INSTALL=/usr/bin/install -p'
Manifying 1 pod document
Installing /home/pdupre/rpmbuild/BUILD/perl-PDL-Transform-Color-1.010_PD-build/BUILDROOT/usr/share/perl5/vendor_perl/PDL/Transform/Color.pm
Installing /home/pdupre/rpmbuild/BUILD/perl-PDL-Transform-Color-1.010_PD-build/BUILDROOT/usr/share/man/man3/PDL::Transform::Color.3pm
Updating PDL documentation database...
Regexp modifiers "/d" and "/u" are mutually exclusive at -e line 1, at end of line
Unknown regexp modifier "/r" at -e line 1, at end of line
Unknown regexp modifier "/e" at -e line 1, at end of line
syntax error at -e line 1, near "/."
Execution of -e aborted due to compilation errors.
make: *** [Makefile:915: install] Error 255
error: Bad exit status from /var/tmp/rpm-tmp.w3c4NF (%install)

 
 
How can I have a more verbose output ?

Did you look at man make?
 
You said force echo each command.

The --debug=jobs and --no-silent look worth trying.

If that does not help then copy the make line and add --dry-run to the first copy.
It will output all the commands it wants to run.
 


My understanding is that the 
The spec file does this properly (I can reproduce the output by running perl Makefile.PL)
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}


and the problem is with
%install
%{make_install}
 
You should be able to add the extra options at the end of the %{make_install} I think.
If not replace that line in the spec file with its expanded version (it was in the log output) and add the options where make wants them.
 
%{_fixperms} $RPM_BUILD_ROOT/*

But I am lost, because I do not see which Makefile.PL could be executed.
There is only one Makefile.PL

Would be in
BUILDROOT/usr/share/perl5/vendor_perl/PDL/Transform/Color.pm ?
 
I'm not a perl person, and do not know the ins and outs of packaging it.
 
 
I guess that code line is wrong
 
 @$(PERL) -e "exit if $$ENV{DESTDIR}; use PDL::Doc; eval { PDL::Doc::add_module(q{PDL::Trasform::Color}); }; ";
 
Not easy to fix
 
 
Barry
 
 
 
Barry
 
 
Subject: Re: rpmbuild


 
On 7 Jul 2025, at 20:44, Patrick Dupre via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

I guess that it is a perl issue between 5.40 and 5.38
How can I run perl Makefile.PL with a previous version ?

I recommend you debug so you know why the command fails then fix it.
If its a make file then add make options to force it to echo each command it will run so you can see what to going wrong.

Barry
-- 
_______________________________________________
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, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux