p5.12-dbd-mysql problems with mysql51 & mysql55

Bjarne D Mathiesen macintosh at mathiesen.info
Mon Apr 30 15:00:07 PDT 2012


I'm trying to update from mysql5 to at first mysql51, subsequently
mysql55 and eventually mariadb which of course gives all kinds of
problems ;-)

I had no problem with this when it was mysql5 i used, and as mysql51
ought to be a shoe-in for mysql5, using mysql51 ought to be a no-brainer
as far as I understand.

at present, p5.12-dbd-mysql fails to configure with both mysql51 &
mysql55, and I'm at my wits end at to what goes wrong :-(

this is my modifed portfile :
+++++++++++++++++++++ portfile start ++++++++++++++++++++++++++++++
# $Id: Portfile 84963 2011-10-05 22:37:13Z jmr at macports.org $

PortSystem            1.0
PortGroup             perl5 1.0

perl5.setup           DBD-mysql 4.020
license               {Artistic-1 GPL}
maintainers           nomaintainer
description           Perl5 Database Interface to the MySQL database
long_description      ${description}

platforms             darwin

checksums             rmd160  84707487c20985808e3f9ce35fce26e1ec0777bb \
                      sha256
9299f39f3903d3e0afa6440401f88329a057834817684aa699a507dad6a993e7

if {${perl5.major} != ""} {
depends_lib-append    port:p${perl5.major}-dbi

variant mysql4 conflicts mysql51 mysql55 description {build with mysql4
port} {
    depends_lib-append       port:mysql4
}

variant mysql51 conflicts mysql4 mysql55 description {build with mysql51
port} {
    depends_lib-append       port:mysql51
    configure.args-append
--mysql_config=${prefix}/lib/mysql51/bin/mysql_config
}

variant mysql55 conflicts mysql4 mysql51 description {build with mysql55
port} {
    depends_lib-append       port:mysql55
    configure.args-append
--mysql_config=${prefix}/lib/mysql55/bin/mysql_config
}

if {![variant_isset mysql4]} {
    default_variants         +mysql51
}

pre-fetch {
    if {![variant_isset mysql4] && ![variant_isset mysql51] &&
![variant_isset mysql55]} {
        return -code error "you must select either mysql4 or a mysql5
version"
    }
}
}
+++++++++++++++++++++ portfile stop ++++++++++++++++++++++++++++++

+++++++++++++++++++++ portfile info ++++++++++++++++++++++++++++++
bash-4.2$ port info p5.12-dbd-mysql
p5.12-dbd-mysql @4.20.0 (perl)
Sub-ports:            p5.8-dbd-mysql, p5.10-dbd-mysql, p5.12-dbd-mysql,
p5.14-dbd-mysql
Variants:             mysql4, [+]mysql51, mysql55, universal

Description:          Perl5 Database Interface to the MySQL database
Homepage:             http://search.cpan.org/dist/DBD-mysql/

Library Dependencies: perl5.12, p5.12-dbi, mysql51
Platforms:            darwin
License:              Artistic-1 GPL
Maintainers:          nomaintainer at macports.org

+++++++++++++++++++++ install port ++++++++++++++++++++++++++++++
pro17:MacPorts root# port -f install p5.12-dbd-mysql @4.20.0 +mysql51
--->  Computing dependencies for p5.12-dbd-mysql
Portfile changed since last build; discarding previous state.
--->  Fetching archive for p5.12-dbd-mysql
--->  Fetching p5.12-dbd-mysql
--->  Verifying checksum(s) for p5.12-dbd-mysql
--->  Extracting p5.12-dbd-mysql
--->  Configuring p5.12-dbd-mysql
Error: Target org.macports.configure returned: configure failure: shell
command failed (see log for details)
Log for p5.12-dbd-mysql is at:
/macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-dbd-mysql/p5.12-dbd-mysql/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

+++++++++++++++++++++ logfile ++++++++++++++++++++++++++++++
DEBUG: configure phase started at Mon Apr 30 22:58:35 CEST 2012
--->  Configuring p5.12-dbd-mysql
DEBUG: Using compiler 'Mac OS X clang'
DEBUG: Executing org.macports.configure (p5.12-dbd-mysql)
DEBUG: Environment: CPATH='/macports/include' CFLAGS='-pipe -O2 -arch
x86_64' CPPFLAGS='-I/macports/include' CXXFLAGS='-pipe -O2 -arch x86_64'
LIBRARY_PATH='/macports/lib' MACOSX_DEPLOYMENT_TARGET='10.7'
CXX='/usr/bin/clang++'
CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-dbd-mysql/p5.12-dbd-mysql/work/.CC_PRINT_OPTIONS'
F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/macports/lib -arch x86_64'
FCFLAGS='-pipe -O2 -m64' OBJC='/usr/bin/clang'
GI_SCANNER_DISABLE_CACHE='1' INSTALL='/usr/bin/install -c'
PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-pipe -O2 -arch x86_64'
FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
DEBUG: Assembled command: 'cd
"/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-dbd-mysql/p5.12-dbd-mysql/work/DBD-mysql-4.020"
&& /macports/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor
--mysql_config=/macports/lib/mysql51/bin/mysql_config'
DEBUG: Executing command line:  cd
"/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-dbd-mysql/p5.12-dbd-mysql/work/DBD-mysql-4.020"
&& /macports/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor
--mysql_config=/macports/lib/mysql51/bin/mysql_config
Can't locate DBI/DBD.pm in @INC (@INC contains:
/macports/lib/perl5/site_perl/5.12.4/darwin-thread-multi-2level
/macports/lib/perl5/site_perl/5.12.4
/macports/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level
/macports/lib/perl5/vendor_perl/5.12.4
/macports/lib/perl5/5.12.4/darwin-thread-multi-2level
/macports/lib/perl5/5.12.4 /macports/lib/perl5/site_perl/5.12.3
/macports/lib/perl5/site_perl /macports/lib/perl5/vendor_perl/5.12.3
/macports/lib/perl5/vendor_perl .) at Makefile.PL line 25.
shell command " cd
"/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-dbd-mysql/p5.12-dbd-mysql/work/DBD-mysql-4.020"
&& /macports/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor
--mysql_config=/macports/lib/mysql51/bin/mysql_config " returned error 2
Error: Target org.macports.configure returned: configure failure: shell
command failed (see log for details)
DEBUG: Backtrace: configure failure: shell command failed (see log for
details)
Warning: the following items did not execute (for p5.12-dbd-mysql):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Log for p5.12-dbd-mysql is at:
/macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-dbd-mysql/p5.12-dbd-mysql/main.log

hopfully *someone* can shed some light on this
-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3


More information about the macports-dev mailing list