Subject: pkg/33147: pkgsrc/myodbc does not use iODBC
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <oshima-ya@yagoto-urayama.jp>
List: pkgsrc-bugs
Date: 03/25/2006 01:35:00
>Number:         33147
>Category:       pkg
>Synopsis:       pkgsrc/myodbc does not use iODBC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 25 01:35:00 +0000 2006
>Originator:     Yasushi Oshima
>Release:        NetBSD 3.99.17
>Organization:
>Environment:
NetBSD 3.99.17 amd64
>Description:
When make pkgsrc/databases/myodbc with no PKG_OPTIONS.myodbc - it is the same as 'PKG_OPTIONS.myodbc=myodbc-iodbc', the result of configure shows as follows:

ODBC DRIVER MANAGER CONFIGURATION - LIBRARIES AND HEADERS
checking for isql... no
checking for unixODBC version... unknown
checking sql.h usability... yes
checking sql.h presence... yes
checking for sql.h... yes
checking sqlext.h usability... yes
checking sqlext.h presence... yes
checking for sqlext.h... yes
checking sqltypes.h usability... yes
checking sqltypes.h presence... yes
checking for sqltypes.h... yes
checking odbcinst.h usability... yes
checking odbcinst.h presence... yes
checking for odbcinst.h... yes
checking for SQLGetPrivateProfileString in -lodbcinst... no
   :

It is not correct when using iODBC.

>How-To-Repeat:
make configure in pkgsrc/databases/myodbc

>Fix:
See --help usage of myodbc's configure,
  --with-iODBC=DIR        Use iODBC located in DIR

it is not '--with-iodbc'.

Patch:

diff -u -r1.1 options.mk
--- options.mk  23 Jan 2006 18:53:45 -0000      1.1
+++ options.mk  25 Mar 2006 01:06:45 -0000
@@ -21,7 +21,7 @@
 
 .if !empty(PKG_OPTIONS:Mmyodbc-iodbc)
 .  include "../../databases/iodbc/buildlink3.mk"
-CONFIGURE_ARGS+=       --with-iodbc=${BUILDLINK_PREFIX.iodbc}
+CONFIGURE_ARGS+=       --with-iODBC=${BUILDLINK_PREFIX.iodbc}
 CONFIGURE_ARGS+=       --with-odbc-ini=${PKG_SYSCONFDIR.iodbc}/odbc.ini
 .endif

Results of configure:
ODBC DRIVER MANAGER CONFIGURATION - LIBRARIES AND HEADERS
checking for iodbc-config... /usr/pkg/bin/iodbc-config
checking for iodbc version... 3.52.3
checking isql.h usability... yes
checking isql.h presence... yes
checking for isql.h... yes
checking isqlext.h usability... yes
checking isqlext.h presence... yes
checking for isqlext.h... yes
checking isqltypes.h usability... yes
checking isqltypes.h presence... yes
checking for isqltypes.h... yes
checking iodbcinst.h usability... yes
checking iodbcinst.h presence... yes
checking for iodbcinst.h... yes
checking for _iodbcdm_admin_dialbox in -liodbcadm... no
checking for SQLGetPrivateProfileString in -liodbcinst... yes
  :