[arch-commits] Commit in cups/trunk (PKGBUILD cups-avahi.patch)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Nov 12 22:23:13 UTC 2010


    Date: Friday, November 12, 2010 @ 17:23:13
  Author: andyrtr
Revision: 98719

upgpkg: cups 1.4.5-1
new version 1.4.5

Modified:
  cups/trunk/PKGBUILD
  cups/trunk/cups-avahi.patch

------------------+
 PKGBUILD         |   13 ++++---------
 cups-avahi.patch |   45 +++++++++++++++++++++++----------------------
 2 files changed, 27 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-11-12 22:04:30 UTC (rev 98718)
+++ PKGBUILD	2010-11-12 22:23:13 UTC (rev 98719)
@@ -3,8 +3,8 @@
 
 pkgbase="cups"
 pkgname=('libcups' 'cups')
-pkgver=1.4.4
-pkgrel=3
+pkgver=1.4.5
+pkgrel=1
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.cups.org/"
@@ -12,12 +12,10 @@
              'xinetd' 'gzip' 'autoconf' 'php' 'libusb' 'dbus-core' 'avahi'  'hicolor-icon-theme')
 source=(ftp://ftp.easysw.com/pub/cups/${pkgver}/cups-${pkgver}-source.tar.bz2
 	cups-avahi.patch
-	http://www.cups.org/strfiles/3595/str3595.patch
         cups cups.logrotate cups.pam)
 #options=('!emptydirs')
