Date: Fri, 5 Nov 2010 13:40:48 +0000 From: Anton Shterenlikht <mexas@bristol.ac.uk> To: Benedict Reuschling <bcr@freebsd.org> Cc: freebsd-doc@freebsd.org Subject: Re: docs/137762: [handbook] [patch] proposed: mention "make delete-old" in sec 24.7 Rebuilding World Message-ID: <20101105134048.GA35655@mech-cluster241.men.bris.ac.uk> In-Reply-To: <201010142000.o9EK0O2a079577@freefall.freebsd.org> References: <201010142000.o9EK0O2a079577@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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" <bcr@FreeBSD.org> > 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 ---- </sect2> </sect1> + <sect1 id="make-delete-old"> + <sect1info> + <authorgroup> + <author> + <firstname>Anton</firstname> + <surname>Shterenlikht</surname> + <contrib>Based on notes provided by </contrib> + </author> + </authorgroup> + </sect1info> + <title>Deleting obsolete files, directories and libraries</title> + <indexterm><primary>Deleting obsolete files, directories and libraries</primary></indexterm> + <para>Remove obsolete files to prevent problems.</para> + <para>Check for obsolete files:</para> + <screen>&prompt.root; <userinput>cd /usr/src</userinput> + &prompt.root; <userinput>make check-old</userinput> + &prompt.root; <userinput>make check-old-libs</userinput></screen> + <para>If any obsolete files are found, they can be deleted with</para> + <screen>&prompt.root; <userinput>make delete-old</userinput> + &prompt.root; <userinput>make delete-old-libs</userinput></screen> + <tip> + <para>See <filename>/usr/src/Makefile</filename> + for more targets of interest.</para> + </tip> + <para>A prompt is displayed before deleting each obsolete file.</para> + <warning> + <title>Warning</title> + <para>Deleting obsolete files will break applications that still + depend on those obsolete files.</para> + </warning> + <para>Utilities for checking shared library dependencies are available + in <filename role="package">sysutils/libchk</filename> + or <filename role="package">sysutils/bsdadminscripts</filename>.</para> + <para>Obsolete shared libraries can conflict with newer libraries, + causing messages like these:</para> + <screen>/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</screen> + <para>To solve these problems, determine which port installed the library:</para> + <screen>&prompt.root; <userinput>pkg_info -W /usr/local/lib/libtiff.so</userinput> + /usr/local/lib/libtiff.so was installed by package tiff-3.9.4 + &prompt.root; <userinput>pkg_info -W /usr/local/lib/libXext.so</userinput> + /usr/local/lib/libXext.so was installed by package libXext-1.1.1,1</screen> + <para>Then deinstall, rebuild and reinstall the port. The + <filename role="package">ports-mgmt/portmaster</filename> + utility can be used to automate this process.</para> + </sect1> + <sect1 id="small-lan"> <sect1info> <authorgroup> --9jxsPFA5p3P2qPhR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101105134048.GA35655>