[MacPorts] #45257: Ruby warnings from library files that differ only by case of filename
#45257: Ruby warnings from library files that differ only by case of filename ----------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: ruby lib | Port: ruby20 ----------------------+-------------------------------- It looks like there's at least one library file that shouldn't be there executing this code: {{{#!ruby #!/opt/local/bin/ruby -wU require "Digest" Digest::MD5.digest("!") }}} generates this output" {{{ /opt/local/lib/ruby2.0/2.0.0/digest.rb:4: warning: method redefined; discarding old const_missing /opt/local/lib/ruby2.0/2.0.0/Digest.rb:4: warning: previous definition of const_missing was here /opt/local/lib/ruby2.0/2.0.0/digest.rb:28: warning: method redefined; discarding old file /opt/local/lib/ruby2.0/2.0.0/Digest.rb:28: warning: previous definition of file was here /opt/local/lib/ruby2.0/2.0.0/digest.rb:35: warning: method redefined; discarding old base64digest /opt/local/lib/ruby2.0/2.0.0/Digest.rb:35: warning: previous definition of base64digest was here /opt/local/lib/ruby2.0/2.0.0/digest.rb:43: warning: method redefined; discarding old file /opt/local/lib/ruby2.0/2.0.0/Digest.rb:43: warning: previous definition of file was here /opt/local/lib/ruby2.0/2.0.0/digest.rb:62: warning: method redefined; discarding old base64digest /opt/local/lib/ruby2.0/2.0.0/Digest.rb:62: warning: previous definition of base64digest was here /opt/local/lib/ruby2.0/2.0.0/digest.rb:68: warning: method redefined; discarding old base64digest! /opt/local/lib/ruby2.0/2.0.0/Digest.rb:68: warning: previous definition of base64digest! was here /opt/local/lib/ruby2.0/2.0.0/digest.rb:86: warning: method redefined; discarding old Digest /opt/local/lib/ruby2.0/2.0.0/Digest.rb:86: warning: previous definition of Digest was here }}} `diff -qs` says `Files /opt/local/lib/ruby2.0/2.0.0/digest.rb and /opt/local/lib/ruby2.0/2.0.0/Digest.rb are identical` -- Ticket URL: <https://trac.macports.org/ticket/45257> MacPorts <http://www.macports.org/> Ports system for OS X
#45257: rub20: warnings from library files that differ only by case of filename ---------------------+----------------------- Reporter: me@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ruby20 | ---------------------+----------------------- Changes (by ryandesign@…): * keywords: ruby lib => * owner: macports-tickets@… => kimuraw@… -- Ticket URL: <https://trac.macports.org/ticket/45257#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#45257: ruby20: warnings from library files that differ only by case of filename ---------------------+----------------------- Reporter: me@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ruby20 | ---------------------+----------------------- -- Ticket URL: <https://trac.macports.org/ticket/45257#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#45257: ruby20: warnings from library files that differ only by case of filename ----------------------+----------------------- Reporter: me@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: wontfix | Keywords: Port: ruby20 | ----------------------+----------------------- Changes (by kimuraw@…): * status: new => closed * resolution: => wontfix Comment: I think this is not a problem of port:ruby20. the cause of this warnings is OS X's default filesystem called "HFS+". - HFS+ is a case insensitive filesystem. - type `LS` in terminal.app then runs `ls`. that does not mean executable file named "LS" exists. - port:ruby20 contains only "digest.rb". - you should code `require "digest"` not "Digest". {{{ % port contents ruby20 | grep -i 'digest\.rb' /opt/local/lib/ruby2.0/2.0.0/digest.rb /opt/local/lib/ruby2.0/2.0.0/openssl/digest.rb /opt/local/lib/ruby2.0/2.0.0/webrick/httpauth/htdigest.rb }}} -- Ticket URL: <https://trac.macports.org/ticket/45257#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#45257: ruby20: warnings from library files that differ only by case of filename ----------------------+----------------------- Reporter: me@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: wontfix | Keywords: Port: ruby20 | ----------------------+----------------------- Comment (by me@…): Huh, I guess I lost track of which language uses which capitalization convention for require/import/use/include/etc, and didn't notice the examples used all lower case. Not sure why Digest was the only module affected. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/45257#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts