[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
Wed Jan 20 12:00:49 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 jhoyt4):

 Looking at p5-dbd-mariadb for reference as to why it works, they have this
 for assert_lib call


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

 assert_lib(
   LIBS => (join ' ', @libdirs, $main_lib, @libs),
   ccflags => (join ' ', $opt->{cflags}, ($Config{usedl} ?
 $Config{cccdlflags} : ())),
   ldflags => (join ' ', @libdirs, @ldflags, ($Config{usedl} ?
 $Config{lddlflags} : ())),
   header => \@mysql_headers,
   not_execute => 1,
 );

 print "Checking if correct version of MariaDB or MySQL client is
 present...\n";

 check_lib(
   LIBS => (join ' ', @libdirs, $main_lib),
   ccflags => $opt->{cflags},
   ldflags => (join ' ', @libdirs, @libs, @ldflags),
   header => \@mysql_headers,
   function => "\n#ifndef MYSQL_VERSION_ID\n#include
 <mysql_version.h>\n#endif\nreturn (MYSQL_VERSION_ID >= 40108) ? 0 : 1;\n",
 ) or die <<"MSG";

 ERROR: Wrong version or unable to check version of MariaDB/MySQL include
 files.
 To build DBD::MariaDB it is needed MariaDB or MySQL client >= 4.1.8.

 MSG

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

 I'm wondering if this would be patched in potentially fixing the issue?

 Also - an alternative solution would be to update the p5-dbd-mariadb
 Portfile to include mysql variants since the code claims to work with
 mysql

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


More information about the macports-tickets mailing list