From owner-freebsd-ports Sat Mar 1 4:32:32 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4E4837B401 for ; Sat, 1 Mar 2003 04:32:30 -0800 (PST) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8630943FFB for ; Sat, 1 Mar 2003 04:32:26 -0800 (PST) (envelope-from mailnull@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with gbsmtp id 18p6AC-00011w-04; Sat, 01 Mar 2003 13:32:24 +0100 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.7/8.12.6) with ESMTP id h21CMt1s017030 for ; Sat, 1 Mar 2003 13:22:55 +0100 (CET) (envelope-from mailnull@localhost.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.12.7/8.12.7/Submit) id h21CMtGp017029 for freebsd-ports@freebsd.org; Sat, 1 Mar 2003 13:22:55 +0100 (CET) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: WARNING: portupgrade considered harmful Date: Sat, 1 Mar 2003 12:22:54 +0000 (UTC) Message-ID: References: <3E5FB1F8.4050405@mail.flyingcroc.net> <200303010416.50699.michaelnottebrock@gmx.net> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Michael Nottebrock wrote: > > I don't understand this. /usr/local/lib/compat/pkg is not in ld's > > search path, why should it pick up libraries from there? > > Because portupgrade/portsclean runs ldconfig accordingly after > moving/deleting libraries. ldconfig sets ld-elf.so's search path. When you build a program, ld(1) picks the available libraries from its search path, which includes /usr/lib and everything you happen to specify with -L. When you run a program, ld-elf.so(1) will pick up the libraries from the search path set with ldconfig(8). Unless you foolishly build a program with -L/usr/local/lib/compat/pkg, the old libraries there will never be used when producing new executables. However, the dynamic linker will search the compat directory at execution time, so the old libraries are still available to old executables. I don't see how the problem under discussion can arise. -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message