Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jul 2014 23:51:35 +0000
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
Message-ID:  <bug-191619-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191619-13>