From owner-freebsd-doc@FreeBSD.ORG Fri Nov 5 13:57:37 2010 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ACBA106564A; Fri, 5 Nov 2010 13:57:37 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 330E18FC15; Fri, 5 Nov 2010 13:57:37 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1PEMXB-0007gE-3P; Fri, 05 Nov 2010 13:40:49 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1PEMXA-0000gd-Vc; Fri, 05 Nov 2010 13:40:49 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id oA5DemTe035681; Fri, 5 Nov 2010 13:40:48 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id oA5DemWb035680; Fri, 5 Nov 2010 13:40:48 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 5 Nov 2010 13:40:48 +0000 From: Anton Shterenlikht To: Benedict Reuschling Message-ID: <20101105134048.GA35655@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Benedict Reuschling , freebsd-doc@freebsd.org References: <201010142000.o9EK0O2a079577@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <201010142000.o9EK0O2a079577@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-doc@freebsd.org Subject: Re: docs/137762: [handbook] [patch] proposed: mention "make delete-old" in sec 24.7 Rebuilding World X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2010 13:57:37 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 14, 2010 at 08:00:24PM +0000, Benedict Reuschling wrote: > The following reply was made to PR docs/137762; it has been noted by GNATS. > > From: "Benedict Reuschling" > To: bug-followup@FreeBSD.org, mexas@bristol.ac.uk > Cc: > Subject: Re: docs/137762: [handbook] [patch] proposed: mention "make > delete-old" in sec 24.7 Rebuilding World > Date: Thu, 14 Oct 2010 21:41:13 +0200 (CEST) > > I seem to have lost some of the discussions in between. > > Is the last patch you followed up with the complete patch or only a > correction to the larger patch above? > Can you post the last version (whole patch) again? sorry for the delay. The last patch was a complete patch. But I just re-checked again, and attach a complete patch again. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 --9jxsPFA5p3P2qPhR Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="make-delete-old.diff" *** /doc/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml Sun Aug 29 14:42:49 2010 --- ./chapter.sgml Fri Nov 5 13:05:37 2010 *************** *** 3029,3034 **** --- 3029,3081 ---- + + + + + Anton + Shterenlikht + Based on notes provided by + + + + Deleting obsolete files, directories and libraries + Deleting obsolete files, directories and libraries + Remove obsolete files to prevent problems. + Check for obsolete files: + &prompt.root; cd /usr/src + &prompt.root; make check-old + &prompt.root; make check-old-libs + If any obsolete files are found, they can be deleted with + &prompt.root; make delete-old + &prompt.root; make delete-old-libs + + See /usr/src/Makefile + for more targets of interest. + + A prompt is displayed before deleting each obsolete file. + + Warning + Deleting obsolete files will break applications that still + depend on those obsolete files. + + Utilities for checking shared library dependencies are available + in sysutils/libchk + or sysutils/bsdadminscripts. + Obsolete shared libraries can conflict with newer libraries, + causing messages like these: + /usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libtiff.so, may conflict with libz.so.5 + /usr/bin/ld: warning: librpcsvc.so.4, needed by /usr/local/lib/libXext.so, may conflict with librpcsvc.so.5 + To solve these problems, determine which port installed the library: + &prompt.root; pkg_info -W /usr/local/lib/libtiff.so + /usr/local/lib/libtiff.so was installed by package tiff-3.9.4 + &prompt.root; pkg_info -W /usr/local/lib/libXext.so + /usr/local/lib/libXext.so was installed by package libXext-1.1.1,1 + Then deinstall, rebuild and reinstall the port. The + ports-mgmt/portmaster + utility can be used to automate this process. + + --9jxsPFA5p3P2qPhR--