From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 3 23:40:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0009216A41B for ; Mon, 3 Sep 2007 23:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D90BF13C457 for ; Mon, 3 Sep 2007 23:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l83Ne1is029611 for ; Mon, 3 Sep 2007 23:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l83Ne1eC029610; Mon, 3 Sep 2007 23:40:01 GMT (envelope-from gnats) Resent-Date: Mon, 3 Sep 2007 23:40:01 GMT Resent-Message-Id: <200709032340.l83Ne1eC029610@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Barkas Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE3FF16A417 for ; Mon, 3 Sep 2007 23:34:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A1A4213C45B for ; Mon, 3 Sep 2007 23:34:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l83NYD83045247 for ; Mon, 3 Sep 2007 23:34:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l83NYDAA045246; Mon, 3 Sep 2007 23:34:13 GMT (envelope-from nobody) Message-Id: <200709032334.l83NYDAA045246@www.freebsd.org> Date: Mon, 3 Sep 2007 23:34:13 GMT From: Nick Barkas To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/116066: [patch] Update databases/postgresql-odbc to newest version X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 23:40:02 -0000 >Number: 116066 >Category: ports >Synopsis: [patch] Update databases/postgresql-odbc to newest version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Sep 03 23:40:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Nick Barkas >Release: 7.0-CURRENT >Organization: Three Rings Design >Environment: FreeBSD freebsd-current.localdomain 7.0-CURRENT-200706 FreeBSD 7.0-CURRENT-200706 #0: Sun Jun 3 18:41:02 UTC 2007 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Here is a patch to update the postgresql-odbc port to the latest release. I also made a few other changes to the port, such as moving the parts about detecting which ODBC library to use and setting configure args accordingly to the end of the Makefile. This was necessary to get those configure args set properly such that the port could be built on my system. I also added a USE_PGSQL line so that pg_config will be found during the build process, updated the project home page in pkg-descr, and put the PLIST_FILES right into the Makefile rather than using a separate pkg-plist, since it is now only three files. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -urN postgresql-odbc.orig/Makefile postgresql-odbc/Makefile --- postgresql-odbc.orig/Makefile Fri Aug 31 17:01:11 2007 +++ postgresql-odbc/Makefile Tue Sep 4 01:25:31 2007 @@ -6,8 +6,7 @@ # PORTNAME= postgresql -PORTVERSION= 7.2.5 -PORTREVISION= 2 +PORTVERSION= 08.02.0400 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_PGSQL} MASTER_SITE_SUBDIR= odbc/versions/src @@ -18,6 +17,21 @@ MAINTAINER= girgen@FreeBSD.org COMMENT= PostgreSQL ODBC client support +USE_PGSQL= yes +USE_AUTOTOOLS= libtool:15 +USE_GMAKE= YES +GNU_CONFIGURE= YES +CONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib --enable-pthreads \ + --with-includes=${LOCALBASE}/include + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib +CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" + +PLIST_FILES= lib/psqlodbcw.a \ + lib/psqlodbcw.la \ + lib/psqlodbcw.so + # PostgreSQL ODBC support needs an ODBC driver manager to be # installed, and it supports both iODBC and unixODBC. @@ -36,21 +50,11 @@ # the others? .if defined(WITH_IODBC) LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc -CONFIGURE_ARGS+= --with-iodbc --with-odbcinst=${LOCALBASE}/etc/libiodbc +CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE} .elif defined(WITH_UNIXODBC) PKGNAMESUFFIX= -unixodbc -CONFIGURE_ARGS+= --with-unixodbc LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE} .endif - -USE_AUTOTOOLS= libtool:15 -USE_GMAKE= YES -GNU_CONFIGURE= YES -CONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib --enable-pthreads \ - --with-includes=${LOCALBASE}/include - -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS= -L${LOCALBASE}/lib -CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" .include diff -urN postgresql-odbc.orig/distinfo postgresql-odbc/distinfo --- postgresql-odbc.orig/distinfo Fri Aug 31 17:01:11 2007 +++ postgresql-odbc/distinfo Tue Sep 4 00:34:31 2007 @@ -1,3 +1,3 @@ -MD5 (postgresql/psqlodbc-7.2.5.tar.gz) = 701c7c55831652d35937c2efaeaab26d -SHA256 (postgresql/psqlodbc-7.2.5.tar.gz) = a3dac8b6a87bf9a6f79a5809e85627dad368a83e38a99716d3adbb58f601293d -SIZE (postgresql/psqlodbc-7.2.5.tar.gz) = 415885 +MD5 (postgresql/psqlodbc-08.02.0400.tar.gz) = 6f919a240760b8789ada73a5d38120fe +SHA256 (postgresql/psqlodbc-08.02.0400.tar.gz) = db5def3cd9854ada0976a20754086eda69878fba2a0ea6947aca65a18d94636f +SIZE (postgresql/psqlodbc-08.02.0400.tar.gz) = 737581 diff -urN postgresql-odbc.orig/pkg-descr postgresql-odbc/pkg-descr --- postgresql-odbc.orig/pkg-descr Fri Aug 31 17:01:11 2007 +++ postgresql-odbc/pkg-descr Mon Sep 3 23:35:39 2007 @@ -8,4 +8,4 @@ software is no longer a part thereof. It is still the offical ODBC implementation, though. -WWW: http://odbc.postgresql.org/ +WWW: http://pgfoundry.org/projects/psqlodbc/ diff -urN postgresql-odbc.orig/pkg-plist postgresql-odbc/pkg-plist --- postgresql-odbc.orig/pkg-plist Fri Aug 31 17:01:11 2007 +++ postgresql-odbc/pkg-plist Thu Jan 1 01:00:00 1970 @@ -1,6 +0,0 @@ -lib/psqlodbc.a -lib/psqlodbc.la -lib/psqlodbc.so -share/psqlodbc/odbc-drop.sql -share/psqlodbc/odbc.sql -@dirrm share/psqlodbc >Release-Note: >Audit-Trail: >Unformatted: