From owner-freebsd-questions@freebsd.org Tue Jan 5 11:00:44 2016 Return-Path: Delivered-To: freebsd-questions@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 7732DA61B45 for ; Tue, 5 Jan 2016 11:00:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 387321838 for ; Tue, 5 Jan 2016 11:00:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-21-51.dynamic.qsc.de [92.195.21.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 8AAB53CDA0; Tue, 5 Jan 2016 12:00:40 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u05B0dsr002113; Tue, 5 Jan 2016 12:00:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 5 Jan 2016 12:00:39 +0100 From: Polytropon To: Shane Ambler Cc: Markus Edemalm , freebsd-questions@freebsd.org Subject: Re: Safe to delete old files in /usr/lib? Message-Id: <20160105120039.77065770.freebsd@edvax.de> In-Reply-To: <568B3CD2.8030708@ShaneWare.Biz> References: <20160104181211.76907a30.freebsd@edvax.de> <20160104185245.5ca2e4f1.freebsd@edvax.de> <20160104203418.aee8df91.freebsd@edvax.de> <568B3CD2.8030708@ShaneWare.Biz> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2016 11:00:44 -0000 On Tue, 5 Jan 2016 14:17:30 +1030, Shane Ambler wrote: > On 05/01/2016 06:04, Polytropon wrote: > > On Mon, 4 Jan 2016 19:18:02 +0100, Markus Edemalm wrote: > >>> 4 jan. 2016 kl. 18:52 skrev Polytropon : > >>> > >>> On Mon, 4 Jan 2016 18:28:14 +0100, Markus Edemalm wrote: > >>>>> 4 jan. 2016 kl. 18:12 skrev Polytropon : > >>>>> > >>>>> On Mon, 4 Jan 2016 18:06:00 +0100, Markus Edemalm wrote: > >>>>>> Hello, > >>>>>> > >>>>>> My system was first installed as 10.0-RELEASE. I have > >>>>>> sinceupgraded to 10.1, 10.1-STABLE, 10.2-RELEASE and is now > >>>>>> at 10.2-RELEASE-p8. > >>>>>> I’ve rebuild from source and followed the steps in the > >>>>>> handbook. Everything is fine… but: > >>>>>> > >>>>>> I see many files in /usr/lib with old dates, apparently > >>>>>> they are > no longer installed during upgrades. > > Did you clear out /usr/obj > With the right modifications dates, a binary doesn't need to be rebuilt Maybe the installation process has copied files from /usr/obj which have been left there from a previous build? > .a files should be copied into the final binary, so removing .a files > won't break anything that is already built, but the next make could > fail with a missing library at link time. Usually this should not happen. The build process happens "inside" the generated /usr/obj subtree ("self-contained"), at least regarding libraries to link against. > I am running 10-stable and run make delete-old after upgrades - > > ls /usr/lib/*.a | wc -l > 292 > ls /usr/lib/*.so | wc -l > 162 > > find /usr/lib -type l -name "*.a" | wc -l > 22 > > I do seem to have a few old libs > > find /usr/lib -not -newermt "2 weeks ago" | wc -l > 19 > > Downloading base.txz for 10.2-RELEASE - > > ls usr/lib/*.a | wc -l > 287 > ls usr/lib/*.so | wc -l > 162 So this is the relevant clue: Those files came from the initial installation. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...