tag 788776 patch user ubuntu-de...@lists.ubuntu.com usertags 788776 origin-ubuntu ubuntu-patch wily thanks
Chris West (Faux) [2015-06-14 21:34 +0000]: > The package fails to build from source due to a missing linker argument > (-lx11): > > /usr/bin/ld: CMakeFiles/udav.dir/udav_wnd.cpp.o: undefined reference to > symbol 'XInitThreads' > //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing > from command line > collect2: error: ld returned 1 exit status > udav/CMakeFiles/udav.dir/build.make:1395: recipe for target 'udav/udav' failed > make[3]: *** [udav/udav] Error 1 debdiff attached. Debian maintainers, can you please forward this to upstream? I'm quite sure that a hardcoded -lX11 isn't the best solution here, but it works for the time being. Thanks! Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
* Add debian/patches/udav-link-X11.patch: udav/udav_wnd.cpp calls XInitThreads(), so we must link to -lX11. Fixes FTBFS. (Closes: #788776) diff -Nru mathgl-2.2.2.1/debian/patches/series mathgl-2.2.2.1/debian/patches/series --- mathgl-2.2.2.1/debian/patches/series 2014-03-24 00:06:43.000000000 +0100 +++ mathgl-2.2.2.1/debian/patches/series 2015-08-10 15:02:28.000000000 +0200 @@ -1 +1,2 @@ CMakeLists.txt.patch +udav-link-X11.patch diff -Nru mathgl-2.2.2.1/debian/patches/udav-link-X11.patch mathgl-2.2.2.1/debian/patches/udav-link-X11.patch --- mathgl-2.2.2.1/debian/patches/udav-link-X11.patch 1970-01-01 01:00:00.000000000 +0100 +++ mathgl-2.2.2.1/debian/patches/udav-link-X11.patch 2015-08-10 15:05:09.000000000 +0200 @@ -0,0 +1,17 @@ +Description: udav/udav_wnd.cpp calls XInitThreads(), so we must link to -lX11 +Author: Martin Pitt <martin.p...@ubuntu.com> +Bug-Debian: https://bugs.debian.org/788776 + +Index: mathgl-2.2.2.1/udav/CMakeLists.txt +=================================================================== +--- mathgl-2.2.2.1.orig/udav/CMakeLists.txt ++++ mathgl-2.2.2.1/udav/CMakeLists.txt +@@ -49,6 +49,8 @@ if(MGL_HAVE_PTHREAD) + target_link_libraries(udav ${CMAKE_THREAD_LIBS_INIT}) + endif(MGL_HAVE_PTHREAD) + ++target_link_libraries(udav X11) ++ + install( + TARGETS udav + RUNTIME DESTINATION bin
signature.asc
Description: Digital signature