lol

clementine: patch for cmake-3.2

+41 -1
+36
pkgs/applications/audio/clementine/clementine-dbus-namespace.patch
··· 1 + From ec580cb815c16ec1ab43a469d5af7d51d8d03082 Mon Sep 17 00:00:00 2001 2 + From: Chocobozzz <florian.chocobo@gmail.com> 3 + Date: Wed, 16 Jul 2014 15:57:25 +0200 4 + Subject: [PATCH] No namespaces for DBus interfaces. Fixes #4401 5 + 6 + --- 7 + src/CMakeLists.txt | 9 ++++----- 8 + 1 file changed, 4 insertions(+), 5 deletions(-) 9 + 10 + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt 11 + index 650fa74..775b0a5 100644 12 + --- a/src/CMakeLists.txt 13 + +++ b/src/CMakeLists.txt 14 + @@ -892,11 +892,6 @@ optional_source(LINUX SOURCES widgets/osd_x11.cpp) 15 + if(HAVE_DBUS) 16 + file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dbus) 17 + 18 + - # Hack to get it to generate interfaces without namespaces - required 19 + - # because otherwise org::freedesktop::UDisks and 20 + - # org::freedesktop::UDisks::Device conflict. 21 + - list(APPEND QT_DBUSXML2CPP_EXECUTABLE -N) 22 + - 23 + # MPRIS DBUS interfaces 24 + qt4_add_dbus_adaptor(SOURCES 25 + dbus/org.freedesktop.MediaPlayer.player.xml 26 + @@ -964,6 +959,10 @@ if(HAVE_DBUS) 27 + 28 + # DeviceKit DBUS interfaces 29 + if(HAVE_DEVICEKIT) 30 + + set_source_files_properties(dbus/org.freedesktop.UDisks.xml 31 + + PROPERTIES NO_NAMESPACE dbus/udisks) 32 + + set_source_files_properties(dbus/org.freedesktop.UDisks.Device.xml 33 + + PROPERTIES NO_NAMESPACE dbus/udisksdevice) 34 + qt4_add_dbus_interface(SOURCES 35 + dbus/org.freedesktop.UDisks.xml 36 + dbus/udisks)
+5 -1
pkgs/applications/audio/clementine/default.nix
··· 14 14 sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx"; 15 15 }; 16 16 17 - patches = [ ./clementine-1.2.1-include-paths.patch ]; 17 + patches = 18 + [ 19 + ./clementine-1.2.1-include-paths.patch 20 + ./clementine-dbus-namespace.patch 21 + ]; 18 22 19 23 buildInputs = [ 20 24 boost