rpms/gnome-user-share/devel do-not-localize-realms.patch, NONE, 1.1 gnome-user-share.spec, 1.56, 1.57

Tomas Bzatek tbzatek at fedoraproject.org
Thu Aug 20 12:00:01 UTC 2009


Author: tbzatek

Update of /cvs/extras/rpms/gnome-user-share/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21170

Modified Files:
	gnome-user-share.spec 
Added Files:
	do-not-localize-realms.patch 
Log Message:
* Thu Aug 20 2009 Tomas Bzatek <tbzatek at redhat.com> - 2.26.0-6
- Do not localize realm in passwd files (#500123)


do-not-localize-realms.patch:
 file-share-properties.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- NEW FILE do-not-localize-realms.patch ---
>From f77498214f945c988a0bcbe570782dcaf37e771d Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Fri, 26 Jun 2009 09:30:42 +0000
Subject: Bug 586755 – Localized realm in the passwd file doesn't work

And apparently, they're not supposed to either... So remove the
translation for the realm instead.
---
diff --git a/src/file-share-properties.c b/src/file-share-properties.c
index 2b9cd2e..4d69a62 100644
--- a/src/file-share-properties.c
+++ b/src/file-share-properties.c
@@ -32,7 +32,7 @@
 
 #include "user_share-private.h"
 
-#define REALM N_("Please log in as the user guest")
+#define REALM "Please log in as the user guest"
 #define USER "guest"
 
 static GtkBuilder* builder;
@@ -47,10 +47,10 @@ write_out_password (const char *password)
     char *filename;
     FILE *file;
 
-    to_hash = g_strdup_printf ("%s:%s:%s", USER, _(REALM), password);
+    to_hash = g_strdup_printf ("%s:%s:%s", USER, REALM, password);
     ascii_digest = g_compute_checksum_for_string (G_CHECKSUM_MD5, to_hash, strlen (to_hash));
     g_free (to_hash);
-    line = g_strdup_printf ("%s:%s:%s\n", USER, _(REALM), ascii_digest);
+    line = g_strdup_printf ("%s:%s:%s\n", USER, REALM, ascii_digest);
     g_free (ascii_digest);
 
     filename = g_build_filename (g_get_user_config_dir (), "user-share", "passwd", NULL);
--
cgit v0.8.2


Index: gnome-user-share.spec
===================================================================
RCS file: /cvs/extras/rpms/gnome-user-share/devel/gnome-user-share.spec,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -p -r1.56 -r1.57
--- gnome-user-share.spec	11 Aug 2009 21:44:01 -0000	1.56
+++ gnome-user-share.spec	20 Aug 2009 12:00:00 -0000	1.57
@@ -1,13 +1,16 @@
 Summary: Gnome user file sharing
 Name: gnome-user-share
 Version: 2.26.0
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: GPLv2+
 Group: System Environment/Libraries
 URL: http://www.gnome.org
 Source0: http://download.gnome.org/sources/gnome-user-share/2.26/%{name}-%{version}.tar.bz2
 # http://bugzilla.gnome.org/show_bug.cgi?id=578090
 Patch0: menu-path.patch
+# Localized realm in the passwd file doesn't work
+# http://bugzilla.gnome.org/show_bug.cgi?id=586755
+Patch1: do-not-localize-realms.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: httpd >= 2.2.0
@@ -46,6 +49,7 @@ The program also allows to share files u
 %prep
 %setup -q
 %patch0 -p1 -b .menu-path
+%patch1 -p1 -b .realm-localization
 
 %build
 %configure
@@ -123,6 +127,9 @@ fi
 %{_datadir}/icons/hicolor/*/apps/gnome-obex-server.png
 
 %changelog
+* Thu Aug 20 2009 Tomas Bzatek <tbzatek at redhat.com> - 2.26.0-6
+- Do not localize realm in passwd files (#500123)
+
 * Tue Aug 11 2009 Bastien Nocera <bnocera at redhat.com> 2.26.0-5
 - Fix source URL
 




More information about the fedora-extras-commits mailing list