Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 345993

Summary: dev-util/cmake-2.8.1-r2: error when trying to find ruby library.
Product: Gentoo Linux Reporter: warptrosse <warptrosse>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: minor Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /usr/share/cmake/Modules/FindRuby.cmake patch

Description warptrosse 2010-11-18 19:22:00 UTC
When using /usr/share/cmake/Modules/FindRuby.cmake script from cmake and ruby18 an error occurs... it is unable to obtain the correct ruby library path.


Reproducible: Always

Steps to Reproduce:
1. emerge -av cmake ruby
2. add FindRuby.cmake script to your CMakeLists.txt ==> INCLUDE(FindRuby)
3. Try to access to RUBY_LIBRARY cmake variable

Actual Results:  
cmake returns NOT_FOUND

Expected Results:  
ruby library path

Attached the fix :)
Comment 1 warptrosse 2010-11-18 19:29:01 UTC
Created attachment 254749 [details, diff]
/usr/share/cmake/Modules/FindRuby.cmake patch

just add a new library name posibility
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-11-19 01:11:03 UTC
I've fixed the summary as this appears to be about ruby and not perl.

When you add a patch, please use the unified diff format (diff -u).
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2010-12-25 17:04:34 UTC
Similar patch added to main tree in version 2.8.3-r1.
Thanks for the idea.