hosed the jdk15 port in the pkg db
Louis LeBlanc
FreeBSD at keyslapper.net
Mon Apr 18 10:07:08 PDT 2005
On 04/18/05 11:47 AM, Louis LeBlanc sat at the `puter and typed:
> Hey fellow FreeBSD users.
>
> 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.
>
> 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.
>
> 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.
>
> 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.
>
> 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 '?'.
>
> pkgdb -u doesn't seem to do anything.
>
> 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 registered
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
--
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 = 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050418/57e4d957/attachment.bin
More information about the freebsd-questions
mailing list