From owner-freebsd-stable@FreeBSD.ORG Fri Jun 13 19:49:09 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6FAF5ACC for ; Fri, 13 Jun 2014 19:49:09 +0000 (UTC) Received: from geonosis.vindaloo.com (geonosis.vindaloo.com [IPv6:2001:470:1f07:26b:0:ac18:9026:1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smtp.vindaloo.com", Issuer "Vindaloo CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F37A2F32 for ; Fri, 13 Jun 2014 19:49:09 +0000 (UTC) Received: from kessel.vindaloo.com (kessel.vindaloo.com [IPv6:2001:470:1f07:26b:0:ac18:9147:0]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by geonosis.vindaloo.com (Postfix) with ESMTPSA id 7596ABE4A; Fri, 13 Jun 2014 15:49:06 -0400 (EDT) Subject: Cups 1.7.2 + Avahi Workaround -- Was: svn portdowngrade Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_AFA4ADCD-0E59-48F0-BBE2-931117D09D9A"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Christopher Hilton In-Reply-To: <20140612080504.78dcc72f@X220.alogt.com> Date: Fri, 13 Jun 2014 15:49:05 -0400 Message-Id: <43E0DF43-F062-4ABA-991C-AD6B769019BF@vindaloo.com> References: <20140611141324.GC4534@vpn.offrom.nl> <53986E33.4070509@netfence.it> <20140611175933.GE4534@vpn.offrom.nl> <20140612080504.78dcc72f@X220.alogt.com> To: Erich Dollansky X-Mailer: Apple Mail (2.1510) Cc: Andrea Venturoli , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2014 19:49:09 -0000 --Apple-Mail=_AFA4ADCD-0E59-48F0-BBE2-931117D09D9A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jun 11, 2014, at 8:05 PM, Erich Dollansky = wrote: > Hi, >=20 > On Wed, 11 Jun 2014 19:59:33 +0200 > Willy Offermans wrote: >=20 >> On Wed, Jun 11, 2014 at 04:56:51PM +0200, Andrea Venturoli wrote: >>> On 06/11/14 16:13, Willy Offermans wrote: >>>> Dear FreeBSD friends, >>>>=20 >>>> I use svn update /usr/ports to keep my ports collection up to date. >>>>=20 >>>> Now, I have an issue with cups 1.7.2 and I like to downgrade to >>>> version 1.5.4. There is a port called portdowngrade. Shall I use >>>> this to downgrade cups to 1.5.4, or is there another (advisable) >>>> way? >>>=20 Thats a four year old bug. The upshot is that Cups 1.7.2 cannot = _automatically_ advertise printers with Avahi. I cannot infer much from = the bug ticket but if I had to guess I'd say that the problem is lodged = in the Political rather than the Software Engineering levels.=20 One option here is to downgrade cups back to 1.5.x. Another is to = workaround the issue with a manual service file for each your printers. = In my case this was easy solution since I'm only advertising a pair of = printers. If you have to do this for 1000 printers my solution doesn't = scale. I basically put this into: /usr/local/etc/avahi/services/hp-4000.service *** Contents *** Hewlett Packard LaserJet 4000 = (%h) _ipp._tcp _universal._sub._ipp._tcp 631 txtver=3D1 qtotal=3D1 rp=3Dprinters/hp-4000 ty=3Dhp-4000 = adminurl=3Dhttp://10.0.x.1:631/printers/hp-4000 note=3DSecond Floor Printer Closet priority=3D0 product=3Dvirtual Printer printer-state=3D3 printer-type=3D0x801046 Transparent=3DT Binary=3DT Fax=3DF Color=3DF Duplex=3DT Staple=3DF Copies=3DT Collate=3DF Punch=3DF Bind=3DF Sort=3DF Scan=3DF = pdl=3Dapplication/octet-stream,application/pdf,application/pos= tscript,image/jpeg,image/png,image/urf URF=3DW8,SRGB24,CP1,RS600 To advertise my HP LaserJet 4000TN cups attached printer via Bonjour. My = Mac's can all print to the devices. Hope this is helpful. -- Chris --Apple-Mail=_AFA4ADCD-0E59-48F0-BBE2-931117D09D9A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIcBAEBAgAGBQJTm1WxAAoJEE2ar4QHIpj4x8EQAMCfm2INaVRdIi3DPaSz3tHm NUCK5NUtZ4ZpBq4LfDG4BqdSfZGTzZ9fpi1i3ODmHNwJP8b+BYaZ+0FbYpzZa/KR JJWVrNnslAb7h5mXV5TD1OmXhtfSnSiOTmkALryjuVR4gQsvjCbryi0rHR2o3WQ9 jra2QvvsdTmG53u0Dh/ZqZ8ascDy7QdK00d4HRpatUfXDxulPALakCsE07KaczMT ZPs9f/cKMhDrEyhm8mQJdErunogbOmea4CytpZeb9Nl/wWOtQ+NDck8uLS25c/0s a3046JoYgaF9c1TKlhkGeEYJ873uQIxhyp67cKo+pDyCSMqywtvnyzKNWI0vQt4t Mx0peFAryBbGXcOoRO9Ff5/VCFlqPF15nHygQ2U8M0Q+YRuKCOy40r8VU63tiU74 MCjXu1FrsOBOgrjrW4pXXTG241dCkEu9AZ+YbbKt2C2/BqSu1RDqKa0wIWF0Ppkx HVnnbAQlhigCA1Qn1RIUZNf0vZP/VPK8XuuJ8iWVPkHMEtUlP7iW1boo84QlpGbf HjKEDVjuPV16Fe5VoKe4zj3QDXl+xaLy+fv5VXj7zx7vCgM5pHauk9oocmQ8lB5i 3/akRbRpW5tT6iTlCGWS5f9nvBdiQiN60iM7R0VQ67mlMEkEfjOJHdC12G/cA3c2 bN3qiuD+poqpktCxKnOz =mg2b -----END PGP SIGNATURE----- --Apple-Mail=_AFA4ADCD-0E59-48F0-BBE2-931117D09D9A--