Date: Sat, 19 Mar 2005 14:14:58 +0100 (CET) From: Dag-Erling Smorgrav <des@des.no> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/79011: [PATCH] USE_MYSQL breaks dependency tracking Message-ID: <20050319131458.E9D1233C3E@xps.des.no> Resent-Message-ID: <200503191320.j2JDK1WX079160@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050319131458.E9D1233C3E>