Bug 192594 - dev-lang/swig not found by dev-util/cmake
Bug#: 192594 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: stefaan@gentoo.org
Component: Ebuilds
URL: 
Summary: dev-lang/swig not found by dev-util/cmake
Keywords:  
Status Whiteboard: 
Opened: 2007-09-15 13:03 0000
Description:   Opened: 2007-09-15 13:03 0000
dev-util/cmake uses the description found in
  /usr/share/cmake/Modules/FindSWIG.cmake to locate dev-lang/swig

Currently, this says:
FIND_PATH(SWIG_DIR
  SWIGConfig.cmake
  /usr/share/swig1.3
  /usr/lib/swig1.3
  /usr/local/share/swig1.3)
FIND_PATH(SWIG_DIR
  swig.swg
  /usr/share/swig1.3
  /usr/lib/swig1.3
  /usr/local/share/swig1.3)

However, none of the paths exist, as swig is (on my system swig-1.3.31 is
installed) only located in /usr/share/swig/1.3.31.  

My fix was to create a softlink in /usr/share from swig/1.3.31 to swig1.3, but
it could also be solved in FindSWIG.cmake file. Don't know which is
preferable...

------- Comment #1 From Jakub Moc (RETIRED) 2007-09-15 13:13:03 0000 -------
cmake bugs #3498, #3637, #4145 - maybe if you report is couple more times,
they'll do something finally.

------- Comment #2 From Santiago M. Mola 2007-09-18 11:12:25 0000 -------
This bug is also holding a net-p2p/museek+ version bump.

Any chance we can apply the fix provided in
http://www.cmake.org/Bug/view.php?id=4145 by our side?

------- Comment #3 From Santiago M. Mola 2007-09-18 15:24:08 0000 -------
Anyway, a workaround for ebuilds:
cmake -DSWIG_DIR="$(swig -swiglib)"

------- Comment #4 From Wulf Krueger (RETIRED) 2007-09-20 21:30:45 0000 -------
 (In reply to comment #2)
> This bug is also holding a net-p2p/museek+ version bump.
> Any chance we can apply the fix provided in
> http://www.cmake.org/Bug/view.php?id=4145 by our side?

There would be a chance if I could see the bug but I don't get any mail from
their bugtracker when trying to reset my password or create a new account. :-/
Mailing them didn't help either. 

------- Comment #5 From Santiago M. Mola 2007-09-20 21:36:19 0000 -------
Created an attachment (id=131467) [details]
FindSWIG.cmake

Proposed patch on upstream bugtracker. Credit goes to Axel Roebel.

------- Comment #6 From Wulf Krueger (RETIRED) 2007-09-27 18:49:51 0000 -------
This is fixed in cmake-2.4.7-r2 which is currently p.masked until a dependency
has been properly keyworded. Thanks, Coldwind!

------- Comment #7 From Wulf Krueger (RETIRED) 2008-01-13 15:33:15 0000 -------
I've just unmasked cmake-2.4.7-r2 which fixes this issue.