ruby glitch in 10.5 and 10.6
ruby glitch in 10.5 and 10.6
- Subject: ruby glitch in 10.5 and 10.6
- From: Karl Kuehn <email@hidden>
- Date: Tue, 16 Mar 2010 12:39:45 -0700
In the InstaDMG project we just figured out a glitch in the way Ruby is installed on MacOS X, one that is probably only going to surface for installer devs working on InstaDMG/SystemImageUtility compatible packages. I thought that it might be a good idea to get it on record here:
The problem is that the path referenced from the soft link:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/site_ruby
namely:
../../../../../../../../../../Library/Ruby/Site
is incorrect. It has 10 back-references, but there are only 9 items in its path. This is not normally a problem when you are booted to that volume because the extra back-reference is silently swallowed. But in the case of InstaDMG this winds up putting the path into out protective outer folder (outside the image), and that winds up causing the installer to think a folder does not exits, so it makes one (which later causes problems when booted).
This problem exists on all versions of 10.5 and 10.6 to date, but does not seem to exist on 10.4.
So if you are making a package involving installing something to /usr/lib/ruby/site_ruby, you might want to target /Library/Ruby/Site directly. I filed a bug on this one, but do not expect that this will ever be fixed for 10.5 (even if it is fixed for 10.6).
--
Karl Kuehn
email@hidden _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden