Accepting request 107400 from graphics
- Add darktable-fix-deprecation.patch to fix glib deprecation. (forwarded request 107399 from fcrozat) OBS-URL: https://build.opensuse.org/request/show/107400 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/darktable?expand=0&rev=10
This commit is contained in:
parent
76d469789f
commit
3b0c2dcd65
46
darktable-fix-deprecation.patch
Normal file
46
darktable-fix-deprecation.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
From 2449428b79acb5313f316095e757a19573bf473e Mon Sep 17 00:00:00 2001
|
||||||
|
From: johannes hanika <hanatos@gmail.com>
|
||||||
|
Date: Tue, 7 Feb 2012 21:26:53 +1300
|
||||||
|
Subject: [PATCH] tried to work around g_thread_init() deprecation.
|
||||||
|
|
||||||
|
---
|
||||||
|
src/common/pwstorage/backend_kwallet.c | 4 ++++
|
||||||
|
src/gui/gtk.c | 4 ++++
|
||||||
|
2 files changed, 8 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
Index: darktable-0.9.3/src/common/pwstorage/backend_kwallet.c
|
||||||
|
===================================================================
|
||||||
|
--- darktable-0.9.3.orig/src/common/pwstorage/backend_kwallet.c
|
||||||
|
+++ darktable-0.9.3/src/common/pwstorage/backend_kwallet.c
|
||||||
|
@@ -201,10 +201,14 @@ const backend_kwallet_context_t* dt_pwst
|
||||||
|
// NULL the context
|
||||||
|
memset(_context, 0, sizeof(backend_kwallet_context_t));
|
||||||
|
|
||||||
|
+#if GLIB_MAJOR_VERSION <= 2
|
||||||
|
+#if GLIB_MINOR_VERSION < 31
|
||||||
|
// Initialize threading in dbus-glib - it should be fine for
|
||||||
|
// dbus_g_thread_init to be called multiple times.
|
||||||
|
if (!g_thread_supported())
|
||||||
|
g_thread_init(NULL);
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
dbus_g_thread_init();
|
||||||
|
|
||||||
|
GError* error = NULL;
|
||||||
|
Index: darktable-0.9.3/src/gui/gtk.c
|
||||||
|
===================================================================
|
||||||
|
--- darktable-0.9.3.orig/src/gui/gtk.c
|
||||||
|
+++ darktable-0.9.3/src/gui/gtk.c
|
||||||
|
@@ -1211,8 +1211,12 @@ dt_gui_gtk_init(dt_gui_gtk_t *gui, int a
|
||||||
|
memset(gui->snapshot, 0, sizeof(gui->snapshot));
|
||||||
|
for(int k=0; k<4; k++) snprintf(gui->snapshot[k].filename, 30, "/tmp/dt_snapshot_%d.png", k);
|
||||||
|
gui->presets_popup_menu = NULL;
|
||||||
|
+#if GLIB_MAJOR_VERSION <= 2
|
||||||
|
+#if GLIB_MINOR_VERSION < 31
|
||||||
|
if (!g_thread_supported ()) g_thread_init(NULL);
|
||||||
|
gdk_threads_init();
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
gdk_threads_enter();
|
||||||
|
gtk_init (&argc, &argv);
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 28 12:06:27 UTC 2012 - fcrozat@suse.com
|
||||||
|
|
||||||
|
- Add darktable-fix-deprecation.patch to fix glib deprecation.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 8 09:07:37 UTC 2011 - toganm@opensuse.org
|
Tue Nov 8 09:07:37 UTC 2011 - toganm@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package darktable
|
# spec file for package darktable
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,16 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: darktable
|
Name: darktable
|
||||||
Version: 0.9.3
|
Version: 0.9.3
|
||||||
Release: 1
|
Release: 0
|
||||||
License: GPL-3.0+
|
|
||||||
Group: Productivity/Graphics/Viewers
|
|
||||||
Url: http://darktable.sourceforge.net
|
Url: http://darktable.sourceforge.net
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
# PATCH-FIX-UPSTREAM darktable-fix-deprecation.patch fcrozat@suse.com -- fix glib deprecation (git)
|
||||||
|
Patch0: darktable-fix-deprecation.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: Mesa-devel
|
||||||
|
BuildRequires: OpenEXR-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
BuildRequires: dbus-1-glib-devel
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gconf2-devel
|
BuildRequires: gconf2-devel
|
||||||
BuildRequires: gnome-keyring-devel
|
BuildRequires: gnome-keyring-devel
|
||||||
@ -41,15 +44,13 @@ BuildRequires: libjpeg-devel
|
|||||||
BuildRequires: liblcms2-devel
|
BuildRequires: liblcms2-devel
|
||||||
BuildRequires: librsvg-devel
|
BuildRequires: librsvg-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: OpenEXR-devel
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: sqlite3-devel
|
BuildRequires: sqlite3-devel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: dbus-1-glib-devel
|
|
||||||
BuildRequires: Mesa-devel
|
|
||||||
|
|
||||||
Summary: A virtual Lighttable and Darkroom
|
Summary: A virtual Lighttable and Darkroom
|
||||||
|
License: GPL-3.0+
|
||||||
|
Group: Productivity/Graphics/Viewers
|
||||||
%gconf_schemas_requires
|
%gconf_schemas_requires
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -60,6 +61,7 @@ lighttable. it also enables you to develop raw images and enhance them.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
[ ! -d "build" ] && mkdir build
|
[ ! -d "build" ] && mkdir build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user