Bug 62877 - Update of port databases/libiodbc to version 3.51.1
Summary: Update of port databases/libiodbc to version 3.51.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Linimon
Depends on:
Reported: 2004-02-15 16:30 UTC by ebakke
Modified: 2004-03-22 19:12 UTC (History)
0 users

See Also:

libiodbc.diff (2.05 KB, patch)
2004-02-15 16:30 UTC, ebakke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ebakke 2004-02-15 16:30:24 UTC
	The port of libiodbc in the ports tree is out of date.
        The current version on the iODBC.org site is 3.51.1.

Fix: Removed files: files/patch-configure
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-02-21 07:18:01 UTC
State Changed
From-To: open->feedback

Although this seems to build correctly, nothing in the patch 
seems to modify the version of the distfile.  Is this what 
is intended? 

Also, I had to remove several files from your pkg-plist 
changes to get it to deinstall correctly: bin/iodbc-odbctest, 
include/iodbcext.h, and include/sqlucode.h.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2004-03-05 07:21:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->linimon

Now that I have applied the patch, I still can't compile on 4.9-PRERELEASE 
(essentially, the release except for some minor differences) with the below: 

cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../iodbc -I../iodbcinst -I../iodbcadm -g -DODBCVER=0x0350 -DIODBC_BUILD=10908 -DWITH_PTHREADS -D_REENTRANT -pthread -c SQLConfigDataSource.c -Wp,-MD,.deps/SQLConfigDataSource.TPlo  -fPIC -DPIC -o .libs/SQLConfigDataSource.lo 
In file included from ../include/sql.h:84, 
from ../include/iodbcinst.h:84, 
from SQLConfigDataSource.c:74: 
../include/sqltypes.h:415: #error Please make sure your system supports the wchar_t type 
gmake[1]: *** [SQLConfigDataSource.lo] Error 1 
gmake[1]: Leaving directory `/mnt/ports/databases/libiodbc/work/libiodbc-3.51.1/iodbcinst' 
gmake: *** [all-recursive] Error 1 

Does the submitter see the same problem?
Comment 3 ebakke 2004-03-22 09:41:32 UTC
On Sunday 22 February 2004 12:52, Oliver Eikemeier wrote:
> >>
> >>Please don't. This is a bento bug.
> >
> > I am quite sure there was also a problem in my diff.
> > It looks like I diffed against an intermediary step in the process.
> > So, please consider my latest version of the patch as the real one :)
> The lines are from your latest patch. For the bento bug, see PR 56392:
>   http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/56392
> It seems to be halfway fixed, but not with USE_X_PREFIX...

Finally I managed to fit this into my schedule.  I believe the included diff 
should solve the problems you and others have seen with the previous versions 
of the update.

This should fix the packing list, the wchar_t problems on 4.9 as well as the 
core problem (which was the out of date version).

If this version does not fix the problems, feel free to change it as you need 
to make it work.  I will move to Australia in a few days, and will be offline 
from Wednesday afternoon (CET) until some time in late April, so I will not 
be able to handle any requests until then.

I am aware that this patch does not update to the very latest version of the 
libiodbc library, but I will submit another update when I am back online 
(along with a maintainer-email update)

diff -ruN libiodbc.old/Makefile libiodbc/Makefile
--- libiodbc.old/Makefile	Sun Mar 21 22:09:58 2004
+++ libiodbc/Makefile	Sun Mar 21 23:54:25 2004
@@ -9,10 +9,9 @@
 #        databases/unixODBC.
 PORTNAME=	libiodbc
 CATEGORIES=	databases
-MASTER_SITES=	http://www.iodbc.org/dist/
+MASTER_SITES=	http://www.iodbc.org/downloads/iODBC/
 MAINTAINER=	ebakke@trolltech.com
 COMMENT=	An ODBC 3.x driver manager, for universal data source access
@@ -23,6 +22,7 @@
 CONFIGURE_ARGS=	--with-iodbc-inidir=${INIDIR} --with-pthread
 .if !defined(WITHOUT_GUI)
 USE_GNOME=	gtk12
@@ -33,8 +33,6 @@
-	@ ${MKDIR} ${PREFIX}/bin && ${INSTALL_PROGRAM} \
-	  ${WRKSRC}/samples/odbctest ${PREFIX}/bin/iodbc-odbctest
 	@ ${MKDIR} ${INIDIR} && \
 	  ${INSTALL_DATA} ${WRKSRC}/etc/odbc*.ini.sample ${INIDIR}
 .if !defined(NOPORTDOCS)
diff -ruN libiodbc.old/distinfo libiodbc/distinfo
--- libiodbc.old/distinfo	Sun Mar 21 22:09:58 2004
+++ libiodbc/distinfo	Sun Mar 21 22:41:04 2004
@@ -1 +1,2 @@
-MD5 (libiodbc-3.0.5.tar.gz) = fea3df52843bec96293ff37a08cf1478
+MD5 (libiodbc-3.51.1.tar.gz) = c63b6f3d7bc459bdf791517c84402160
+SIZE (libiodbc-3.51.1.tar.gz) = 540563
diff -ruN libiodbc.old/files/patch-configure libiodbc/files/patch-configure
--- libiodbc.old/files/patch-configure	Sun Mar 21 22:09:58 2004
+++ libiodbc/files/patch-configure	Thu Jan  1 01:00:00 1970
@@ -1,13 +0,0 @@
---- configure.orig	Mon Jun 11 16:30:50 2001
-+++ configure	Tue Oct  2 12:25:50 2001
-@@ -6458,8 +6458,8 @@
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
--# Always use our own libtool.
--LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-+# Always use FreeBSD's libtool port.
- # Prevent multiple expansion
diff -ruN libiodbc.old/pkg-plist libiodbc/pkg-plist
--- libiodbc.old/pkg-plist	Sun Mar 21 22:09:58 2004
+++ libiodbc/pkg-plist	Sun Mar 21 22:41:04 2004
@@ -4,10 +4,11 @@
@@ -15,8 +16,7 @@
@@ -25,8 +25,6 @@
@@ -36,3 +34,4 @@
 %%PORTDOCS%%@dirrm share/doc/libiodbc
+@dirrm etc/libiodbc

Erik H. Bakke
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2004-03-22 19:11:51 UTC
State Changed
From-To: feedback->closed

Committed, thanks.