View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003498CMakeModulespublic2006-07-10 19:012014-06-02 08:37
ReporterOrion Poplawski 
Assigned Tojschueller 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake-2-8 
Summary0003498: FindSWIG doesn't work on Fedora Core 4+
DescriptionIn Fedora Core 4 up (and maybe earlier) swig is installed in /usr/share/swig/<version>. Where <version> is 1.3.24, 1.3.29, etc. Not sure how to change the macro to look in any subdir of /usr/share/swig.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0004430)
Orion Poplawski (reporter)
2006-07-11 12:08

Same with FindRuby, ruby is in /usr/bin/ruby and /usr/lib/ruby/1.8.
(0004432)
Orion Poplawski (reporter)
2006-07-11 12:19

Also with FindRuby, include file can be in /usr/lib64/ruby/1.8/x86_64-linux/ on x86_64.

And actually, libruby.so is called "libruby.so" not "libruby1.8.so" on Fedora.
(0004439)
Orion Poplawski (reporter)
2006-07-11 12:44

This is how I've currently patched them. Suggestions for improvements welcome.

--- cmake-2.4.2/Modules/FindRuby.cmake.fedora 2006-07-11 10:20:14.000000000 -0600
+++ cmake-2.4.2/Modules/FindRuby.cmake 2006-07-11 10:20:38.000000000 -0600
@@ -9,6 +9,7 @@

 SET(RUBY_POSSIBLE_INCLUDE_PATHS
- /usr/lib/ruby/1.8/i386-linux
+ /usr/lib/ruby/*/i386-linux
+ /usr/lib64/ruby/*/x86_64-linux
   )

 SET(RUBY_POSSIBLE_LIB_PATHS
@@ -19,12 +20,12 @@
   ${RUBY_POSSIBLE_INCLUDE_PATHS})

 FIND_LIBRARY(RUBY_LIBRARY
- NAMES ruby1.8
+ NAMES ruby
   PATHS ${RUBY_POSSIBLE_LIB_PATHS}
   )

 FIND_PROGRAM(RUBY_EXECUTABLE
- NAMES ruby1.8
+ NAMES ruby
   PATHS
   /usr/bin
   /usr/local/bin
--- cmake-2.4.2/Modules/FindSWIG.cmake.fedora 2006-07-11 10:21:11.000000000 -0600
+++ cmake-2.4.2/Modules/FindSWIG.cmake 2006-07-11 10:22:47.000000000 -0600
@@ -7,13 +7,11 @@
 SET(SWIG_FOUND FOOBAR)
 FIND_PATH(SWIG_DIR
   SWIGConfig.cmake
- /usr/share/swig1.3
- /usr/lib/swig1.3
+ /usr/share/swig/*
   /usr/local/share/swig1.3)
 FIND_PATH(SWIG_DIR
   swig.swg
- /usr/share/swig1.3
- /usr/lib/swig1.3
+ /usr/share/swig/*
   /usr/local/share/swig1.3)
 IF(EXISTS ${SWIG_DIR})
   IF("x${SWIG_DIR}x" STREQUAL "x${CMAKE_ROOT}/Modulesx")
(0005507)
Alex Neundorf (developer)
2006-10-23 19:11

In the output below it seems you're still using cmake .2.4.2.
Can you please test whether current FindRuby.cmake works for you ?
http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindRuby.cmake?rev=1.5.2.1&root=CMake&view=markup [^]
(0005650)
Orion Poplawski (reporter)
2006-11-02 15:19

Current CVS FindRuby works. FindSWIG still doesn't (and doesn't look like it has changed).
(0005655)
Alex Neundorf (developer)
2006-11-05 07:50

The Ruby part is fixed now, but I know nothing about SWIG, so can somebody else please have a look after this ?
(0013764)
Bill Hoffman (manager)
2008-10-08 09:25

Are you interested in becoming a maintainer for this:

http://www.cmake.org/Wiki/CMake:Module_Maintainers [^]
(0013766)
Orion Poplawski (reporter)
2008-10-08 11:15

Not really. If no one else steps up, I might be willing. But I really don't make much use of it other than packaging plplot for Fedora.
(0034614)
jschueller (developer)
2013-11-30 19:27

Now at least SWIG_DIR can be overriden:
http://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=5d3b0bb501aec34e452ddd1b140b90699d929621 [^]
just in case SWIG_DIR is not found by the -swiglib option.
(0034616)
jschueller (developer)
2013-11-30 19:33

Anyway it uses the -swiglib option since a while, I close the ticket.
(0036043)
Robert Maynard (manager)
2014-06-02 08:37

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2008-10-08 09:25 Bill Hoffman Note Added: 0013764
2008-10-08 11:15 Orion Poplawski Note Added: 0013766
2013-11-30 19:21 jschueller Assigned To Bill Hoffman => jschueller
2013-11-30 19:27 jschueller Note Added: 0034614
2013-11-30 19:33 jschueller Note Added: 0034616
2013-11-30 19:33 jschueller Status assigned => resolved
2013-11-30 19:33 jschueller Fixed in Version => CMake-2-8
2013-11-30 19:33 jschueller Resolution open => fixed
2014-06-02 08:37 Robert Maynard Note Added: 0036043
2014-06-02 08:37 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team