pkgsrc-Users archive

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

(www/ap2-perl) Please repair your Module::CoreList at lib/Apache2/Build.pm line 50



I'm getting following message when packaging
at www/ap2-perl

=> Checking for portability problems in extracted files
Please repair your Module::CoreList at lib/Apache2/Build.pm line 50.
BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 65.
Compilation failed in require at Makefile.PL line 38.
BEGIN failed--compilation aborted at Makefile.PL line 38.
*** Error code 255

At reading related lines, adding
+MAKE_ENV+=             MP_USE_MY_EXTUTILS_EMBED=1
will get this packaged.

Am I doing correct ?, thanks a lot,

The environment is:
  NetBSD/amd64 7.0
  apache-2.4.20       Apache HTTP (Web) server, version 2.4
---
mef%NetBSD.org@localhost
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.


CF-S9@makoto 11:16:22/160919(..www/ap2-perl)% (cd /export/WRKOBJDIR/www/ap2-perl/work/; cat -n mod_perl-2.0.9/lib/Apache2/Build.pm |sed -n 30,59p)
    30
    31  BEGIN {                         # check for a sane ExtUtils::Embed
    32      unless ($ENV{MP_USE_MY_EXTUTILS_EMBED}) {
    33          my ($version, $path)=(ExtUtils::Embed->VERSION,
    34                                $INC{q{ExtUtils/Embed.pm}});
    35          my $msg=<<"EOF";
    36  I have found ExtUtils::Embed $version at
    37
    38    $path
    39
    40  This is probably not the right one for this perl version. Please make sure
    41  there is only one version of this module installed and that it is the one
    42  that comes with this perl version.
    43
    44  If you insist on using the ExtUtils::Embed as is set the environment
    45  variable MP_USE_MY_EXTUTILS_EMBED=1 and try again.
    46
    47  EOF
    48          if (eval {require Module::CoreList}) {
    49              my $req=$Module::CoreList::version{$]}->{q/ExtUtils::Embed/};
    50              die "Please repair your Module::CoreList" unless $req;
    51              unless ($version eq $req) {
    52                  $msg.=("Details: expecting ExtUtils::Embed $req ".
    53                         "(according to Module::CoreList)\n\n");
    54                  die $msg;
    55              }
    56          }
    57          else {
    58              my $req=$Config{privlib}.'/ExtUtils/Embed.pm';
    59              unless ($path eq $req) {

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/ap2-perl/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile	9 Jul 2016 06:39:10 -0000	1.52
+++ Makefile	19 Sep 2016 03:27:37 -0000
@@ -20,6 +20,7 @@
 
 MAKE_PARAMS+=		MP_APXS=${APXS}
 MAKE_PARAMS+=		MP_APR_CONFIG=${BUILDLINK_DIR}/bin/apr-config
+MAKE_ENV+=		MP_USE_MY_EXTUTILS_EMBED=1
 
 .include "../../mk/apache.mk"
 


Home | Main Index | Thread Index | Old Index