size of debug symbols

Polytropon freebsd at edvax.de
Sat Feb 23 06:03:47 UTC 2019


On Fri, 22 Feb 2019 14:37:57 -0500, Robert Huff wrote:
> 
> Me:
> 
> >  > 	When I run "make delete-old", I get asked about each individual file.
> >  > 	There are a _lot_ of files.
> >  > 	Is there a way to say "y" to everything?  I know this -
> >  > technically - incurs a certain amount of risk.  But considering Ican't
> >  > remember any reports of someone getting bit by this it seems like a
> >  > risk worth taking.
> 
> 	Two people suggested:
> 
> >  Add -DBATCH_DELETE_OLD_FILES to your make invocation.
> 
> 	Hot dang - it worked!

Of course it did, the documentation says so. For reference:

	24.8 Deleting obsolete files, directories and libraries

	[...]

	We assume you are following the steps outlined in Section
	24.7.1. After the make installworld and the subsequent
	mergemaster commands have finished successfully, you should
	check for obsolete files and libraries as follows:

	# cd /usr/src
	# make check-old

	If any obsolete files are found, they can be deleted
	using the following commands:

	# make delete-old

	Tip: See /usr/src/Makefile for more targets of interest.

	A prompt is displayed before deleting each obsolete file.
	You can skip the prompt and let the system remove these
	files automatically by using the BATCH_DELETE_OLD_FILES
	make-variable as follows:

	# make -DBATCH_DELETE_OLD_FILES delete-old

	You can also achieve the same goal by piping these commands
	through yes like this:

	# yes|make delete-old

	[...]

	After you've made sure that all ports are rebuilt and
	do not use the old libraries anymore, you can delete them
	using the following command:

	# make delete-old-libs

As I mentioned, the comment header of /usr/src/Makefile is full of
paths toward enlightenment. ;-)



https://docs.freebsd.org/doc/7.4-RELEASE/usr/share/doc/handbook/make-delete-old.html


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list