From owner-freebsd-ports@FreeBSD.ORG Wed Aug 2 04:19:41 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 806B916A4E2 for ; Wed, 2 Aug 2006 04:19:41 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao02.cox.net (centrmmtao02.cox.net [70.168.83.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B67843D67 for ; Wed, 2 Aug 2006 04:19:34 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([24.255.149.218]) by centrmmtao02.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060802041934.JSFN22014.centrmmtao02.cox.net@mezz.mezzweb.com>; Wed, 2 Aug 2006 00:19:34 -0400 Date: Tue, 01 Aug 2006 23:19:48 -0500 To: "Jiawei Ye" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: User-Agent: Opera Mail/9.00 (Linux) Cc: freebsd ports Subject: Re: portmaster, bison, java/jdk15 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 04:19:41 -0000 On Tue, 01 Aug 2006 22:50:30 -0500, Jiawei Ye wrot= e: > I am running into 2 problems. > > 1. Some ports want devel/bison as dependancy, I installed devel/bison2= > and it works too. But when the bison1 depending port gets upgraded by > portmaster, portmaster will insist on bringing in devel/bison, instead= > of devel/bison2. Not sure what the correct solution is. > > 2. I just made a java/jdk15 yesterday, and the port gets updated > today, resulting in portmaster wanting to upgrade the port, but > portmaster will also try to install linux-sun-jdk15 as a dependancy on= > JDK15. The normal situation is that when there is a native JDK/Diablo > present in the system, JDK15 port shouldn't depend on linux-sun-jdk > for bootstrapping. I am not sure if this is a problem with the jdk15 > port itself or not. doing "make clean" in java/jdk15 does list > linux-sun-jdk as a dependancy, but simple 'make install' will not pull= > it in, is this contradictory? It is a known issue, I have reported to Doug a while back. I have a = workaround for it by hack in portmaster, but it is not a right solution.= = Someone will have to figure a good solution. However, here's what I hack= ed = in portmaster. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D while getopts 'CDFGabdfghilm:nop:r:suv' COMMAND_LINE_ARGUMENT ; do [...] F) ONLY_ME=3Dyes; ARGS=3D"-F $ARGS" ;; [...] cd $pd/$portdir if [ -n "$ONLY_ME" ]; then make depends else dependency_check fi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I just run -F on specific port that needs it. As for solution, right now I am thinking about check on each port's = conflict. Like for example: - Check on if devel/bison has any of CONFLICT. - CONFLICTS is devel/bison2, then check if devel/bison2 exists. - devel/bison2 does exist, then remove the devel/bison out of dependency check list. - Check if devel/bison2 needs to update. - [...goes on as normal...] I don't know if it's good idea. Looks like create a database is a better= = solution? Cheers, Mezz > Jiawei Ye -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org