ports/146662: devel/cmake FindRuby.cmake does not find ruby18.so

Roman Neuhauser neuhauser at sigpipe.cz
Mon May 17 12:30:01 UTC 2010


>Number:         146662
>Category:       ports
>Synopsis:       devel/cmake FindRuby.cmake does not find ruby18.so
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 12:30:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Roman Neuhauser
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
FreeBSD sachmet.sigpipe.cz 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Sat Oct 31 15:38:29 CET 2009     root at sachmet.sigpipe.cz:/usr/obj/usr/src/sys/SACHMET  i386
>Description:
our ruby ports munge the library names into a form ("ruby18.so" or "ruby19.so") the upstream cmake code doesn't account for (it looks for "ruby.so" and "ruby1.8.so").
>How-To-Repeat:
cd /usr/ports/lang/ruby18 && sudo make install
cd /usr/ports/devel/cmake && sudo make install

# now use a CMakeLists.txt which includes
find_package(Ruby)
>Fix:
see attached patch, meant to be placed in /usr/ports/devel/cmake/files/patch-Modules_FindRuby.cmake

Patch attached with submission follows:

--- Modules/FindRuby.cmake.orig	2010-05-16 23:37:17.000000000 +0200
+++ Modules/FindRuby.cmake	2010-05-16 23:37:30.000000000 +0200
@@ -193,7 +193,7 @@
 
 
 # Determine the list of possible names for the ruby library
-SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT})
+SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT} ruby${_RUBY_VERSION_SHORT_NODOT})
 
 IF(WIN32)
    SET( _RUBY_MSVC_RUNTIME "" )


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list