From owner-freebsd-current@freebsd.org  Sat Oct 31 14:23:18 2015
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@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 40B23A22823
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Sat, 31 Oct 2015 14:23:18 +0000 (UTC)
 (envelope-from eric@vangyzen.net)
Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146])
 by mx1.freebsd.org (Postfix) with ESMTP id 200E61CFB;
 Sat, 31 Oct 2015 14:23:17 +0000 (UTC)
 (envelope-from eric@vangyzen.net)
Received: from coconut.local (unknown [76.164.15.242])
 by smtp.vangyzen.net (Postfix) with ESMTPSA id 6729C56486;
 Sat, 31 Oct 2015 09:23:10 -0500 (CDT)
Subject: Re: [HEADSUP] OpenSSL updated to 1.0.2d
To: "O. Hartmann" <ohartman@zedat.fu-berlin.de>, Jung-uk Kim <jkim@FreeBSD.org>
References: <5633D9C9.2060906@FreeBSD.org>
 <20151031112545.46aa9dca.ohartman@zedat.fu-berlin.de>
Cc: FreeBSD-current <freebsd-current@FreeBSD.org>
From: Eric van Gyzen <eric@vangyzen.net>
Message-ID: <5634CECA.6080405@vangyzen.net>
Date: Sat, 31 Oct 2015 09:23:06 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0)
 Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <20151031112545.46aa9dca.ohartman@zedat.fu-berlin.de>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 31 Oct 2015 14:23:18 -0000

On 10/31/15 5:25 AM, O. Hartmann wrote:
> Am Fri, 30 Oct 2015 16:57:45 -0400
> Jung-uk Kim <jkim@FreeBSD.org> schrieb:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> OpenSSL on head has been updated to 1.0.2d.  Please make sure to
>> recompile all binaries depending on libcrypto.so.7 or libssl.so.7.
>
> That is good news.
>
> Could you provide, please, some hints how one could check all installed ports for the
> usage of those specific libraries? Or could you provide a hint towards an existing port
> already providing those tools? It would be great for those "from the set of ordinary
> people" using FreeBSD.
>
> I ask for that because I recall that there were a couple of ports which explicitely asks
> for a selection of what SSL lib should be used and in my case, I use the base system's
> one.

I expect there's a port, but I'm not aware of one.

This should work:

find /usr/local/*bin /usr/local/lib* -type f | \
while read F; do \
	objdump -x $F 2>&1 | grep -Eq 'NEEDED  *lib(crypto|ssl).so.7' && \
		echo $F; \
done

This is in /bin/sh (or bash).  You could change "echo" to "pkg which"
to show the package names.

Cheers,

Eric