From owner-freebsd-questions@FreeBSD.ORG Sat Mar 20 23:52:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E05616A4CE for ; Sat, 20 Mar 2004 23:52:48 -0800 (PST) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03AFB43D46 for ; Sat, 20 Mar 2004 23:52:48 -0800 (PST) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i2L7pamH009789; Sat, 20 Mar 2004 23:51:36 -0800 From: Kent Stewart To: freebsd-questions@freebsd.org Date: Sat, 20 Mar 2004 23:52:12 -0800 User-Agent: KMail/1.6.1 References: <1079841282.664.10.camel@osaka> <20040321065555.GE2097@dan.emsphone.com> <200403210708.I2L78Y8J027993@asarian-host.net> In-Reply-To: <200403210708.I2L78Y8J027993@asarian-host.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403202352.12548.kstewart@owt.com> Subject: Re: Do I really need to rebuilding *everything* X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 07:52:48 -0000 On Saturday 20 March 2004 11:08 pm, Mark wrote: > ----- Original Message ----- > From: "Dan Nelson" > To: "Mark" > Cc: > Sent: Sunday, March 21, 2004 7:55 AM > Subject: Re: Do I really need to rebuilding *everything* > > > > > > Question is, can I get away with rebuilding my entire > > > > > ports collection? With about 300 apps complied, I really > > > > > don't want to do it. ;_; > > > > > > > > You only need to rebuild the ports that use the openssl libs > > > > and link statically. My guess is that would be zero. > > > > > > What do you mean? I built OpenSSL into everything; sendmail, > > > Apache, qpopper, stunnel, php4, mod_perl, etc. Close to the 300 > > > of the original poster. :) And like him, I really feel rather > > > upset if I'd have to do it all over again. Or are all of the > > > above dynamically linked? > > > > The file command will indicate whether a program was linked static > > or dynamic. > > Pardon my daftness, but how is a 'file' against, say, httpd, like > this, > > file /usr/local/sbin/httpd > /usr/local/sbin/httpd: ELF 32-bit LSB executable, Intel 80386, > version 1 (FreeBSD), dynamically linked (uses shared libs), not > stripped > > going to tell me whether httpd was dynamically linked against > OpenSSL, or statically? It just tells me httpd uses shared libraries. > Or does it mean it ONLY uses shared libraries? > I use a script that I call pkgreq (pkg-required). It is # cat pkgreq #! /bin/sh cd /var/db/pkg pkg_info -R "$1*" | more The only thing it shows openssl being used for me is Apache-2.0.49. That is a no-brainer since Apache was updated to .49 after I updated openssl. One thing to remember is that if a header file had been changed, which wasn't the case here, even dynamic library usage may have required a rebuild to be safe. If they had to change the typing of a variable used by a module, any program that used that module with the incorrect typing could have been passing or receiving bad data. Off by one or more errors occur when a structure is modified and using programs aren't rebuilt. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html