Bug 58856

Summary: About lang/ruby18's fileutils vs ruby-shim-ruby18's fileutils
Product: Ports & Packages Reporter: jfkimura
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: jfkimura
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description jfkimura 2003-11-03 03:40:18 UTC
	I am a user of ruby.
	There is a tool of fileutils.rb in lang/ruby18,
	but movement in lang/ruby16-shim-ruby18 seems to be different.
	I wanted to make it seem to be 'cp -Rp /home/fkimura /tmp'.

How-To-Repeat: 
sample script
---
#!/usr/bin/env ruby
require 'fileutils'
IN1 = "/home/fkimura"
module FileUtils16
  def FileUtils16.cp_r(src, dest, *options)
    begin
      FileUtils.cp_r(src, dest, *options)
    rescue TypeError
      optionhash = {}
      options.each { |o| optionhash[o] = true }
      FileUtils.cp_r(src, dest, optionhash)
    end
  end
end

FileUtils16.cp_r("#{IN1}/", "/tmp", :preserve)
exit 0
---

 - ruby1.6.8 + ruby-shim-ruby18 (using USE_RUBY_FEATURES=fileutils)
	It was carried out to think in this case.

 - ruby18
	A file is copied after directory of fkimura was made under /tmp in this case.
	Cannot you unify it?
Comment 1 jfkimura 2003-11-03 03:42:28 UTC
Duplicate sorry.  Please close this PR.

>Thank you very much for your problem report.
>It has the internal identification `ports/58856'.
>The individual assigned to look at your
>report is: freebsd-ports-bugs. 
>
>You can access the state of your problem report at any time
>via this link:
>
>http://www.freebsd.org/cgi/query-pr.cgi?pr=58856
>
>>Category:       ports
>>Responsible:    freebsd-ports-bugs
>>Synopsis:       About lang/ruby18's fileutils  vs  ruby-shim-ruby18's 
>>fileutils
>>Arrival-Date:   Sun Nov 02 19:40:18 PST 2003

---
Fumihiko Kimura <jfkimura@yahoo.co.jp>

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2003-11-03 04:03:50 UTC
State Changed
From-To: open->closed

Duplicate PR.