- Set POSIX locale when parsing lpstat output.
This commit is contained in:
parent
4ec4084a0f
commit
627c6c3f7f
11
gutenprint-lpstat.patch
Normal file
11
gutenprint-lpstat.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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/://'",
|
@ -9,6 +9,7 @@ Group: System Environment/Base
|
||||
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 @@ Epson, HP and compatible printers..
|
||||
%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 @@ exit 0
|
||||
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@redhat.com> 5.0.0-7
|
||||
- Fixed menu patch.
|
||||
|
Loading…
Reference in New Issue
Block a user