Updating Java for Fedora 7

I hit three snags yum upgrade‘ing Fedora Core 6 to Fedora Core 7. First, the usual “I didn’t read the release notes and PostgreSQL needs to be dumped and restored as usual and is a monstrous pain to do so after the update” problem. I should know by now to do this by hand, Fedora should have a better upgrade mechanism, and PostgreSQL should support read-only import of previous versions’ databases.

Next, ntop. I had this as a package from somewhere, and something about libpcap updates made it un-upgradable. I’ve removed it for now.

Last, Sun Java 1.5, packaged by JPackage needs to learn about new paths for the X11 utilities in Fedora 7, but the old way prevents the fonts package from meeting dependencies. Remove the sun-java-fonts package (your Java apps will all now use inappropriate fonts), do the upgrade, and then rebuild the JPackage RPM’s from the .SPEC file, using this patch:

--- java-1.5.0-sun.spec~        2006-10-02 09:32:25.000000000 -0400
+++ java-1.5.0-sun.spec 2007-08-24 18:06:24.000000000 -0400
@@ -32,7 +32,7 @@
 %define jrebindir       %{_jvmdir}/%{jrelnk}/bin
 %define jvmjardir       %{_jvmjardir}/%{name}-%{version}

-%define x11bindir       %{_prefix}/X11R6/bin
+%define x11bindir       %{_prefix}/bin
 %define x11encdir       %{_prefix}/X11R6/lib/X11/fonts/encodings
 %define fontconfigdir   %{_sysconfdir}/fonts
 %define fontdir         %{_datadir}/fonts/java

rebuild with rpmbuild -ba java-1.5.0-sun.spec (you did this already to install JPackage) and re-install the sun fonts package.

Fedora Core 6 -> Fedora 7 was the smoothest yum upgrade yet.