From owner-freebsd-ports@freebsd.org Sat Dec 19 13:08:26 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21F5EA4C203 for ; Sat, 19 Dec 2015 13:08:26 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFFC61149 for ; Sat, 19 Dec 2015 13:08:25 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id p203so88865471lfa.0 for ; Sat, 19 Dec 2015 05:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=QpyDCRC7hQ2ZaRr794EG15qoCQCPDI9VhVxq1Qo7Zm0=; b=GMUWidedF/9VDMpWVrloPYtYUjXJbLd5SMaGt0sejjbVcX/s7BvdlFc0MQIOnTLlVh GZ4b5/jAS2/2bCSZHpayasF1YkpEojD5KsATMs1SFl0SV3D+dVAUdxEZ8EGODAJtT5nE TYFByOQwc932bnJLOCHN8Zwnn9CNU3OLE22oWJwHw+dbdqgk5xYKx4yp7J9WINnVDlfM lW/KhJ8lxdfb4g4eHHErcJtMEIy/unyGX5JonDR6MST3DOOzti2+ppvD74fRnbetxyEH GSPM93xStlBnLwHoSUI340zsu3L8VrnrptzW25rdxrq6OqMa6LBakhrMDSnwbiDYoqSG vtAQ== X-Received: by 10.25.43.140 with SMTP id r134mr3186268lfr.103.1450530503723; Sat, 19 Dec 2015 05:08:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.41.193 with HTTP; Sat, 19 Dec 2015 05:07:54 -0800 (PST) From: Dewayne Geraghty Date: Sun, 20 Dec 2015 00:07:54 +1100 Message-ID: Subject: pkg info -B not listing all shared libraries To: ports-list freebsd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2015 13:08:26 -0000 Does "pkg info -B $pkg_name" only list the shared packages from the first level of supporting "ports", or is it supposed to be all shared (ports') libraries that are used? While reviewing the composition of packages, I noticed that not all shared libraries which are used, appear in the output from "pkg info -B $pkg_name". Lets use curl as an example. The library /usr/local/lib/libintl.so.8 is missing from # pkg info -B curl-7.45.0 curl-7.45.0: libheimntlm.so.0 libssh2.so.1 libcrypto.so.8 libheimbase.so.1 libkrb5.so.26 libhx509.so.5 libasn1.so.8 libgssapi.so.3 libcom_err.so.1 libroken.so.18 libssl.so.8 libwind.so.0 However # ldd `which curl` /usr/local/bin/curl: libcurl.so.4 => /usr/local/lib/libcurl.so.4 (0x800848000) libssl.so.8 => /usr/local/lib/libssl.so.8 (0x800ab9000) libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x800d25000) libz.so.6 => /lib/libz.so.6 (0x801139000) libkrb5.so.26 => /usr/local/lib/heimdal/libkrb5.so.26 (0x80134f000) libgssapi.so.3 => /usr/local/lib/heimdal/libgssapi.so.3 (0x8015ca000) libthr.so.3 => /lib/libthr.so.3 (0x801803000) libc.so.7 => /lib/libc.so.7 (0x801a28000) libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x801dcc000) libheimntlm.so.0 => /usr/local/lib/heimdal/libheimntlm.so.0 (0x801ff4000) libhx509.so.5 => /usr/local/lib/heimdal/libhx509.so.5 (0x8021fa000) libcom_err.so.1 => /usr/local/lib/heimdal/libcom_err.so.1 (0x802443000) libasn1.so.8 => /usr/local/lib/heimdal/libasn1.so.8 (0x802646000) libwind.so.0 => /usr/local/lib/heimdal/libwind.so.0 (0x8028e4000) libheimbase.so.1 => /usr/local/lib/heimdal/libheimbase.so.1 (0x802b0c000) libroken.so.18 => /usr/local/lib/heimdal/libroken.so.18 (0x802d10000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x802f21000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x803141000) I appreciate that libintl.so.8 is part of the gettext-runtime, a second tier of inclusion (by heimdal); however both the output from "pkg info -B" and the documentation either (respectively) imply or state that "-B Display all shared libraries used by pkg-name". Perhaps this can be addressed in the documentation by adding "only shared libraries from the first level of dependencies upon other ports are included", which also accommodates the missing system libraries (libz, libcrypt, ...)? [I came across this while looking for efficient ways to prune unnecessary libraries from the system.] Regards, Dewayne.