From owner-freebsd-arch Mon Feb 10 14: 9:17 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 A02D037B401 for ; Mon, 10 Feb 2003 14:09:15 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7E904400B for ; Mon, 10 Feb 2003 14:09:05 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id D5CA32A8C2; Mon, 10 Feb 2003 14:09:05 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Alfred Perlstein Cc: phk@phk.freebsd.dk, arch@freebsd.org Subject: Re: Indiscriminately installing all .h files in /usr/include/* In-Reply-To: <20030210184934.GW88781@elvis.mu.org> Date: Mon, 10 Feb 2003 14:09:05 -0800 From: Peter Wemm Message-Id: <20030210220905.D5CA32A8C2@canning.wemm.org> 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 Alfred Perlstein wrote: > * Peter Wemm [030210 10:35] wrote: > > phk@phk.freebsd.dk wrote: > > > In message <20030210114740.GG5355@starjuice.net>, Sheldon Hearn writes: > > > >On (2003/02/08 14:31), phk@phk.freebsd.dk wrote: > > > > > > > >> Not being the kind of guy who casually walks through /usr/include > > > >> once in a while, I only now just discovered that "make installincludes " > > > >> indiscriminately installs all .h files under /usr/include. > > > >> > > > >> I understand the desirablity of simple makefile magic for this task, > > > >> but couldn't we agree on some sort of magic-marker to put in files > > > >> we want or don't want installed in /usr/include ? > > > > > > > >Could you give some specific examples of files you wouldn't want > > > >installed by this target? > > > > > > geom/geom.h for starters. > > > > > > Other examples: > > > cam/cam_extend.h > > > cam/cam_periph.h > > > cam/cam_queue.h > > > > 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 definitio ns > > 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. > > If there was a way to do it via cpp defines inside the header that would > be nice. Something like this perhaps? ^/* EXPORT_HEADER */$ Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message