From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 19 13:30:04 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 0F4BB16A4CE for ; Sat, 19 Mar 2005 13:30:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0F0043D2F for ; Sat, 19 Mar 2005 13:30:03 +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 j2JDU3aA079440 for ; Sat, 19 Mar 2005 13:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2JDU3sK079409; Sat, 19 Mar 2005 13:30:03 GMT (envelope-from gnats) Resent-Date: Sat, 19 Mar 2005 13:30:03 GMT Resent-Message-Id: <200503191330.j2JDU3sK079409@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 4F61E16A4CE for ; Sat, 19 Mar 2005 13:27:31 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC73D43D46 for ; Sat, 19 Mar 2005 13:27:30 +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 <0IDL00KNVP4PH340@bgo1smout1.broadpark.no> for FreeBSD-gnats-submit@freebsd.org; Sat, 19 Mar 2005 14:22:01 +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 <0IDL00IM9PGQW1V5@bgo1sminn1.broadpark.no> for FreeBSD-gnats-submit@freebsd.org; Sat, 19 Mar 2005 14:29:14 +0100 (CET) Received: by dsa.des.no (Pony Express, from userid 666) id 7FD04A6EB5; Sat, 19 Mar 2005 14:27:29 +0100 (CET) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 0DFEE9F33D for ; Sat, 19 Mar 2005 14:27:25 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id D94AF33C3E; Sat, 19 Mar 2005 14:27:24 +0100 (CET) Message-Id: <20050319132724.D94AF33C3E@xps.des.no> Date: Sat, 19 Mar 2005 14:27:24 +0100 (CET) From: Dag-Erling Smorgrav To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/79012: [PATCH] USE_PGSQL 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:30:04 -0000 >Number: 79012 >Category: ports >Synopsis: [PATCH] USE_PGSQL 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:30:02 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_PGSQL 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-Pg Removing CLASSPATH from environment Removing JAVA_HOME from environment Removing LD_LIBRARY_PATH from environment ===> p5-DBD-Pg-1.40_1 is marked as broken: unknown PostgreSQL version: 74. ===> Cleaning for p5-DBI-1.48 ===> Cleaning for perl-5.8.6_2 ===> Cleaning for p5-DBD-Pg-1.40_1 # porteasy -r /home/pcvs -p /tmp/ports -l databases/p5-DBD-Pg Removing CLASSPATH from environment Removing JAVA_HOME from environment Removing LD_LIBRARY_PATH from environment * databases/p5-DBD-Pg (p5-DBD-Pg-1.40_1) databases/p5-DBI (p5-DBI-1.48) lang/perl5.8 (perl-5.8.6_2) (note conspicuous absence of databases/postgresql74-client and its dependencies) >Fix: Apply the attached patch. --- use_pgsql.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:24:12 -0000 @@ -1732,7 +1732,6 @@ .endif # And now we are checking if we can use it -.if exists(${PORTSDIR}/databases/postgresql${PGSQL_VER}-client) .if defined(BROKEN_WITH_PGSQL) . for VER in ${BROKEN_WITH_PGSQL} . if (${PGSQL_VER} == "${VER}") @@ -1741,9 +1740,6 @@ . endfor .endif # BROKEN_WITH_PGSQL LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client -.else -BROKEN= "unknown PostgreSQL version: ${PGSQL_VER}" -.endif # Check for correct version CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" --- use_pgsql.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: