Package: cmake
Version: 2.4.5-1
Severity: normal
Tags: patch

Hi,

while working on the packaging of VXL I found that the cmake module
FindMPEG2.cmake uses a fragile path for including FindSDL.cmake.

I propose to apply the following patch:

--- FindMPEG2.cmake.old 2006-12-04 22:58:24.000000000 +0100
+++ FindMPEG2.cmake     2007-04-13 22:30:23.000000000 +0200
@@ -35,7 +35,7 @@

     #some native mpeg2 installations will depend
     #on libSDL, if found, add it in.
-    INCLUDE( ${MODULE_PATH}/FindSDL.cmake )
+    INCLUDE( ${CMAKE_ROOT}/Modules/FindSDL.cmake )
     IF(SDL_FOUND)
       SET( MPEG2_LIBRARIES ${MPEG2_LIBRARIES} ${SDL_LIBRARY})
     ENDIF(SDL_FOUND)

VXL 1.8.0 redefines the MODULE_PATH variable and therefore fails to build on
Debian systems. As this name is rather general it could possibly happen
with other software as well.

Applying the above patch seems to be reasonable to me as most other
cmake modules choose this way as well:

[EMAIL PROTECTED]:~$ grep -R {CMAKE_ROOT}/Modules 
/usr/share/cmake-2.4/Modules/* |wc -l
50


Thanks,

Michael


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (600, 'testing'), (200, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-k7 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cmake depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libgcc1                     1:4.1.1-21   GCC support library
ii  libncurses5                 5.5-5        Shared libraries for terminal hand
ii  libstdc++6                  4.1.1-21     The GNU Standard C++ Library v3

cmake recommends no packages.

-- no debconf information

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to