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.000000000 +0000
+++ openscenegraph-2.4.0/OpenSceneGraph/src/OpenThreads/pthreads/CMakeLists.txt
2008-07-29 23:55:33.000000000 +0000
@@ -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)