Bug: Typo, wrong Symlink path to JavaControlPanel.prefPane on Mac OS X port of JDK7 Update 6 Build 22

sierkb at gmx.de sierkb at gmx.de
Tue Aug 7 07:03:28 PDT 2012


Hi Pranav!

Am 07.08.2012 um 14:39 schrieb pranav bhat:
> I think this is HFS+ only issue. I haven't seen it locally either (or haven't been able to reproduce it)

The Unix world and Unix filesystem world in general usually is (or is used to be) case sensitive. There are not few users out there, who run their OSX installation as a Unix platform and therefore intentionally run it with HFS+ case sensitive instead of the Unix-untypical case-insensitivity Apple ships per default instead since years (maybe to be forgivingly and grateful to such typos like yours, but on the long run such faults/typos shouldn't be tolerated and forgiven too long).
As a very Unix-close company you should be aware of such typos, it should be in your DNA to discover them (or let them discover) early enough through testing (as we can see in this case & very helpful for that: for instance preferring and using a _case sensitive_ HFS+ filesystem in favor to Apple's default case insensitive HFS+). :)
Please fix it (soon), and all is well.

For your convenience, here are the diffs to fix the relevant issue in the installer scripts (as far as I can discover them from the contents of the package installers):

JDK 7 Update 06.pkg (JDK), Java 7 Update 06.pkg (JRE):
jdk17006.pkg:
=================
$ diff -u preinstall_plugin.script preinstall_plugin.script.new 
--- preinstall_plugin.script	2012-08-02 04:57:23.000000000 +0200
+++ preinstall_plugin.script.new	2012-08-07 15:14:24.000000000 +0200
@@ -4,7 +4,7 @@
 MKDIR=`which mkdir`
 RM=/bin/rm
 # Remove the symlink before installation forcing ystem Preferences.app to refresh its cache
-PREF_PANE_NAME=JavaControlPanel.prefpane
+PREF_PANE_NAME=JavaControlPanel.prefPane
 PREF_PANE_DEST=/Library/PreferencePanes/


$ diff -u postinstall_plugin.script postinstall_plugin.script.new 
--- postinstall_plugin.script	2012-08-02 04:57:23.000000000 +0200
+++ postinstall_plugin.script.new	2012-08-07 15:14:10.000000000 +0200
@@ -2,8 +2,8 @@
 LN=`which ln`
 CHOWN=`which chown`
 PLUGIN_FILEPATH=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
-PREF_PANE_NAME=JavaControlPanel.prefpane
-PREF_PANE_SRC=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefpane
+PREF_PANE_NAME=JavaControlPanel.prefPane
+PREF_PANE_SRC=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefPane
 PREF_PANE_DEST=/Library/PreferencePanes/
 if [ ! -h "${PREF_PANE_DEST}/${PREF_PANE_NAME}" ]; then
     ${LN} -s "${PREF_PANE_SRC}" "${PREF_PANE_DEST}"


javaappletplugin.pkg:
================
$ diff -u preinstall preinstall.new 
--- preinstall	2012-08-02 04:55:25.000000000 +0200
+++ preinstall.new	2012-08-07 14:58:47.000000000 +0200
@@ -4,7 +4,7 @@
 MKDIR=`which mkdir`
 RM=/bin/rm
 # Remove the symlink before installation forcing ystem Preferences.app to refresh its cache
-PREF_PANE_NAME=JavaControlPanel.prefpane
+PREF_PANE_NAME=JavaControlPanel.prefPane
 PREF_PANE_DEST=/Library/PreferencePanes/
 
 # Actually removes the symlink


$ diff -u postinstall postinstall.new 
--- postinstall	2012-08-02 04:55:25.000000000 +0200
+++ postinstall.new	2012-08-07 14:58:27.000000000 +0200
@@ -2,8 +2,8 @@
 LN=`which ln`
 CHOWN=`which chown`
 PLUGIN_FILEPATH=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
-PREF_PANE_NAME=JavaControlPanel.prefpane
-PREF_PANE_SRC=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefpane
+PREF_PANE_NAME=JavaControlPanel.prefPane
+PREF_PANE_SRC=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefPane
 PREF_PANE_DEST=/Library/PreferencePanes/
 if [ ! -h "${PREF_PANE_DEST}/${PREF_PANE_NAME}" ]; then
     ${LN} -s "${PREF_PANE_SRC}" "${PREF_PANE_DEST}"



Nevertheless: keep up the good work!
Thanks in advance, sorry for the inconvenience & kindly regards,
Sierk Bornemann


More information about the macosx-port-dev mailing list