From owner-freebsd-questions@FreeBSD.ORG Fri Nov 23 06:12:03 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DFB916A468 for ; Fri, 23 Nov 2007 06:12:03 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from kedah.mschosting.com (kedah.mschosting.com [202.75.42.90]) by mx1.freebsd.org (Postfix) with ESMTP id CB54813C458 for ; Fri, 23 Nov 2007 06:12:02 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from [87.107.63.161] (port=62995 helo=attila) by kedah.mschosting.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1IvRlZ-0004i1-B3; Fri, 23 Nov 2007 14:11:54 +0800 Date: Fri, 23 Nov 2007 09:32:21 +0330 From: Bahman Movaqar To: David Benfell Message-ID: <20071123093221.26bb1c8c@attila> In-Reply-To: <20071123053500.GA99079@parts-unknown.org> References: <20071122174115.GA23792@parts-unknown.org> <18246.7125.29876.835213@jerusalem.litteratus.org> <20071123080902.480c1816@attila> <20071123053500.GA99079@parts-unknown.org> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_XPN1xWZwAVjC_Qo5aXDNrda; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kedah.mschosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - adempiere.org X-Source: X-Source-Args: X-Source-Dir: Cc: Robert Huff , freebsd-questions@freebsd.org Subject: Re: How do I prevent a port from installing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2007 06:12:03 -0000 --Sig_XPN1xWZwAVjC_Qo5aXDNrda Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On 2007-11-22 David Benfell wrote: > On Fri, 23 Nov 2007 08:09:02 +0330, Bahman Movaqar wrote: > > On 2007-11-22 Robert Huff wrote: > >=20 > > >=20 > > > David Benfell writes: > > >=20 > > > > Also, in deinstalling jdk, I found that apache-ant relied upon > > > > it, but I couldn't see what depended on apache-ant. > > >=20 > > > "man pkg_info", paying attention to the 'r' and 'R' > > > options. > > >=20 > > > > Is there a workaround for apache-ant? > > >=20 > > > If it's a mandatory dependency - i.e. not installed > > > because of an option - the anxwer is probably "No.". > > > You could consult the maintainer for a more authoratative > > > opinion. > >=20 > > # cat /var/db/pkg/apache-ant-X.Y.Z/+REQUIRED_BY > > Where X, Y and Z are ant versions. If the file exists, the contents > > show the ports that depend on ant. If it doesn't exist, it means > > that no other port is dependant on ant. > >=20 > earth% cat /var/db/pkg/apache-ant-1.7.0_1/+REQUIRED_BY > cat: /var/db/pkg/apache-ant-1.7.0_1/+REQUIRED_BY: No such file or > directory earth%=20 So far so good. > > However, keep in mind that ant is a build (make) tool for Java > > applications. It is quite possible that there are no applications > > that depend on ant for running and at the same time it is likely > > that if you deinstall ant you won't be able to build (run?) some of > > your Java applications anymore. > >=20 > Given that I do not feel I can afford to have Java on the system, this > is a sacrifice I feel is necessary. In the process of updating ports, > apache-ant has already been reinstalled. I had installed kaffe when I > removed jdk*; but apache-ant now seems to depend on diablo-jdk. My guess is that when updating ports some Java application is also being installed which requires build from source and as a result installs ant. It'd be good to check the installed applications for a Java one. > earth% pkg_info -r diablo-jdk-1.5.0.07.01_8 > Information for diablo-jdk-1.5.0.07.01_8: >=20 > Depends on: > Dependency: xtrans-1.0.4 > Dependency: xproto-7.0.10_1 > Dependency: xextproto-7.0.2 > Dependency: javavmwrapper-2.3 >=20 > earth% cat /var/db/pkg/diablo-jdk-1.5.0.07.01_8/+REQUIRED_BY > apache-ant-1.7.0_1 > earth%=20 Obvious. > At least I do not yet see java_vm (which seems to have been the > culprit in cases where I was able to get back into the system) yet > reappearing. >=20 > When I encountered difficulty this morning, I had left both firefox > and an ports upgrade running. In the past, I had associated the > problem with a java script from Blackboard at the university where I > attend and teach, but in the situation this morning, I had not > invoked that script. >=20 > So I'm guessing that java_vm had been invoked by apache-ant which > previously depended on jdk* rather than diablo-jdk*. >=20 > I am wondering if I have any reason to believe that diablo-jdk is > sufficiently different from jdk to avoid the problem. No clue here. But I guess it's not about java_vm that your system goes blank since I'm working/developing with both diablo-jdk-1.5.0_06 and jdk-1.6.0_01 on an average machine running 6.2-p7. I'm not sure but I paste my javavm_wrapper configuration. It might be useful: # JDK 1.6 #JAVA_HOME=3D/usr/local/jdk1.6.0 #JAVA_OS=3Dnative #JAVA_VENDOR=3Dfreebsd #JAVA_VERSION=3D1.6 #JAVAVM_OPTS=3D-XX:+UseThreadPriorities # JDK 1.5 JAVA_HOME=3D/usr/local/dialblo-jdk1.5.0 JAVA_OS=3Dnative JAVA_VENDOR=3Dfreebsd JAVA_VERSION=3D1.5 JAVAVM_OPTS=3D-XX:+UseThreadPriorities --=20 Bahman Movaqar PGP KeyID: 0xDA647509 (subkeys.pgp.net) I'm not surprised that the system is so insecure; I'm surprised that anyone is surprised. -Bruce Schneier --Sig_XPN1xWZwAVjC_Qo5aXDNrda Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHRmzxSywq/tpkdQkRApBFAJ4usQhvOqQeQKAnuJkhPGG0NP+qYgCggAQm DRVOX781ByiUJwoZ1tg0bvE= =YA3d -----END PGP SIGNATURE----- --Sig_XPN1xWZwAVjC_Qo5aXDNrda--