diff --git a/cups-avahi.patch b/cups-avahi.patch index 0626945..031eb84 100644 --- a/cups-avahi.patch +++ b/cups-avahi.patch @@ -1929,7 +1929,7 @@ diff -up cups-1.4.6/scheduler/dirsvc.c.avahi cups-1.4.6/scheduler/dirsvc.c + "_http._tcp", /* type */ + NULL, /* domain */ + NULL, /* host */ -+ htons(DNSSDPort), /* port */ ++ DNSSDPort, /* port */ + "path=/", NULL); + if (ret == 0) + ret = avahi_entry_group_commit (AvahiWebIFGroup); @@ -2424,7 +2424,7 @@ diff -up cups-1.4.6/scheduler/dirsvc.c.avahi cups-1.4.6/scheduler/dirsvc.c + AVAHI_IF_UNSPEC, + AVAHI_PROTO_UNSPEC, + 0, name, regtype, NULL, NULL, -+ htons(DNSSDPort), ++ DNSSDPort, + ipp_txt); + if (ret < 0) + goto add_failed; @@ -2443,7 +2443,7 @@ diff -up cups-1.4.6/scheduler/dirsvc.c.avahi cups-1.4.6/scheduler/dirsvc.c + AVAHI_PROTO_UNSPEC, + 0, name, + "_printer._tcp", NULL, NULL, -+ htons(515), ++ 515, + printer_txt); + if (ret < 0) + goto add_failed; diff --git a/cups.spec b/cups.spec index ad37641..078f0c2 100644 --- a/cups.spec +++ b/cups.spec @@ -13,7 +13,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.4.6 -Release: 19%{?dist} +Release: 20%{?dist} License: GPLv2 Group: System Environment/Daemons Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -617,6 +617,10 @@ rm -rf $RPM_BUILD_ROOT %{php_extdir}/phpcups.so %changelog +* Fri Jun 3 2011 Tim Waugh 1:1.4.6-20 +- Use correct port number when publishing services through Avahi + (Ubuntu #792309). + * Fri Jun 3 2011 Tim Waugh 1:1.4.6-19 - Don't crash when unable to connect to D-Bus.