Bug 7772 - libxml-parser-perl build failure: missing dependency ExtUtils/MakeMaker
Summary: libxml-parser-perl build failure: missing dependency ExtUtils/MakeMaker
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL: http://sprunge.us/BNXW
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-06 16:23 UTC by Vicente Olivert Riera
Modified: 2015-11-05 21:10 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Add dependency check for ExtUtils::MakeMaker (554 bytes, patch)
2015-02-10 14:07 UTC, saiberion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vicente Olivert Riera 2015-01-06 16:23:18 UTC
libxml-parser-perl seems to need perl-ExtUtils-MakeMaker in order to be built, so it fails to build on boxes which don't have perl-ExtUtils-MakeMaker installed:

Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /home/user/instance-0/output/host/usr/lib/perl /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 Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.

Full log in the ${URL} field.

Perhaps we should add a new perl-ExtUtils-MakeMaker package to Buildroot?
Comment 1 saiberion 2015-02-10 14:07:31 UTC
Created attachment 5858 [details]
Add dependency check for ExtUtils::MakeMaker

I also had this problem and fixed it by reinstalling ExtUtils module on my host.
The attached patch adds a check for this module.
Comment 2 Thomas De Schampheleire 2015-02-10 15:13:33 UTC
Vicente, saiberion: would you mind sending the proposed patch to the mailing list?
Comment 3 Vicente Olivert Riera 2015-02-10 15:31:36 UTC
(In reply to comment #2)
> Vicente, saiberion: would you mind sending the proposed patch to the mailing
> list?

Hello Thomas,

shouldn't we have an agreement on what would be the solution to this?

a) adding the perl-ExtUtils-MakeMaker package to Buildroot
b) adding a dependency check as saiberion did

I personally don't like the option b), because I like to be able to use Buildroot having the minimum packages installed. And, if we keep doing this, we could end with a loooong list of dependencies to use Buildroot. I think it's better to add the perl-ExtUtils-MakeMaker instead.

Maybe Francois Perrad has something to say about this since he seems to be the perl maintaner in Buildroot.
Comment 4 Thomas Petazzoni 2015-07-30 10:12:43 UTC
Vicente, do you have a readily available chroot in which we can run Buildroot to reproduce this problem?
Comment 5 Vicente Olivert Riera 2015-07-30 10:16:31 UTC
(In reply to comment #4)
> Vicente, do you have a readily available chroot in which we can run Buildroot
> to reproduce this problem?

No, I don't. But you can just remove perl-MakeMaker from your host machine and try to build Buildroot using a defconfig which includes libxml-parser-perl.
Comment 6 Thomas Petazzoni 2015-07-30 13:11:04 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Vicente, do you have a readily available chroot in which we can run Buildroot
> > to reproduce this problem?
> 
> No, I don't. But you can just remove perl-MakeMaker from your host machine and
> try to build Buildroot using a defconfig which includes libxml-parser-perl.

Well, on Debian/Ubuntu, perl-MakeMaker is part of the perl-modules package. If you try to remove it, it also removes perl, and Buildroot won't run without perl:

root@build:/# apt-get remove perl-modules
[...]
The following packages will be REMOVED:
  cvs git git-core liberror-perl libfile-copy-recursive-perl perl perl-modules sgml-base update-inetd xml-core

So it's basically a scenario that isn't possible.

On which system do you have this problem?
Comment 7 Vicente Olivert Riera 2015-07-30 13:18:17 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > Vicente, do you have a readily available chroot in which we can run Buildroot
> > > to reproduce this problem?
> > 
> > No, I don't. But you can just remove perl-MakeMaker from your host machine and
> > try to build Buildroot using a defconfig which includes libxml-parser-perl.
> 
> Well, on Debian/Ubuntu, perl-MakeMaker is part of the perl-modules package. If
> you try to remove it, it also removes perl, and Buildroot won't run without
> perl:
> 
> root@build:/# apt-get remove perl-modules
> [...]
> The following packages will be REMOVED:
>   cvs git git-core liberror-perl libfile-copy-recursive-perl perl perl-modules
> sgml-base update-inetd xml-core
> 
> So it's basically a scenario that isn't possible.
> 
> On which system do you have this problem?

I remember this happened on a minimal Gentoo installation, but that happened 6 months ago... You can close this bug if you want. If this happens again, I will reopen it.
Comment 8 Thomas Petazzoni 2015-11-05 21:10:13 UTC
Vicente has suggested that we can close this bug. No-one else reported this issue, as it seems on most distros the ExtUtils/MakeMaker Perl module is part of the standard Perl installation. We can always revise that later if we get more reports about this.