/usr/lib/ruby/site_ruby symlink incorrect
Originator: | ccshots | ||
Number: | rdar://9202152 | Date Originated: | 3/29/2011 |
Status: | Open | Resolved: | |
Product: | Mac OS X | Product Version: | 10.5 - current |
Classification: | UI/Usability | Reproducible: | Always |
Summary: We use InstaDMG to create a pristine, unbooted image that can be deployed. When an image is created that has never before been booted, the /usr/lib/ruby/site_ruby directory symlink is incorrect - it attempts to symlink up 10 levels and then point to the Library/Ruby folder, when it SHOULD be 9 levels and then point to the Library/Ruby folder (e.g. ../../../../../../../../../Library/Ruby/). When the machine is booted for the first time, this symlink is corrected. The problem occurs when I try to use InstaDMG to install ruby libraries in the /usr/lib/ruby/site_ruby/ directory - because the symlink is incorrect, the ruby libraries aren't installed by InstaDMG and the dependencies are broken. Steps to Reproduce: I use InstaDMG to create a pristine DMG of an un-booted 10.7 installation, but you can also use the Installer and inspect the system BEFORE it is booted for the first time. Inspect the /usr/lib/ruby/site_ruby symlink and you will see that it's incorrect Expected Results: Running "ls -la /usr/lib/ruby should list the site_ruby directory with the following: lrwxr-xr-x 1 root wheel 47 Mar 29 08:49 site_ruby -> ../../../../../../../../../Library/Ruby/Site Actual Results: Running "ls -la /usr/lib/ruby ACTUALLY lists the site_ruby directory with the following: lrwxr-xr-x 1 root wheel 47 Mar 29 08:49 site_ruby -> ../../../../../../../../../../Library/Ruby/Site Regression: This ALSO occurs in 10.5 and 10.6 too.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!