rpms/gutenprint/devel gutenprint-lpstat.patch, NONE, 1.1 gutenprint.spec, 1.16, 1.17

Tim Waugh (twaugh) fedora-extras-commits at redhat.com
Mon Mar 5 16:59:09 UTC 2007


Author: twaugh

Update of /cvs/extras/rpms/gutenprint/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17965

Modified Files:
	gutenprint.spec 
Added Files:
	gutenprint-lpstat.patch 
Log Message:
- Set POSIX locale when parsing lpstat output.

gutenprint-lpstat.patch:

--- NEW FILE gutenprint-lpstat.patch ---
--- gutenprint-5.0.0.99.1/src/gutenprintui2/plist.c.lpstat	2007-03-05 16:56:36.000000000 +0000
+++ gutenprint-5.0.0.99.1/src/gutenprintui2/plist.c	2007-03-05 16:57:29.000000000 +0000
@@ -94,7 +94,7 @@
 static print_system_t known_printing_systems[] =
 {
   { "CUPS", N_("CUPS"), "lp -s", "-d", "-oraw", "/usr/sbin/cupsd",
-    "/usr/bin/lpstat -v | grep -i '^device for ' | awk '{print $3}' | sed 's/://'",
+    "LC_ALL=C /usr/bin/lpstat -v | grep -i '^device for ' | awk '{print $3}' | sed 's/://'",
     "-n" },
   { "SysV", N_("System V lp"), "lp -s", "-d", "-oraw", "/usr/bin/lp",
     "/usr/bin/lpstat -v | grep -i '^device for ' | awk '{print $3}' | sed 's/://'",


Index: gutenprint.spec
===================================================================
RCS file: /cvs/extras/rpms/gutenprint/devel/gutenprint.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- gutenprint.spec	5 Mar 2007 16:55:05 -0000	1.16
+++ gutenprint.spec	5 Mar 2007 16:58:37 -0000	1.17
@@ -9,6 +9,7 @@
 URL:            http://gimp-print.sourceforge.net/
 Source0:        http://dl.sf.net/gimp-print/gutenprint-%{version}.tar.bz2
 Patch0:         gutenprint-menu.patch
+Patch1:         gutenprint-lpstat.patch
 License:        GPL 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  cups-libs >= 1.1.22-0.rc1.9.10, cups >= 1.1.22-0.rc1.9.10 
@@ -121,6 +122,7 @@
 %prep
 %setup -q -n %{name}-%{version}
 %patch0 -p1 -b .menu
+%patch1 -p1 -b .lpstat
 
 %build
 %configure --disable-static --disable-dependency-tracking  \
@@ -234,6 +236,7 @@
   sub-package.
 - Package the CUPS driver in sbindir and put a symlink in the CUPS ServerBin
   directory to work around bug #231015.
+- Set POSIX locale when parsing lpstat output.
 
 * Fri Mar  2 2007 Tim Waugh <twaugh at redhat.com> 5.0.0-7
 - Fixed menu patch.




More information about the fedora-extras-commits mailing list