From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 4 23:51:35 2014 Return-Path: Delivered-To: freebsd-ports-bugs@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 0A9F5CC6 for ; Fri, 4 Jul 2014 23:51:35 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E03462F98 for ; Fri, 4 Jul 2014 23:51:34 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s64NpYE5099952 for ; Sat, 5 Jul 2014 00:51:34 +0100 (BST) (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191619] New: [patch] print/cups-base links uses avahi if present even when MDNSRESPONDER option is selected Date: Fri, 04 Jul 2014 23:51:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2014 23:51:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191619 Bug ID: 191619 Summary: [patch] print/cups-base links uses avahi if present even when MDNSRESPONDER option is selected Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: truckman@FreeBSD.org Created attachment 144418 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=144418&action=edit patch to cups-base/Makefile cups-base-1.7.3 print/cups-base/Makefile r360086 If the avahi port is installed and cups-base is configured to with the MDNSRESPONDER option set, cups-base will use avahi. ===> License GPLv2 accepted by the user ===> Found saved configuration for cups-base-1.7.3 ===> cups-base-1.7.3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by cups-base-1.7.3 for building ===> Extracting for cups-base-1.7.3 => SHA256 Checksum OK for cups-1.7.3-source.tar.bz2. ===> Patching for cups-base-1.7.3 ===> Applying FreeBSD patches for cups-base-1.7.3 ===> cups-base-1.7.3 depends on package: cups-client>=1.7.3 - found ===> cups-base-1.7.3 depends on package: cups-image>=1.7.3 - found ===> cups-base-1.7.3 depends on executable: gmake - found ===> cups-base-1.7.3 depends on executable: pkgconf - found ===> cups-base-1.7.3 depends on executable: gtk-update-icon-cache - found ===> cups-base-1.7.3 depends on shared library: libcups.so - found (/usr/local/lib/libcups.so.2) - found (/usr/local/lib/libcups.so.2) ===> cups-base-1.7.3 depends on shared library: libcupsimage.so - found (/usr/local/lib/libcupsimage.so.2) - found (/usr/local/lib/libcupsimage.so.2) ===> cups-base-1.7.3 depends on shared library: libdns_sd.so - found (/usr/local/lib/libdns_sd.so.1) - found (/usr/local/lib/libdns_sd.so.1) [** libdns_sd.so.1 is the library for MDNSRESPONDER **] ===> cups-base-1.7.3 depends on shared library: libdbus-1.so - found (/usr/local/lib/libdbus-1.so.3.8.5) - found (/usr/local/lib/libdbus-1.so.3.8.5) ===> cups-base-1.7.3 depends on shared library: libatk-1.0.so - found (/usr/local/lib/libatk-1.0.so.0) - found (/usr/local/lib/libatk-1.0.so.0) ===> cups-base-1.7.3 depends on shared library: libgdk_pixbuf-2.0.so - found (/usr/local/lib/libgdk_pixbuf-2.0.so.0.2800.2) - found (/usr/local/lib/libgdk_pixbuf-2.0.so.0.2800.2) ===> cups-base-1.7.3 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so.0) - found (/usr/local/lib/libglib-2.0.so.0) ===> cups-base-1.7.3 depends on shared library: libpcre.so - found (/usr/local/lib/libpcre.so.3) - found (/usr/local/lib/libpcre.so.3) ===> cups-base-1.7.3 depends on shared library: libpango-1.0.so - found (/usr/local/lib/libpango-1.0.so.0.3400.1) - found (/usr/local/lib/libpango-1.0.so.0.3400.1) ===> Configuring for cups-base-1.7.3 [SNIP] checking for Avahi... yes In config.log: $ ./configure --localstatedir=/var --disable-gssapi --with-cups-user=cups --with-cups-group=cups --with-system-groups=wheel --with-docdir=/usr/local/share/doc/cups --with-menudir=/usr/local/share/applications --with-domainsocket=/var/run/cups.sock --with-cachedir=/var/db/cups --with-pam-module=unix --enable-ssl --with-printcap=/usr/local/etc/printcap --disable-gnutls --enable-openssl --with-dnssd-includes=/usr/local/include --disable-pam --enable-dbus --enable-libusb --with-icondir=/usr/local/share/icons --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd11.0 I see --with-dnssd-includes=/usr/local/include, which looks correct, but further down: DEFS='-DHAVE_CONFIG_H' DNSSDLIBS='-L/usr/local/lib -lavahi-common -lavahi-client ' DNSSD_BACKEND='dnssd' DSO='$(CC)' The proof is in the pudding: # ldd work/stage/usr/local/bin/lpq work/stage/usr/local/bin/lpq: libcups.so.2 => /usr/local/lib/libcups.so.2 (0x881da000) libssl.so.7 => /usr/lib/libssl.so.7 (0x8823d000) libcrypto.so.7 => /lib/libcrypto.so.7 (0x88c00000) libavahi-common.so.3 => /usr/local/lib/libavahi-common.so.3 (0x88298000) libavahi-client.so.3 => /usr/local/lib/libavahi-client.so.3 (0x882a3000) libz.so.6 => /lib/libz.so.6 (0x882b2000) libm.so.5 => /lib/libm.so.5 (0x882c7000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x882ef000) libthr.so.3 => /lib/libthr.so.3 (0x88313000) libc.so.7 => /lib/libc.so.7 (0x8806d000) libintl.so.9 => /usr/local/lib/libintl.so.9 (0x88335000) libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x8833e000) lpq is linked against libavahi-common.so.3 and libavahi-client.so.3, not libdns_sd.so.1! After applying the attached patch, libavahi* is not referenced and lpq is linked against libdns_sd.so.1 as expected. # ldd work/stage/usr/local/bin/lpq work/stage/usr/local/bin/lpq: libcups.so.2 => /usr/local/lib/libcups.so.2 (0x881da000) libssl.so.7 => /usr/lib/libssl.so.7 (0x8823d000) libcrypto.so.7 => /lib/libcrypto.so.7 (0x88c00000) libdns_sd.so => /usr/local/lib/libdns_sd.so (0x88298000) libz.so.6 => /lib/libz.so.6 (0x882a0000) libm.so.5 => /lib/libm.so.5 (0x882b5000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x882dd000) libthr.so.3 => /lib/libthr.so.3 (0x88301000) libc.so.7 => /lib/libc.so.7 (0x8806d000) -- You are receiving this mail because: You are the assignee for the bug.