Subject: pkg/29009: databases/unixodbc fails to build with devel/cpuflags.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <mikawa@terra.dti.ne.jp>
List: pkgsrc-bugs
Date: 01/19/2005 10:54:00
>Number: 29009
>Category: pkg
>Synopsis: databases/unixodbc fails to build with devel/cpuflags.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 19 10:54:00 +0000 2005
>Originator: Masanori Mikawa
>Release: NetBSD 2.99.14
>Organization:
>Environment:
System: NetBSD raven 2.99.14 NetBSD 2.99.14 (RAVEN) #1: Wed Jan 19 09:58:40 JST 2005 root@raven:/a/usr.obj/sys/arch/i386/compile/RAVEN i386
Architecture: i386
Machine: i386
>Description:
When the devel/cpuflags package is used,
the databases/unixodbc package fails to build.
AM_MAKEFLAGS is added to MAKE_ENV with Makefile.common of
the databases/unixodbc package. MAKE_FLAGS tied up by
the double quote character is set in AM_MAKEFLAGS. Therefore,
quoting is not corresponding, and it fails in the execution of
the compiler when the double quote character is included
in MAKE_FLAGS.
>How-To-Repeat:
Install the devel/cpuflags package,
and add the following two lines to /etc/mk.conf file.
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
.sinclude "/usr/pkg/share/mk/optimize_gcc.mk"
Build the databases/unixodbc package.
% make
( ... )
===> Building for unixodbc-2.0.11nb4
env: -ffast-math: No such file or directory
*** Error code 127
Stop.
make: stopped in /usr/pkgsrc/databases/unixodbc
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===> * log of the build
===> * /usr/tmp/databases/unixodbc/work.raven/.work.log
===>
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/databases/unixodbc
>Fix:
Apply the following patch to Makefile.common.
--- pkgsrc/databases/unixodbc/Makefile.common.orig 2004-10-15 20:54:10.000000000 +0900
+++ pkgsrc/databases/unixodbc/Makefile.common
@@ -32,7 +32,7 @@ PTHREAD_OPTS+= require
MAKE_FLAGS+= LIBLTDL="-lltdl"
MAKE_FLAGS+= INCLTDL="-I${BUILDLINK_PREFIX.ltdl}/include"
MAKE_FLAGS+= LEXLIB=""
-MAKE_ENV+= AM_MAKEFLAGS="${MAKE_FLAGS}"
+MAKE_ENV+= AM_MAKEFLAGS=${MAKE_FLAGS:Q}
UNIXODBC_DRIVERS_DIR= lib/unixodbc