git.iko.soy/typeable/nixpkgs
on master help sign in
rawtherapee: Fix build by backporting patch.
commit194cc803c144826b11e3e5c02c998d177c3a6feb authorMoritz Ulrich <moritz@tarn-vedra.de> dateMon 10 Oct 2016, 17:24 (10 years ago) parentfef0a22
2 files changed+27
pkgs/applications/graphics/rawtherapee/default.nix+4 pkgs/applications/graphics/rawtherapee/fix-glibmm-output.patch+23
pkgs/applications/graphics/rawtherapee/default.nix+4
@@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
1616 buildInputs = [ pkgconfig cmake pixman libpthreadstubs gtkmm2 libXau libXdmcp
1717 lcms2 libiptcdata libcanberra_gtk2 fftw expat pcre libsigcxx ];
1818
19+ patches = [
20+ ./fix-glibmm-output.patch
21+ ];
22+
1923 cmakeFlags = [
2024 "-DPROC_TARGET_NUMBER=2"
2125 ];
pkgs/applications/graphics/rawtherapee/fix-glibmm-output.patchnew file+23
@@ -0,0 +1,23 @@
1+From ca0afa8d5f3cc7d09b6bab32d155a87c550f0d7b Mon Sep 17 00:00:00 2001
2+From: =?UTF-8?q?Fl=C3=B6ssie?= <floessie.mail@gmail.com>
3+Date: Sat, 1 Oct 2016 12:38:24 +0200
4+Subject: [PATCH] Fix incompatibility with glibmm 2.50 (#3440)
5+
6+Kudos to @Hombre57 for the suggestion.
7+---
8+ rtgui/dirbrowser.cc | 2 +-
9+ 1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+diff --git a/rtgui/dirbrowser.cc b/rtgui/dirbrowser.cc
12+index d3fc8bf..6f25f0f 100644
13+--- a/rtgui/dirbrowser.cc
14++++ b/rtgui/dirbrowser.cc
15+@@ -59,7 +59,7 @@ std::vector<Glib::ustring> listSubDirs (const Glib::RefPtr<Gio::File>& dir, bool
16+ } catch (const Glib::Exception& exception) {
17+
18+ if (options.rtSettings.verbose) {
19+- std::cerr << "Failed to list subdirectories of \"" << dir << "\": " << exception.what () << std::endl;
20++ std::cerr << "Failed to list subdirectories of \"" << dir->get_basename() << "\": " << exception.what () << std::endl;
21+ }
22+
23+ }