Package: cmake
Version: 2.6.0-5
Severity: minor

/usr/share/cmake-2.6/Modules/FindLua51.cmake, the module responsible for
detecting the presence of Lua 5.1, prints user messages that refer to
Lua 5.0 instead of 5.1. Thus, a user trying to compile software that
needs Lua 5.1 with liblua5.1-0-dev not present in his/her system, will
be led to the mistaken conclusion that he needs to install Lua 5.0.

The attached patch fixes the issue for me.


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

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cmake depends on:
ii  libc6                     2.7-13         GNU C Library: Shared libraries
ii  libgcc1                   1:4.3.1-2      GCC support library
ii  libidn11                  1.8+20080606-1 GNU libidn library, implementation
ii  libncurses5               5.6+20080804-1 shared libraries for terminal hand
ii  libstdc++6                4.3.1-2        The GNU Standard C++ Library v3

cmake recommends no packages.

cmake suggests no packages.

-- no debconf information
diff -uNr cmake-2.6.0/Modules/FindLua51.cmake cmake-2.6.0.patched/Modules/FindLua51.cmake
--- cmake-2.6.0/Modules/FindLua51.cmake	2008-08-25 09:35:49.000000000 +0300
+++ cmake-2.6.0.patched/Modules/FindLua51.cmake	2008-08-25 09:36:05.000000000 +0300
@@ -68,7 +68,7 @@
 INCLUDE(FindPackageHandleStandardArgs)
 # handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if 
 # all listed variables are TRUE
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua50  DEFAULT_MSG  LUA_LIBRARIES LUA_INCLUDE_DIR)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua51  DEFAULT_MSG  LUA_LIBRARIES LUA_INCLUDE_DIR)
 
 MARK_AS_ADVANCED(LUA_INCLUDE_DIR LUA_LIBRARIES LUA_LIBRARY LUA_MATH_LIBRARY)
 

Reply via email to