Date: Tue, 13 May 2014 01:52:10 -0500 From: Scot Hetzel <swhetzel@gmail.com> To: Raivo Hool <raivo.hool@gmail.com> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: FreeBSD Port: print/cups-base - Avahi backend Message-ID: <CACdU%2Bf8yfQ%2BNJGOBYpt_TchQupXAj_URO2toGcQW9m%2BZ%2B3J7Mw@mail.gmail.com> In-Reply-To: <BDAA2163-6D66-4987-AB98-316FFE27E856@gmail.com> References: <BDAA2163-6D66-4987-AB98-316FFE27E856@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 12, 2014 at 1:51 PM, Raivo Hool <raivo.hool@gmail.com> wrote: > The cups-base port has been marked as BROKEN if built against Avahi since= version 1.4. (The Makefile even helpfully points the user to http://www.av= ahi.org/ticket/303 which states that the problem exists with CUPS version 1= .4 and that a fix is in the making.) Since version 1.6, however, there exis= ts native Avahi support in CUPS and there is really no point in marking the= port broken and including all kinds of compatibility headers that are no l= onger of any use whatsoever. Building CUPS 1.7 directly against Avahi works= well and without any need for the avahi-compat-libdns_sd headers. I tested= the setup on my system and came up with the following patch that incidenta= lly also checks whether one or the other mDNS backend was selected and acti= vates the pkg-plist magic accordingly. (Note how the dependency on avahi-li= bdns has been replaced with a dependency on avahi-app, as the configure scr= ipt checks for the presence of libavahi-client.so, installed by net/avahi-a= pp.) > You might want to change these lines from: PLIST_SUB+=3D WITH_MDNSRESPONDER=3D"" WITH_AVAHI=3D"@comment " to PLIST_SUB+=3D DNSSD=3D"" MDNSRESPONDER=3D"" Then in pkg-plist use: %%DNSSD%%libexec/cups/backend/dnssd %%MDNSRESPONDER%%libexec/cups/backend/dnssd This way you don't list 'libexec/cups/backend/dnssd' twice in the pkg-plist= . Send the patch as a PR and someone should eventually get to it. --=20 DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf8yfQ%2BNJGOBYpt_TchQupXAj_URO2toGcQW9m%2BZ%2B3J7Mw>