diff --git a/cups-EAI_AGAIN.patch b/cups-EAI_AGAIN.patch new file mode 100644 index 0000000..878315a --- /dev/null +++ b/cups-EAI_AGAIN.patch @@ -0,0 +1,12 @@ +diff -up cups-1.4.2/cups/http-addr.c.EAI_AGAIN cups-1.4.2/cups/http-addr.c +--- cups-1.4.2/cups/http-addr.c.EAI_AGAIN 2010-02-23 10:39:35.038261623 +0000 ++++ cups-1.4.2/cups/http-addr.c 2010-02-23 10:41:14.684385991 +0000 +@@ -253,7 +253,7 @@ httpAddrLookup( + + if (error) + { +- if (error == EAI_FAIL) ++ if (error == EAI_FAIL || error == EAI_AGAIN) + cg->need_res_init = 1; + + return (httpAddrString(addr, name, namelen)); diff --git a/cups.spec b/cups.spec index 99ff26f..0203f39 100644 --- a/cups.spec +++ b/cups.spec @@ -8,7 +8,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.4.2 -Release: 29%{?dist} +Release: 30%{?dist} License: GPLv2 Group: System Environment/Daemons Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -74,6 +74,7 @@ Patch49: cups-gnutls-gcrypt-threads.patch Patch50: cups-str3458.patch Patch51: cups-0755.patch Patch52: cups-str3460.patch +Patch53: cups-EAI_AGAIN.patch Patch100: cups-lspp.patch @@ -262,6 +263,7 @@ module. %patch50 -p1 -b .str3458 %patch51 -p1 -b .0755 %patch52 -p1 -b .str3460 +%patch53 -p1 -b .EAI_AGAIN %if %lspp %patch100 -p1 -b .lspp @@ -552,6 +554,10 @@ rm -rf $RPM_BUILD_ROOT %{php_extdir}/phpcups.so %changelog +* Tue Feb 23 2010 Tim Waugh - 1:1.4.2-30 +- Re-initialize the resolver if getnameinfo() returns EAI_AGAIN + (bug #567353). + * Mon Feb 15 2010 Jiri Popelka 1:1.4.2-29 - Improve cups-gnutls-gcrypt-threads.patch (#564841, STR #3461).