From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 19 13:20:02 2005 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 BD92216A4CE for ; Sat, 19 Mar 2005 13:20:02 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FCA643D4C for ; Sat, 19 Mar 2005 13:20:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2JDK1mY079161 for ; Sat, 19 Mar 2005 13:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2JDK1WX079160; Sat, 19 Mar 2005 13:20:01 GMT (envelope-from gnats) Resent-Date: Sat, 19 Mar 2005 13:20:01 GMT Resent-Message-Id: <200503191320.j2JDK1WX079160@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, Dag-Erling Smorgrav Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4D5316A4CE for ; Sat, 19 Mar 2005 13:15:07 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A16A43D31 for ; Sat, 19 Mar 2005 13:15:05 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IDL00K4OOJZH340@bgo1smout1.broadpark.no> for FreeBSD-gnats-submit@freebsd.org; Sat, 19 Mar 2005 14:09:35 +0100 (CET) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IDL00ITHOW0P996@bgo1sminn1.broadpark.no> for FreeBSD-gnats-submit@freebsd.org; Sat, 19 Mar 2005 14:16:48 +0100 (CET) Received: by dsa.des.no (Pony Express, from userid 666) id 8BBFEA900D; Sat, 19 Mar 2005 14:15:03 +0100 (CET) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 120F5A901B for ; Sat, 19 Mar 2005 14:14:59 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id E9D1233C3E; Sat, 19 Mar 2005 14:14:58 +0100 (CET) Message-Id: <20050319131458.E9D1233C3E@xps.des.no> Date: Sat, 19 Mar 2005 14:14:58 +0100 (CET) From: Dag-Erling Smorgrav To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/79011: [PATCH] USE_MYSQL breaks dependency tracking X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dag-Erling Smorgrav List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 13:20:02 -0000 >Number: 79011 >Category: ports >Synopsis: [PATCH] USE_MYSQL breaks dependency tracking >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 19 13:20:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Dag-Erling Smorgrav >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD xps.des.no 6.0-CURRENT FreeBSD 6.0-CURRENT #20: Mon Mar 14 17:30:44 CET 2005 des@xps.des.no:/usr/obj/usr/src/sys/xps i386 ports-current >Description: If USE_MYSQL is set to a version which is not currently present in the ports tree, the port is marked BROKEN. This makes it impossible to use 'make -VLIB_DEPENDS' in a partial tree to determine which dependencies need updating, and breaks porteasy. >How-To-Repeat: # porteasy -r /home/pcvs -p /tmp/ports -bu databases/p5-DBD-mysql Removing CLASSPATH from environment Removing JAVA_HOME from environment Removing LD_LIBRARY_PATH from environment ===> p5-DBD-mysql-2.9004_1 is marked as broken: unknown MySQL version: 40. ===> Cleaning for p5-DBI-1.48 ===> Cleaning for perl-5.8.6_2 ===> Cleaning for p5-DBD-mysql-2.9004_1 # porteasy -r /home/pcvs -p /tmp/ports -lu databases/p5-DBD-mysql * databases/p5-DBD-mysql (p5-DBD-mysql-2.9004_1) databases/p5-DBI (p5-DBI-1.48) lang/perl5.8 (perl-5.8.6_2) (note conspicuous absence of databases/mysql40-client) >Fix: Apply the attached patch. --- use_mysql.diff begins here --- Index: Mk/bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.511 diff -u -r1.511 bsd.port.mk --- Mk/bsd.port.mk 17 Mar 2005 23:22:07 -0000 1.511 +++ Mk/bsd.port.mk 19 Mar 2005 13:07:48 -0000 @@ -1697,7 +1697,6 @@ .endif # And now we are checking if we can use it -.if exists(${PORTSDIR}/databases/mysql${MYSQL_VER}-client) .if defined(BROKEN_WITH_MYSQL) . for VER in ${BROKEN_WITH_MYSQL} . if (${MYSQL_VER} == "${VER}") @@ -1706,9 +1705,6 @@ . endfor .endif # BROKEN_WITH_MYSQL LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client -.else -BROKEN= "unknown MySQL version: ${MYSQL_VER}" -.endif # Check for correct libs .endif # USE_MYSQL .if defined(USE_PGSQL) --- use_mysql.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: