Date: Mon, 17 May 2010 12:25:12 GMT From: Roman Neuhauser <neuhauser@sigpipe.cz> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/146662: devel/cmake FindRuby.cmake does not find ruby18.so Message-ID: <201005171225.o4HCPClO078964@www.freebsd.org> Resent-Message-ID: <201005171230.o4HCU0Rj090106@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005171225.o4HCPClO078964>