Summary: | kde-misc/socket-sentry-0.9.3-r1 with kde-base/kdelibs-4.14.11 - CMake Error at /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:1471 (add_custom_target): add_custom_target cannot create target "uninstall" because another target with the same name a | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | lmiphay |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | masked for removal on 2015/10/01 | ||
Package list: | Runtime testing required: | --- | |
Attachments: |
CMakeError.log
CMakeOutput.log emerge-history.txt kde-misc:socket-sentry-0.9.3-r1:20150901-093836.log socket-sentry-kdelibs-4.14.11.patch Patch to allow socket-sentry build for KDE 4.14 add the cmake targets patch to the socket-sentry ebuild |
Description
Toralf Förster
2015-09-01 12:32:51 UTC
Created attachment 410752 [details]
CMakeError.log
Created attachment 410754 [details]
CMakeOutput.log
Created attachment 410756 [details]
emerge-history.txt
Created attachment 410758 [details]
kde-misc:socket-sentry-0.9.3-r1:20150901-093836.log
Created attachment 410766 [details, diff]
socket-sentry-kdelibs-4.14.11.patch
Attached is a patch solving the kdelibs-4.14.11 incompatibility, but I'm hitting another build failure, possibly because I don't have Plasma 4 installed.
yep, : FAILED: : && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed socketsentry-service/CMakeFiles/socksent-client.dir/src/SsReceiver.cpp.o -o socketsentry-service/socksent-client -rdynamic lib/libsocketsent-client-common.so.0.9.3 /usr/lib64/qt4/libQtTest.so /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtNetwork.so /usr/lib64/qt4/libQtCore.so -lpthread -Wl,-rpath,/var/tmp/portage/kde-misc/socket-sentry-0.9.3-r1/work/socket-sentry-0.9.3_build/lib:/usr/lib64/qt4: && : socketsentry-service/CMakeFiles/socksent-client.dir/src/SsReceiver.cpp.o: In function `main': SsReceiver.cpp:(.text.startup+0x236): undefined reference to `WatcherClient::WatcherClient(QDBusConnection const&, QObject*)' SsReceiver.cpp:(.text.startup+0x274): undefined reference to `WatcherClient::findDevices(QString&)' SsReceiver.cpp:(.text.startup+0x2c9): undefined reference to `WatcherClientConsolePrinter::WatcherClientConsolePrinter(WatcherClient*)' SsReceiver.cpp:(.text.startup+0x33e): undefined reference to `WatcherClient::~WatcherClient()' SsReceiver.cpp:(.text.startup+0x55b): undefined reference to `WatcherClientConsolePrinter::renew(QString const&)' collect2: error: ld returned 1 exit status /var/tmp/portage/kde-misc/socket-sentry-0.9.3-r1/work/socketsentry-0.9.3/socketsentry-service/src/Watcher.cpp:77:6: warning: unused parameter ‘event’ [-Wunused-parameter] void Watcher::timerEvent(QTimerEvent* event) { ^ ninja: build stopped: subcommand failed. Created attachment 410844 [details, diff] Patch to allow socket-sentry build for KDE 4.14 This one liner allows me build/install/run socket-sentry: --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ project (SocketSentry) cmake_minimum_required (VERSION 2.6.4) +cmake_policy(SET CMP0002 OLD) enable_testing() # Initialize project version References: [1] email thread starting here: https://mail.kde.org/pipermail/kde-buildsystem/2010-June/007110.html [2] http://www.cmake.org/cmake/help/v3.0/policy/CMP0002.html Created attachment 410846 [details, diff]
add the cmake targets patch to the socket-sentry ebuild
(In reply to Paul Healy from comment #7) > Created attachment 410844 [details, diff] [details, diff] > Patch to allow socket-sentry build for KDE 4.14 Please see comment #5. (In reply to Michael Palimaka (kensington) from comment #9) > (In reply to Paul Healy from comment #7) > > Created attachment 410844 [details, diff] [details, diff] [details, diff] > > Patch to allow socket-sentry build for KDE 4.14 > Please see comment #5. Yes I tried that initially and got the same link problems in comment #6. Its at that point I came across the conversation on the kde buildsystem list - the suggestion for the CMP002 policy setting came from there. That change allows the configure/build/install steps to work for me. And runs of course... The package compiles, links and works with the patch from #c7. Can it be unmasked? removed from the tree |