-md5sums=('8776403ad60fea9e85eab9c04d88560d'
-         'fce500e3e6e244f5b77fe8eaad87e022'
-         '0dd7329fc956d63a72085553171d62a2'
+md5sums=('50729f6fc46ba54223e0eaf5009f3419'
+         '8ebd390197501ffd709f0ee546937fd5'
          '5c85b7d8d2ddd02c2c64955cebbf55ea'
          'f861b18f4446c43918c8643dcbbd7f6d'
          '96f82c38f3f540b53f3e5144900acf17')
@@ -27,9 +25,6 @@
   # Avahi support in the dnssd backend. patch from Fedora
   patch -Np1 -i ${srcdir}/cups-avahi.patch || return 1
   
-  # fix  Brother HL-1440 failing with msg "Unable to write 8192 bytes to printer!" (http://bugs.archlinux.org/task/18167)
-  patch -Np0 -i ${srcdir}/str3595.patch || return 1
-  
   # Rebuild configure script for --enable-avahi.
   aclocal -I config-scripts
   autoconf -I config-scripts

Modified: cups-avahi.patch
===================================================================
--- cups-avahi.patch	2010-11-12 22:04:30 UTC (rev 98718)
+++ cups-avahi.patch	2010-11-12 22:23:13 UTC (rev 98719)
@@ -1,6 +1,6 @@
-diff -up cups-1.4.0/backend/dnssd.c.avahi cups-1.4.0/backend/dnssd.c
---- cups-1.4.0/backend/dnssd.c.avahi	2009-08-07 23:27:12.000000000 +0100
-+++ cups-1.4.0/backend/dnssd.c	2009-09-04 14:57:04.730388833 +0100
+diff -up cups-1.4.5/backend/dnssd.c.avahi cups-1.4.5/backend/dnssd.c
+--- cups-1.4.5/backend/dnssd.c.avahi	2009-08-08 00:27:12.000000000 +0200
++++ cups-1.4.5/backend/dnssd.c	2010-11-12 13:13:31.000000000 +0100
 @@ -22,6 +22,7 @@
   *   exec_backend()          - Execute the backend that corresponds to the
   *                             resolved service name.
@@ -794,10 +794,10 @@
  /*
   * 'sigterm_handler()' - Handle termination signals...
   */
-diff -up cups-1.4.0/config.h.in.avahi cups-1.4.0/config.h.in
---- cups-1.4.0/config.h.in.avahi	2009-06-10 16:51:21.000000000 +0100
-+++ cups-1.4.0/config.h.in	2009-09-04 14:57:04.733388405 +0100
-@@ -336,6 +336,13 @@
+diff -up cups-1.4.5/config.h.in.avahi cups-1.4.5/config.h.in
+--- cups-1.4.5/config.h.in.avahi	2010-08-13 06:11:46.000000000 +0200
++++ cups-1.4.5/config.h.in	2010-11-12 13:13:31.000000000 +0100
+@@ -344,6 +344,13 @@
  
  
  /*
@@ -811,9 +811,9 @@
   * Do we have <sys/ioctl.h>?
   */
  
-diff -up cups-1.4.0/config-scripts/cups-dnssd.m4.avahi cups-1.4.0/config-scripts/cups-dnssd.m4
---- cups-1.4.0/config-scripts/cups-dnssd.m4.avahi	2009-02-10 17:05:35.000000000 +0000
-+++ cups-1.4.0/config-scripts/cups-dnssd.m4	2009-09-04 14:57:04.731388902 +0100
+diff -up cups-1.4.5/config-scripts/cups-dnssd.m4.avahi cups-1.4.5/config-scripts/cups-dnssd.m4
+--- cups-1.4.5/config-scripts/cups-dnssd.m4.avahi	2009-08-29 00:54:34.000000000 +0200
++++ cups-1.4.5/config-scripts/cups-dnssd.m4	2010-11-12 13:13:31.000000000 +0100
 @@ -27,6 +27,21 @@ AC_ARG_WITH(dnssd-includes, [  --with-dn
  DNSSDLIBS=""
  DNSSD_BACKEND=""
@@ -836,9 +836,9 @@
  if test x$enable_dnssd != xno; then
  	AC_CHECK_HEADER(dns_sd.h, [
  		case "$uname" in
-diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
---- cups-1.4.0/cups/http-support.c.avahi	2009-06-12 01:21:58.000000000 +0100
-+++ cups-1.4.0/cups/http-support.c	2009-09-04 14:57:04.736398674 +0100
+diff -up cups-1.4.5/cups/http-support.c.avahi cups-1.4.5/cups/http-support.c
+--- cups-1.4.5/cups/http-support.c.avahi	2010-10-02 00:40:38.000000000 +0200
++++ cups-1.4.5/cups/http-support.c	2010-11-12 13:28:45.000000000 +0100
 @@ -55,6 +55,11 @@
  #  include <dns_sd.h>
  #  include <poll.h>
@@ -876,7 +876,7 @@
  
  /*
   * 'httpAssembleURI()' - Assemble a uniform resource identifier from its
-@@ -1349,15 +1372,26 @@ _httpResolveURI(
+@@ -1351,16 +1374,27 @@ _httpResolveURI(
  
    if (strstr(hostname, "._tcp"))
    {
@@ -887,7 +887,8 @@
      DNSServiceRef	ref,		/* DNS-SD master service reference */
  			domainref,	/* DNS-SD service reference for domain */
  			localref;	/* DNS-SD service reference for .local */
-     int			domainsent = 0;	/* Send the domain resolve? */
+     int			domainsent = 0,	/* Send the domain resolve? */
+ 			offline = 0;	/* offline-report state set? */
 -    char		*regtype,	/* Pointer to type in hostname */
 -			*domain;	/* Pointer to domain in hostname */
      _http_uribuf_t	uribuf;		/* URI buffer */
@@ -905,7 +906,7 @@
  
  
      if (logit)
-@@ -1395,8 +1429,13 @@ _httpResolveURI(
+@@ -1398,8 +1432,13 @@ _httpResolveURI(
      if (domain)
        *domain++ = '\0';
  
@@ -919,7 +920,7 @@
  
      resolved_uri[0] = '\0';
  
-@@ -1411,6 +1450,7 @@ _httpResolveURI(
+@@ -1414,6 +1453,7 @@ _httpResolveURI(
  
      uri = NULL;
  
@@ -927,7 +928,7 @@
      if (DNSServiceCreateConnection(&ref) == kDNSServiceErr_NoError)
      {
        localref = ref;
-@@ -1486,6 +1526,36 @@ _httpResolveURI(
+@@ -1500,6 +1540,36 @@ _httpResolveURI(
  
        DNSServiceRefDeallocate(ref);
      }
@@ -964,8 +965,8 @@
  
      if (logit)
      {
-@@ -1497,13 +1567,13 @@ _httpResolveURI(
-       fputs("STATE: -connecting-to-device\n", stderr);
+@@ -1511,13 +1581,13 @@ _httpResolveURI(
+       fputs("STATE: -connecting-to-device,offline-report\n", stderr);
      }
  
 -#else
@@ -980,7 +981,7 @@
  
      if (logit && !uri)
        _cupsLangPuts(stderr, _("Unable to find printer!\n"));
-@@ -1708,6 +1778,105 @@ resolve_callback(
+@@ -1722,6 +1792,105 @@ resolve_callback(
  }
  #endif /* HAVE_DNSSD */
  
@@ -1085,4 +1086,4 @@
 +
  
  /*
-  * End of "$Id: http-support.c 8705 2009-06-12 00:21:58Z mike $".
+  * End of "$Id: http-support.c 9322 2010-10-01 22:40:38Z mike $".




More information about the arch-commits mailing list