*** /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.
+
+