Issue #2683 has been reported by Mikhail T..

----------------------------------------
Bug #2683: install.rb ignores the --destdir option
http://projects.reductivelabs.com/issues/2683

Author: Mikhail T.
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 1.5.7
Keywords: install
destdir
Branch: 


I'm trying to install facter 1.5.7 into a non-default location under my own 
home directory. As you can see below, it tries to install the executable into a 
read-only location anyway, ignoring my --destdir specification.

> # env PREFIX=/home/mteterin /usr/local/bin/ruby install.rb --destdir 
> /home/mteterin 
> which: no rst2man.py in 
> (/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/bin:/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin)
> Changing site_dir  to /usr/local/pub/ruby__1.8.6-p287/lib/ruby/site_ruby/1.8
> install -c -m 0755 ./_tmp /usr/local/pub/ruby__1.8.6-p287/bin/facter
> /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1262:in 
> `initialize': Read-only file system - 
> /usr/local/pub/ruby__1.8.6-p287/bin/facter (Errno::EROFS)
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1262:in `open'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1262:in 
> `copy_file'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1261:in `open'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1261:in 
> `copy_file'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:463:in 
> `copy_file'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:844:in 
> `install'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1395:in 
> `fu_each_src_dest'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1411:in 
> `fu_each_src_dest0'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:1393:in 
> `fu_each_src_dest'
> from /usr/local/pub/ruby__1.8.6-p287/lib/ruby/1.8/fileutils.rb:840:in 
> `install'
> from install.rb:418:in `install_binfile'
> from install.rb:87:in `do_bins'
> from install.rb:85:in `each'
> from install.rb:85:in `do_bins'
> from install.rb:441

The work-around is to use --bindir and --sitelibdir explicitly:

env PREFIX=/home/mteterin /usr/local/bin/ruby install.rb --destdir 
/home/mteterin --bindir=/home/mteterin/bin 
--sitelibdir=/home/mteterin/lib/site_ruby

but this method is being _deprecated_ -- according to comments inside the 
install.rb script...


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to