[packages/gnome-commander] - patch for constifying of g_get_prgname in glib2-2.36.0
draenog
draenog at pld-linux.org
Wed Apr 17 17:50:40 CEST 2013
commit 79ab1b8e118118c0c426ebdf97e24f083c80fa03
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Wed Apr 17 16:47:11 2013 +0100
- patch for constifying of g_get_prgname in glib2-2.36.0
gnome-commander-const-cast.patch | 13 +++++++++++++
gnome-commander.spec | 2 ++
2 files changed, 15 insertions(+)
---
diff --git a/gnome-commander.spec b/gnome-commander.spec
index bb544d2..31c4390 100644
--- a/gnome-commander.spec
+++ b/gnome-commander.spec
@@ -12,6 +12,7 @@ Patch1: %{name}-1.2.8.15-poppler020.patch
Patch2: %{name}-gcc47.patch
Patch3: %{name}-format-security.patch
Patch4: %{name}-am.patch
+Patch5: %{name}-const-cast.patch
URL: http://www.nongnu.org/gcmd/
BuildRequires: autoconf
BuildRequires: automake
@@ -57,6 +58,7 @@ kilka dodatkowych jak np. klienta FTP.
%patch2 -p1
%patch3 -p1
%patch4 -p0
+%patch5 -p1
%build
%{__glib_gettextize}
diff --git a/gnome-commander-const-cast.patch b/gnome-commander-const-cast.patch
new file mode 100644
index 0000000..f510ef5
--- /dev/null
+++ b/gnome-commander-const-cast.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gnome-cmd-user-actions.cc~ b/src/gnome-cmd-user-actions.cc
+index caca3ea..3cce5b0 100644
+--- a/src/gnome-cmd-user-actions.cc~
++++ b/src/gnome-cmd-user-actions.cc
+@@ -1130,7 +1130,7 @@ void command_root_mode (GtkMenuItem *menuitem, gpointer not_used)
+ argv[i++] = su;
+ if (need_c)
+ argv[i++] = "-c";
+- argv[i++] = g_get_prgname ();
++ argv[i++] = const_cast<char*>(g_get_prgname ());
+ argv[i++] = NULL;
+
+ GError *error = NULL;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnome-commander.git/commitdiff/79ab1b8e118118c0c426ebdf97e24f083c80fa03
More information about the pld-cvs-commit
mailing list