From owner-freebsd-arch Mon Feb 10 17:41:14 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA98A37B405 for ; Mon, 10 Feb 2003 17:41:12 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA4AC43FCB for ; Mon, 10 Feb 2003 17:41:11 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0213.cvx22-bradley.dialup.earthlink.net ([209.179.198.213] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18iPPp-0001NP-00; Mon, 10 Feb 2003 17:40:54 -0800 Message-ID: <3E485453.E0CFD785@mindspring.com> Date: Mon, 10 Feb 2003 17:39:31 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Wemm Cc: phk@phk.freebsd.dk, Sheldon Hearn , arch@freebsd.org Subject: Re: Indiscriminately installing all .h files in /usr/include/* References: <20030210183517.5F0052A8BB@canning.wemm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a481dbf857cd71f230932e4df00d097ddf350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Wemm wrote: > I've been wondering if we need an explicit list of files to install for > a while. We've got lots of junk in /usr/include/dev/* that really shouldn't > be there. The only stuff that should be there are things to define > sysctl, ioctl etc user interfaces. Things like hardware register definitions > and random driver internals definitions do not really belong there. > /usr/include/usb/* is a good example. We do similar bad things for the > file systems. Isn't this already handled by not placing the header files into an area where header files are normally installed from and/or not naming them as install targets in the makefile? For example, if_fxpreg.h lives in /sys/pci, and is not installed into the /usr/include hierarchy, anywhere. There are other examples in the /usr/src/usr.bin and other utility trees, so this isn't a kernel-only thing. Isn't this really about programmers putting header files in the wrong place in the source tree, rather than the wrong place in the source tree's Makefile doing what it's been told to do? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message