From owner-freebsd-current Mon Dec 25 17:13:12 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA10187 for current-outgoing; Mon, 25 Dec 1995 17:13:12 -0800 (PST) Received: from twitch.io.org (root@twitch.io.org [198.133.36.152]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA10178 for ; Mon, 25 Dec 1995 17:12:56 -0800 (PST) Received: from else (root@else.net [204.92.4.245]) by twitch.io.org (8.6.9/8.6.9) with SMTP id LAA03429 for ; Mon, 25 Dec 1995 11:36:43 -0500 Date: Mon, 25 Dec 1995 11:37:33 -0500 (EST) From: James FitzGibbon To: current@freebsd.org Subject: Suggestion for target 'includes' Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk I'd like to make a suggestion for a slight change to the /usr/src/Makefile target 'includes'. Granted, it's a change that shouldn't be required if everything has been done by the book, but it would have saved me a lot of trouble trying to build current: The target runs an rm -rf on /usr/include followed by an mtree only if CLOBBER is defined. Consider what happens if the directories that mtree would install are not there (corrupted include directory) but CLOBBER is not defined - all includes in the main directory are installed fine, but something like /usr/include/readline/history.h never gets there. Instead, the five files that should be in the readline directory are copies successively over the file named /usr/include/readline. This causes failed builds duirng a make world, but not until the compile is all the way into 'make all gnu/usr.bin'. It's hard to fix this error without digging, and then running a -DCLOBBEr (which negates most of what you built before the crash). Since mtree is already being called in a non-destructive manner, why not move it out of the .if-.endif clause and make it run whether CLOBBER is defined or not? That would save a build from failing halfway through for stupid reasons. j.