From owner-freebsd-questions@FreeBSD.ORG Mon Apr 18 17:07:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16CA016A4CE for ; Mon, 18 Apr 2005 17:07:08 +0000 (GMT) Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68E0C43D3F for ; Mon, 18 Apr 2005 17:07:07 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from camomile.cloud9.net (localhost.cloud9.net [127.0.0.1]) by camomile.cloud9.net (Postfix) with SMTP id E748254DF for ; Mon, 18 Apr 2005 13:07:06 -0400 (EDT) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by camomile.cloud9.net (Postfix) with ESMTP id 7E33C54B3 for ; Mon, 18 Apr 2005 13:07:05 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id 38D0D1155E for ; Mon, 18 Apr 2005 13:07:05 -0400 (EDT) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55412-08 for ; Mon, 18 Apr 2005 13:07:05 -0400 (EDT) Received: by keyslapper.net (Postfix, from userid 1001) id 0A3DD11543; Mon, 18 Apr 2005 13:07:05 -0400 (EDT) Date: Mon, 18 Apr 2005 13:07:04 -0400 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20050418170704.GF72730@keyslapper.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20050418154729.GD72730@keyslapper.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="24zk1gE8NUlDmwG9" Content-Disposition: inline In-Reply-To: <20050418154729.GD72730@keyslapper.net> X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at keyslapper.net X-AntiVirus: Checked by Vexira Antivirus v1.5 Subject: Re: hosed the jdk15 port in the pkg db X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 17:07:08 -0000 --24zk1gE8NUlDmwG9 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 04/18/05 11:47 AM, Louis LeBlanc sat at the `puter and typed: > Hey fellow FreeBSD users. >=20 > I've just returned from a week off, and must have left my brain in > Orlando, because I can't for the life of me figure out how to fix this > problem. >=20 > Upon my return, I upgraded my ports tree, and noticed that portaudit > had several new packages listed with security issues. Including > jdk1.5 and portupgrade. >=20 > Well, as usual, I unset JAVA_HOME and ran the portupgrade on jdk and > several other packages listed. As always, I used the -RN flags to > make sure any dependencies were upgraded as well. I saved the > majority of packages to upgrade a little at a time. >=20 > They all went off without a hitch, except for the jdk15 port. The > portupgrade port upgraded first, but I don't imagine the new tool is > the one used in the subsequent upgrades. Normally, I upgrade > portupgrade first on its own, but this time I didn't. >=20 > Now, I have several stale dependencies for the jdk15 port. The jdk > itself is there, but it's not registered. I tried to force the > upgrade (portupgrade -fN) but it fails saying that > /usr/local/jdk1.5.0/bin/java is already registered - but not the > package. I then tried pkg_info -W /usr/local/jdk1.5.0/bin/java, but > it comes back with no output. pkg_which simply returns a '?'. >=20 > pkgdb -u doesn't seem to do anything. >=20 > So I've somehow bonked something quite thoroughly. Any suggestions on > how best to fix this - preferably without deleting all or most of the > packages I have installed? It turns out this wasn't a problem in the pkgdb at all. There was some kind of problem unregistering the java vm during the uninstall of the old jdk15 package. I finally realized that the output from the install was referring to a java vm registration, not a package registration: registervm: error: JavaVM "/usr/local/jdk1.5.0/bin/java" is already registe= red When I realized this, I ran # unregistervm /usr/local/jdk1.5.0/bin/java then `make install` from /usr/ports/java/jdk15/ and everything worked. Lou --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Please send off-list email to: leblanc at keyslapper d.t net Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Outside of a dog, a book is a man's best friend. Inside a dog it's too dark to read. -- Groucho Marx --24zk1gE8NUlDmwG9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCY+k4r4Wi/oDI2aIRAhZuAJ9G7vQ3fzGGUuuYo6UgA1BoPoikXQCfVsMt xBVZfgf7ta/3nzkXAOiQ5MY= =Slyw -----END PGP SIGNATURE----- --24zk1gE8NUlDmwG9--