[cmake-developers] [CMake 0012965]: FindRuby.cmake uses an incorrect method to detect if vendor directory is available.

Mantis Bug Tracker mantis at public.kitware.com
Fri Feb 17 11:18:36 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12965 
====================================================================== 
Reported By:                Thomas Dziedzic
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12965
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-02-17 11:18 EST
Last Modified:              2012-02-17 11:18 EST
====================================================================== 
Summary:                    FindRuby.cmake uses an incorrect method to detect if
vendor directory is available.
Description: 
I'm specifically talking about the following line:
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindRuby.cmake;h=c4adfd1ee985a4f147796da654fa0b97fe61ee2f;hb=HEAD#l98

It seems that opensuse is the only distro shipping a vendor-specific.rb file
which is not a standard ruby convention. Archlinux, Debian, probably no other
distro uses this except Opensuse.

I emailed the opensuse ruby maintainer and he indeed said vendor-specific.rb was
only introduced from macports. You should be checking if the following variables
exist in ruby:

RbConfig::CONFIG['vendordir']
RbConfig::CONFIG['vendorlibdir']
RbConfig::CONFIG['vendorarchdir']
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-02-17 11:18 Thomas DziedzicNew Issue                                    
======================================================================




More information about the cmake-developers mailing list