Source: kftpgrabber
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch
User: peter.fritzs...@gmx.de
Usertags: no-add-needed
Version: 0.8.99~svn1044538-3
Severity: minor
Tags: patch fixed-upstream

The attached patch makes kftpgrabber build with ld --no-add-needed and
--as-needed.

> /usr/bin/g++   -g -O2 -g -Wall -O2 -Wnon-virtual-dtor -Wno-long-long -ansi 
> -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith 
> -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new 
> -fno-common -Werror=return-type -Woverloaded-virtual -fno-threadsafe-statics 
> -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -DQT_NO_DEBUG 
>  -Wl,--enable-new-dtags -Wl,-Bsymbolic-functions 
> CMakeFiles/kftpgrabber.dir/kftpgrabber_automoc.o 
> CMakeFiles/kftpgrabber.dir/main.o CMakeFiles/kftpgrabber.dir/mainwindow.o 
> CMakeFiles/kftpgrabber.dir/checksumverifier.o 
> CMakeFiles/kftpgrabber.dir/kftpbookmarks.o 
> CMakeFiles/kftpgrabber.dir/kftpqueue.o 
> CMakeFiles/kftpgrabber.dir/kftpqueueprocessor.o 
> CMakeFiles/kftpgrabber.dir/kftpsession.o 
> CMakeFiles/kftpgrabber.dir/kftpqueueconverter.o 
> CMakeFiles/kftpgrabber.dir/kftptransfer.o 
> CMakeFiles/kftpgrabber.dir/kftptransferfile.o 
> CMakeFiles/kftpgrabber.dir/kftptransferdir.o 
> CMakeFiles/kftpgrabber.dir/fileexistsactions.o 
> CMakeFiles/kftpgrabber.dir/statistics.o CMakeFiles/kftpgrabber.dir/site.o 
> CMakeFiles/kftpgrabber.dir/queueobject.o 
> CMakeFiles/kftpgrabber.dir/queuegroup.o 
> CMakeFiles/kftpgrabber.dir/directoryscanner.o  -o kftpgrabber -rdynamic 
> -L"/build/user-kftpgrabber_0.8.99~svn1044538-3-i386-WIYEKo/kftpgrabber-0.8.99~svn1044538/obj-i686-linux-gnu/lib"
>  /usr/lib/libkdecore.so.5.6.0 /usr/lib/libkdnssd.so.4.6.0 
> /usr/lib/libkde3support.so.4.6.0 /usr/lib/libkutils.so.4.6.0 
> /usr/lib/libkfile.so.4.6.0 -lssh2 -lssl ../lib/libbrowser.a 
> ../lib/libbookmarkwidgets.a ../lib/libqueueviewwidget.a 
> ../lib/libfailedtransferswidget.a ../lib/libwidgets.a ../lib/libengine.a 
> ../lib/libmisc.a ../lib/libcustomcommands.a ../lib/libui.a 
> ../lib/libkftpinterfaces.so.4.6.0 /usr/lib/libQt3Support.so 
> /usr/lib/libkemoticons.so.4.6.0 /usr/lib/libkio.so.5.6.0 
> /usr/lib/libQtNetwork.so /usr/lib/libQtXml.so /usr/lib/libkidletime.so.4.6.0 
> /usr/lib/libkcmutils.so.4.6.0 /usr/lib/libkprintutils.so.4.6.0 
> /usr/lib/libkdeui.so.5.6.0 /usr/lib/libkdecore.so.5.6.0 /usr/lib/libQtDBus.so 
> /usr/lib/libQtCore.so /usr/lib/libQtSvg.so /usr/lib/libQtGui.so -lssh2 
> /usr/bin/ld: ../lib/libmisc.a(pluginmanager.o): undefined reference to symbol 
> 'typeinfo for KParts::Part'
> /usr/bin/ld: note: 'typeinfo for KParts::Part' is defined in DSO 
> /usr/lib/libkparts.so.4 so try adding it to the linker command line
> /usr/lib/libkparts.so.4: could not read symbols: Invalid operation

Description: Fix FTBFS with ld --no-add-needed.
Origin: upstream, http://websvn.kde.org/?view=revision&revision=1179398 and http://websvn.kde.org/?view=revision&revision=1214766

--- kftpgrabber-0.8.99~svn1044538.orig/src/CMakeLists.txt
+++ kftpgrabber-0.8.99~svn1044538/src/CMakeLists.txt
@@ -39,8 +39,8 @@ directoryscanner.cpp
 kde4_add_executable(kftpgrabber ${kftpgrabber_SRCS})
 
 # bookmarkwidgets 
-target_link_libraries(kftpgrabber ${KDE4_KDECORE_LIBS} ${KDE4_KDNSSD_LIBRARY} ${KDE4_KDE3SUPPORT_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KFILE_LIBRARY} ${LIBSSH2_LIBRARY})
-target_link_libraries(kftpgrabber ssl browser bookmarkwidgets queueviewwidget failedtransferswidget widgets engine misc customcommands ui kftpinterfaces)
+target_link_libraries(kftpgrabber ${KDE4_KPARTS_LIBS} ${KDE4_KDECORE_LIBS} ${KDE4_KDNSSD_LIBRARY} ${KDE4_KDE3SUPPORT_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KFILE_LIBRARY} ${LIBSSH2_LIBRARY})
+target_link_libraries(kftpgrabber browser bookmarkwidgets queueviewwidget failedtransferswidget widgets engine misc customcommands ui kftpinterfaces crypto)
 
 install(TARGETS kftpgrabber ${INSTALL_TARGETS_DEFAULT_ARGS})
 
_______________________________________________
pkg-kde-extras mailing list
pkg-kde-extras@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-kde-extras

Reply via email to