[MacPorts] #62086: p5.28-dbd-mysql +mysql8: Error: Failed to configure p5.28-dbd-mysql: configure failure: command execution failed

MacPorts noreply at macports.org
Tue Jan 19 12:09:40 UTC 2021


#62086: p5.28-dbd-mysql +mysql8: Error: Failed to configure p5.28-dbd-mysql:
configure failure: command execution failed
---------------------------+--------------------
  Reporter:  jhoyt4        |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  p5-dbd-mysql  |
---------------------------+--------------------

Comment (by ryandesign):

 The relevant code in p5-dbd-mysql's Makefile.PL is:

 {{{
 print "Checking if libs are available for compiling...\n";

 assert_lib(
   LIBS => ($opt->{'embedded'} ? $opt->{'embedded'} : $opt->{libs}),
 );

 print "Looks good.\n\n";
 }}}

 `assert_lib` is a function from p5-dbd-mysql's dependency p5-devel-
 checklib. It's documented
 [https://metacpan.org/pod/Devel::CheckLib#assert_lib here] and its source
 code is [https://metacpan.org/release/Devel-
 CheckLib/source/lib/Devel/CheckLib.pm#L263 here]. It looks like it accepts
 additional `ccflags` and `ldflags` being passed to it, but p5-dbd-mysql
 isn't doing so. Looking at `assert_lib`'s source, I see that it adds any
 `ccflags` supplied in the function invocation to `$Config{ccflags}`, which
 are [https://metacpan.org/release/Devel-
 CheckLib/source/lib/Devel/CheckLib.pm#L476 the ccflags that perl was built
 with]. I don't see anywhere that `assert_lib` attempts to add the contents
 of the `CFLAGS` environment variable, which is what would fix this. I
 don't know if `assert_lib` should be fixed to do this (and presumably the
 same for the `LDFLAGS` environment variable) or whether such code belongs
 everywhere that `assert_lib` is invoked. (There's only one invocation in
 p5-dbd-mysql but there are a dozen ports in MacPorts that depend on p5
 -devel-checklib that might be using it.)

-- 
Ticket URL: <https://trac.macports.org/ticket/62086#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list