Bug#482239: openscenegraph: FTBFS: CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE):
tag 482239 +patch thanks On May 21 15:42, Lucas Nussbaum wrote: Package: openscenegraph Version: 2.4.0-1 Severity: serious User: [EMAIL PROTECTED] Usertags: qa-ftbfs-20080520 qa-ftbfs Justification: FTBFS on i386 Entering /build/user/openscenegraph-2.4.0/OpenSceneGraph/src/OpenThreads Called from: [1] /build/user/openscenegraph-2.4.0/OpenSceneGraph/src/CMakeLists.txt Entering /build/user/openscenegraph-2.4.0/OpenSceneGraph/src/OpenThreads/pthreads -- Looking for pthread_yield Called from: [1] /build/user/openscenegraph-2.4.0/OpenSceneGraph/src/OpenThreads/pthreads/CMakeLists.txt CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE): Target cmTryCompileExec links to item -lpthread which has leading or trailing whitespace. This is now an error according to policy CMP0004. Attached patch fixes this problem. Regards, Andreas #! /bin/sh /usr/share/dpatch/dpatch-run ## cmake.dpatch by Andreas Putzo [EMAIL PROTECTED] ## ## DP: Fix for cmake policy CMP0004. @DPATCH@ diff -urNad openscenegraph-2.4.0~/OpenSceneGraph/src/OpenThreads/pthreads/CMakeLists.txt openscenegraph-2.4.0/OpenSceneGraph/src/OpenThreads/pthreads/CMakeLists.txt --- openscenegraph-2.4.0~/OpenSceneGraph/src/OpenThreads/pthreads/CMakeLists.txt 2008-07-29 23:55:09.0 + +++ openscenegraph-2.4.0/OpenSceneGraph/src/OpenThreads/pthreads/CMakeLists.txt 2008-07-29 23:55:33.0 + @@ -23,7 +23,7 @@ ) SET(CMAKE_REQUIRED_LIBRARIES_SAFE ${CMAKE_REQUIRED_LIBRARIES}) -SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) +SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) CHECK_FUNCTION_EXISTS(pthread_yield HAVE_PTHREAD_YIELD) IF(HAVE_PTHREAD_YIELD)
Bug#482239: openscenegraph: FTBFS: CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE):
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lucas Nussbaum wrote: Package: openscenegraph Version: 2.4.0-1 Severity: serious User: [EMAIL PROTECTED] Usertags: qa-ftbfs-20080520 qa-ftbfs Justification: FTBFS on i386 Hi, During a rebuild of all packages in sid, your package failed to build on i386. This rebuild was done with gcc 4.3 instead of gcc 4.2, because gcc 4.3 is now the default on most architectures (even if it's not the case on i386 yet). Consequently, many failures are caused by the switch to gcc 4.3. If you determine that this failure is caused by gcc 4.3, feel free to downgrade this bug to 'important' if your package is only built on i386, and this bug is specific to gcc 4.3 (i.e the package builds fine with gcc 4.2). Thanks for the report. I've reported this upstream and will fix the issues as soon as possible. Cheers -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFINDMM8dLMyEl6F20RAhz2AKCzF7DHFOLjd8fApJc+YBfqcYYzygCePi3t aC4OYSU12+uSDaytP3wWYx8= =StXC -END PGP SIGNATURE- begin:vcard fn:Loic Dachary n:Dachary;Loic org:pokersource adr:;;12 bd Magenta;Paris;;75010;France email;internet:[EMAIL PROTECTED] title:Senior Developer tel;work:+33 9 51 18 43 38 tel;fax:+33 1 70 61 58 79 x-mozilla-html:FALSE url:http://dachary.org/ version:2.1 end:vcard