about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorMoritz Ulrich <moritz@tarn-vedra.de>2016-10-10 17:24:49 +0200
committerMoritz Ulrich <moritz@tarn-vedra.de>2016-10-10 17:24:49 +0200
commit194cc803c144826b11e3e5c02c998d177c3a6feb (patch)
treee9ab6e622815f66693d8cee9da48838d60e9203a /pkgs/applications/graphics
parentfef0a223d9cfd9b2c4b984a8d5b10f9dc0577153 (diff)
downloadnixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.tar
nixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.tar.gz
nixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.tar.bz2
nixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.tar.lz
nixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.tar.xz
nixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.tar.zst
nixlib-194cc803c144826b11e3e5c02c998d177c3a6feb.zip
rawtherapee: Fix build by backporting patch.
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/rawtherapee/default.nix4
-rw-r--r--pkgs/applications/graphics/rawtherapee/fix-glibmm-output.patch23
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/rawtherapee/default.nix b/pkgs/applications/graphics/rawtherapee/default.nix
index 14cbf478bd46..50eb7749031f 100644
--- a/pkgs/applications/graphics/rawtherapee/default.nix
+++ b/pkgs/applications/graphics/rawtherapee/default.nix
@@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
   buildInputs = [ pkgconfig cmake pixman libpthreadstubs gtkmm2 libXau libXdmcp
     lcms2 libiptcdata libcanberra_gtk2 fftw expat pcre libsigcxx ];
 
+  patches = [
+    ./fix-glibmm-output.patch
+  ];
+
   cmakeFlags = [
     "-DPROC_TARGET_NUMBER=2"
   ];
diff --git a/pkgs/applications/graphics/rawtherapee/fix-glibmm-output.patch b/pkgs/applications/graphics/rawtherapee/fix-glibmm-output.patch
new file mode 100644
index 000000000000..3c87ce64e26b
--- /dev/null
+++ b/pkgs/applications/graphics/rawtherapee/fix-glibmm-output.patch
@@ -0,0 +1,23 @@
+From ca0afa8d5f3cc7d09b6bab32d155a87c550f0d7b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Fl=C3=B6ssie?= <floessie.mail@gmail.com>
+Date: Sat, 1 Oct 2016 12:38:24 +0200
+Subject: [PATCH] Fix incompatibility with glibmm 2.50 (#3440)
+
+Kudos to @Hombre57 for the suggestion.
+---
+ rtgui/dirbrowser.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rtgui/dirbrowser.cc b/rtgui/dirbrowser.cc
+index d3fc8bf..6f25f0f 100644
+--- a/rtgui/dirbrowser.cc
++++ b/rtgui/dirbrowser.cc
+@@ -59,7 +59,7 @@ std::vector<Glib::ustring> listSubDirs (const Glib::RefPtr<Gio::File>& dir, bool
+     } catch (const Glib::Exception& exception) {
+ 
+         if (options.rtSettings.verbose) {
+-            std::cerr << "Failed to list subdirectories of \"" << dir << "\": " << exception.what () << std::endl;
++            std::cerr << "Failed to list subdirectories of \"" << dir->get_basename() << "\": " << exception.what () << std::endl;
+         }
+ 
+     }