From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 24 08:10:37 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FBBA16A4D0 for ; Fri, 24 Dec 2004 08:10:37 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AFD543D48 for ; Fri, 24 Dec 2004 08:10:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBO8Ab7x077588 for ; Fri, 24 Dec 2004 08:10:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBO8AbvA077585; Fri, 24 Dec 2004 08:10:37 GMT (envelope-from gnats) Resent-Date: Fri, 24 Dec 2004 08:10:37 GMT Resent-Message-Id: <200412240810.iBO8AbvA077585@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, Xin LI Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2799716A4CE for ; Fri, 24 Dec 2004 08:06:22 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 49E1F43D39 for ; Fri, 24 Dec 2004 08:06:13 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 86166 invoked by uid 0); 24 Dec 2004 07:59:09 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.98.7) by mail.freebsd.org.cn with SMTP; 24 Dec 2004 07:59:09 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 2E960130C74; Fri, 24 Dec 2004 16:06:01 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04048-19; Fri, 24 Dec 2004 16:05:49 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id 091EF13207B; Fri, 24 Dec 2004 16:05:49 +0800 (CST) Message-Id: <20041224080549.091EF13207B@beastie.frontfree.net> Date: Fri, 24 Dec 2004 16:05:49 +0800 (CST) From: Xin LI To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: kris@FreeBSD.org Subject: ports/75457: [PATCH] OPTIONize databases/libdbi-drivers X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Xin LI List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 08:10:37 -0000 >Number: 75457 >Category: ports >Synopsis: [PATCH] OPTIONize databases/libdbi-drivers >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 24 08:10:36 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Xin LI >Release: FreeBSD 5.3-delphij i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD beastie.frontfree.net 5.3-delphij FreeBSD 5.3-delphij #11: Tue Oct 26 14:12:03 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 >Description: The libdbi-drivers port requires that at least one driver is chosen or it won't install anything. >How-To-Repeat: cd /usr/ports/databases/libdbi-drivers && make install pkg_info -L libdbi-drivers\* >Fix: The attached patch does the following: - OPTIONize the port to make it easier to choose drivers. - Use libtool 1.5 rather than deprecated 1.3 - For those who don't choose any drivers, mark IGNORE to prevent installation - Grab maintainership - Thus bump PORTREVISION This should fix postfix-gps's pointyhat build as well. Index: Makefile =================================================================== RCS file: /data0/vhost/cvs/usr/home/ncvs/ports/databases/libdbi-drivers/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 23 Dec 2004 08:25:43 -0000 1.5 +++ Makefile 24 Dec 2004 07:38:24 -0000 @@ -8,23 +8,33 @@ PORTNAME= libdbi-drivers PORTVERSION= 0.7.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= delphij@FreeBSD.org COMMENT= Drivers for libdbi LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi USE_GNOME= gnometarget lthack -USE_LIBTOOL_VER= 13 +USE_LIBTOOL_VER= 15 CONFIGURE_ARGS= --disable-static \ --with-dbi-incdir=${LOCALBASE}/include/dbi DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +OPTIONS= MYSQL "With MySQL Driver" on \ + PGSQL "With PostgreSQL Driver" on \ + SQLITE "With SQLite Driver" on + +.include + +.if defined(WITHOUT_MYSQL) && defined(WITHOUT_PGSQL) && defined(WITHOUT_SQLITE) +IGNORE= You must choose at least one driver +.endif + .if defined(WITH_MYSQL) USE_MYSQL= yes CONFIGURE_ARGS+= --with-mysql @@ -60,4 +70,4 @@ post-patch: @${REINPLACE_CMD} -e 's|-O20|$$CFLAGS|g' ${WRKSRC}/configure -.include +.include >Release-Note: >Audit-Trail: >Unformatted: