From owner-freebsd-ports@FreeBSD.ORG Tue May 13 06:52:11 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A80B424D for ; Tue, 13 May 2014 06:52:11 +0000 (UTC) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7932D2357 for ; Tue, 13 May 2014 06:52:11 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id at1so4505496iec.5 for ; Mon, 12 May 2014 23:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6aw6SZUL+iIBZUv/776uEGyNOSLKwDP3EHWlhp6lXyM=; b=SAgzSmrcR7YVu7wgL4BkHigHG+I5UXBdx2aRIttN68ykbbfUN+b8pBd8gWDX4YvEqX asBK69ChYwquDOfE5IEbLP2hThOJrptkGQNUkw9fjxenjKGOroK5f9XMPDoeskBmUiAC /O2GIuHri++16CKrOfrmjfujiSdOjASmoQfYMITJSZpHlW3F9jxVhozA9zcO/SzXHS3M khl841A/RCqP/YeUhxKpFOA+BfDW7ESGYHAfdpBFLkndBbFzA4Rrbd0iyr0oAg1wDuhU rs49U9si4xhgBDSyw9f+L1ZY1UXcW9f+Z7zB/NEjZ/kc3emo6W+wJHleF0bPExXkeQeI o4IA== MIME-Version: 1.0 X-Received: by 10.50.112.167 with SMTP id ir7mr54430792igb.27.1399963930871; Mon, 12 May 2014 23:52:10 -0700 (PDT) Received: by 10.50.232.167 with HTTP; Mon, 12 May 2014 23:52:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 May 2014 01:52:10 -0500 Message-ID: Subject: Re: FreeBSD Port: print/cups-base - Avahi backend From: Scot Hetzel To: Raivo Hool Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 06:52:11 -0000 On Mon, May 12, 2014 at 1:51 PM, Raivo Hool 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.