On Thu, Mar 01, 2018 at 09:38:08AM +0100, Ralf Corsepius wrote: > Hi, > > perl-Plack fails to build in rawhide with > this error[1] > > ... > + /usr/bin/perl Build.PL --installdirs=vendor > Can't locate ExtUtils/CBuilder.pm in @INC (you may need to install the > ExtUtils::CBuilder module) (@INC contains: > /builddir/build/BUILD/Server-Starter-0.34/_build/lib /usr/local/lib64/perl5 > /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl > /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at > /usr/share/perl5/vendor_perl/Module/Build/Base.pm line 5295. > ... > > f26, f27 and f28 build fine. > > What is going on here? perl-Plack does not carry any direct dependency on > ExtUtils::CBuilder, so my guess would be a dependency is missing somewhere > else. > <https://lists.fedoraproject.org/archives/list/[email protected]/message/MWK6MLOWOIJ2UVMRILR3FAZZRE3X6OCM/> is happennning due to GCC removal from F29 build root.
If you have a package with XS modules and use Module::Build, you need to
build-require ExtUtils::CBuilder.
In case of Server-Starter, there seems to be a bug in Module::Build::Base. It
invokes auto_require() that for some reason has $self->c_source set to [], and
thus it decides it needs a compiler and hence ExtUtils::CBuilder.
I think this condition in auto_require() should be corrected:
$self->needs_compiler( keys %$xs_files || defined $self->c_source );
and also the reason why $self->c_source is [] instead of undef should be
investigated.
-- Petr
signature.asc
Description: PGP signature
_______________________________________________ perl-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
