[gimagereader/f19] Add patch for missing Glib::SPAWN_DEFAULT

Sandro Mani smani at fedoraproject.org
Thu Feb 20 15:56:14 UTC 2014


commit 767ab27d9ae895906f3c7206c2aa2d28c816ff44
Author: Sandro Mani <manisandro at gmail.com>
Date:   Thu Feb 20 16:56:50 2014 +0100

    Add patch for missing Glib::SPAWN_DEFAULT

 gimagereader.spec                   |    3 +++
 gimagereader_no_spawn_default.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/gimagereader.spec b/gimagereader.spec
index 71c6831..f8aab3d 100644
--- a/gimagereader.spec
+++ b/gimagereader.spec
@@ -7,6 +7,8 @@ Summary:       OCR application
 URL:           http://sourceforge.net/projects/gimagereader/
 Source0:       %{name}-%{version}.tar.xz
 
+Patch0:        gimagereader_no_spawn_default.patch
+
 BuildRequires: gtkmm30-devel
 BuildRequires: gtkspellmm30-devel
 BuildRequires: cairomm-devel
@@ -32,6 +34,7 @@ gImageReader is a simple Gtk front-end to tesseract. Features include:
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
diff --git a/gimagereader_no_spawn_default.patch b/gimagereader_no_spawn_default.patch
new file mode 100644
index 0000000..86f5b0a
--- /dev/null
+++ b/gimagereader_no_spawn_default.patch
@@ -0,0 +1,30 @@
+diff -rupN gimagereader-2.91/src/FileDialogs.cc gimagereader-2.91-new/src/FileDialogs.cc
+--- gimagereader-2.91/src/FileDialogs.cc	2014-02-20 14:18:57.000000000 +0100
++++ gimagereader-2.91-new/src/FileDialogs.cc	2014-02-20 16:55:43.313743278 +0100
+@@ -209,7 +209,7 @@ static std::vector<Glib::RefPtr<Gio::Fil
+ 	// Spawn process
+ 	std::string stdout;
+ 	int exit_status = -1;
+-	Glib::spawn_sync("", argv, Glib::SPAWN_DEFAULT, sigc::slot<void>(), &stdout, nullptr, &exit_status);
++	Glib::spawn_sync("", argv, 0, sigc::slot<void>(), &stdout, nullptr, &exit_status);
+ 	std::vector<Glib::RefPtr<Gio::File>> files;
+ 	if(exit_status == 0) {
+ 		std::istringstream iss(stdout);
+@@ -234,7 +234,7 @@ static std::string kde_save_dialog(const
+ 		};
+ 		int exit_status = -1;
+ 		std::string stdout;
+-		Glib::spawn_sync("", argv, Glib::SPAWN_DEFAULT, sigc::slot<void>(), &stdout, nullptr, &exit_status);
++		Glib::spawn_sync("", argv, 0, sigc::slot<void>(), &stdout, nullptr, &exit_status);
+ 		if(exit_status != 0) {
+ 			break;
+ 		}
+@@ -248,7 +248,7 @@ static std::string kde_save_dialog(const
+ 				"--title", _("Overwrite File?"),
+ 				"--caption", PACKAGE_NAME
+ 			};
+-			Glib::spawn_sync("", argv, Glib::SPAWN_DEFAULT, sigc::slot<void>(), nullptr, nullptr, &exit_status);
++			Glib::spawn_sync("", argv, 0, sigc::slot<void>(), nullptr, nullptr, &exit_status);
+ 			if(exit_status != 0){
+ 				continue;
+ 			}


More information about the scm-commits mailing list