On 19.05.2014 21:51, Alexander Neundorf wrote:
On Monday, May 19, 2014 13:06:17 Kornel Benko wrote:
Am Montag, 19. Mai 2014 um 12:59:31, schrieb Nils Gladitz
<nilsglad...@gmail.com>
On 05/19/2014 12:50 PM, Kornel Benko wrote:
I am using CPACK with

        set(CPACK_DEBIAN_PACKAGE_DEBUG ON)

There is one offending output

        CPackDeb Debug: dpkg-shlibdeps version is <>

Looking into CPackDeb.cmake, the regex for getting the version
searches 'dpkg-shlibdeps version ([0-9]+\\.[0-9]+\\.[0-9]+)'
from output of 'dpkg-shlibdeps --version'.

But in my case (ubuntu 12.10), this is not matching, since the command
returns> >
        'Debian dpkg-shlibdeps Version 1.16.7.
        ...'

Could the regex please be replaced by

        'dpkg-shlibdeps [vV]ersion ([0-9]+\\.[0-9]+\\.[0-9]+)'

?

This is cmake version 3.0.20140511-g17c650
Looks like the whole string is localized
e.g. Norwegian: "Debian %s versjon %s.\n".
Yes, you are right. My localization was German.

Perhaps the whole non numeric prefix should be skipped.
+1
I guess the locale should be reset before calling the executable.
That's what's done also in other places.

Alex


I merged "dpkg-shlibdeps-locale" for testing:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=21ec5f8451884435aec7291bd3cc049389f5fb82

Nils
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to