From owner-freebsd-doc@FreeBSD.ORG Tue Sep 14 09:20:03 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC2631065672 for ; Tue, 14 Sep 2010 09:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6198FC15 for ; Tue, 14 Sep 2010 09:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8E9K3eI020729 for ; Tue, 14 Sep 2010 09:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8E9K3VF020728; Tue, 14 Sep 2010 09:20:03 GMT (envelope-from gnats) Date: Tue, 14 Sep 2010 09:20:03 GMT Message-Id: <201009140920.o8E9K3VF020728@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Anton Shterenlikht Cc: Subject: Re: docs/137762: [handbook] 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 Reply-To: Anton Shterenlikht List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2010 09:20:03 -0000 The following reply was made to PR docs/137762; it has been noted by GNATS. From: Anton Shterenlikht To: Warren Block , bug-followup@freebsd.org Cc: Subject: Re: docs/137762: [handbook] proposed: mention "make delete-old" in sec 24.7 Rebuilding World Date: Tue, 14 Sep 2010 10:14:33 +0100 ok, how about this: http://seis.bris.ac.uk/~mexas/make-delete-old.html patch: *** /usr/doc/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml 2010-08-29 14:42:49.000000000 +0100 --- ./chapter.sgml 2010-09-14 10:05:58.000000000 +0100 *************** *** 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. + + -- 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