Issue #2431 has been reported by Josh Anderson.
----------------------------------------
Bug #2431: Facter binary installs in wrong location on Mac OS 10.6 developer
seed
http://projects.reductivelabs.com/issues/2431
Author: Josh Anderson
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Trivial
Keywords:
Install.rb incorrectly places the facter binary in
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ rather than
/usr/bin.
This appears to have been an issue with 10.5 as well, because install.rb has a
work-around:
<pre>
if RUBY_PLATFORM == "universal-darwin9.0"
Config::CONFIG['bindir'] = "/usr/bin"
Config::CONFIG['sbindir'] = "/usr/sbin"
end
</pre>
It's trivial to update install.rb to work with Snow Leopard:
<pre>
if RUBY_PLATFORM == "universal-darwin9.0" or RUBY_PLATFORM ==
"universal-darwin10.0"
Config::CONFIG['bindir'] = "/usr/bin"
Config::CONFIG['sbindir'] = "/usr/sbin"
end
</pre>
Here's a diff:
<pre>
diff --git a/install.rb b/install.rb
index 3be8952..5d90c20 100755
--- a/install.rb
+++ b/install.rb
@@ -209,7 +209,7 @@ def prepare_installation
# /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin
# /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/sbin
# which is not generally where people expect executables to be installed
- if RUBY_PLATFORM == "universal-darwin9.0"
+ if RUBY_PLATFORM == "universal-darwin9.0" or RUBY_PLATFORM ==
"universal-darwin10.0"
Config::CONFIG['bindir'] = "/usr/bin"
Config::CONFIG['sbindir'] = "/usr/sbin"
end
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---