Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285073 - kde-base/kdelibs-4.3.1: FindRUBY.cmake fails to locate ruby installation.
Summary: kde-base/kdelibs-4.3.1: FindRUBY.cmake fails to locate ruby installation.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 10:54 UTC by Andreas Schäfer
Modified: 2010-03-31 22:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schäfer 2009-09-15 10:54:58 UTC
/usr/share/apps/cmake/modules/FindRUBY.cmake is a cmake module used by for instance kdebindings-ruby to locate the ruby installation. However, it uses a wrong library name when searching (it looks for ruby1.8, but not for ruby18).

Reproducible: Always

Steps to Reproduce:
1. emerge ~kdelibs-4.3.1
2. mkdir test && cd test
3. echo "cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH /usr/share/apps/cmake/modules)
FIND_PACKAGE (RUBY REQUIRED)" >CMakeLists.txt
4. cmake . && echo success


Actual Results:  
cmake fails:
gentryx@rei ~/find-ruby-cmake $ cmake . && echo success
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/bin/gcc
-- Check for working C compiler: /usr/lib64/ccache/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib64/ccache/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/apps/cmake/modules/FindRUBY.cmake:85 (MESSAGE):
  Could not find Ruby
Call Stack (most recent call first):
  CMakeLists.txt:3 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!


Expected Results:  
cmake should succeed:

gentryx@rei ~/find-ruby-cmake $ cmake . && echo success
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/bin/gcc
-- Check for working C compiler: /usr/lib64/ccache/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib64/ccache/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Ruby found: /usr/lib64/libruby18.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gentryx/find-ruby-cmake
success
Comment 1 Maciej Mrozowski gentoo-dev 2009-09-25 04:01:06 UTC
Well, ruby bindings are not yet packaged really... When we do it, this bug will be fixed as well.
Comment 2 Andreas Schäfer 2009-11-24 19:49:22 UTC
Still present in 4.3.3
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2010-02-16 20:43:58 UTC
(In reply to comment #2)
> Still present in 4.3.3
> 

Is fixed in the kdebindings-ruby ebuild of kde-4.4.0 (there the required environment for a ruby ebuild is set.)

Is there anything else in kdelibs that needs ruby???
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-03-31 22:31:32 UTC
All ruby packages in 4.4.x fixed afaik.