Date: Mon, 10 Feb 2003 20:17:21 -0800 From: Peter Wemm <peter@wemm.org> To: "Sam Leffler" <sam@errno.com> Cc: "Alfred Perlstein" <bright@mu.org>, phk@phk.freebsd.dk, arch@FreeBSD.ORG Subject: Re: Indiscriminately installing all .h files in /usr/include/* Message-ID: <20030211041721.B3AEE2A8B4@canning.wemm.org> In-Reply-To: <143501c2d154$9c3c70e0$52557f42@errno.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Sam Leffler" wrote: > > In message <20030210221501.GF88781@elvis.mu.org>, Alfred Perlstein writes: > > >* Peter Wemm <peter@wemm.org> [030210 14:09] wrote: > > >> > > > >> > If there was a way to do it via cpp defines inside the header that > would > > >> > be nice. > > >> > > >> Something like this perhaps? > > >> ^/* EXPORT_HEADER */$ > > > > > >Yes, something like that. I know of one company that brackets the > > >headers with $COMPANY_PRIVATE for stuff that shouldn't be visible in > > >/usr/include. if you wind up with an empty file it isn't even installed. > > > > I would prefer labeling the stuff that should go into /usr/include, > > it shouldn't be the default to export stuff unless you ask for it. > > Sticking this stuff inside include files means modifying imported files. > I'd actually prefer a mechanism like this to lurk in the Makefiles as you > can fully encapsulate requirements like the /usr/include/<dir> is different > than the source directory. I'd prefer an explicit list in the Makefiles rather than tagging. Under no circimstances should we be munging these on the way to /usr/include though since we still can have symlinks pointing to the sys tree... In other words, I'm fine with the kernel parts of /usr/include being a *subset* of whats in the kernel tree. But not different to it. Part of the reason why its done like it is right now is that nobody really got around to figuring out what was needed and doing the Makefile lists and testing that it didn't break stuff. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030211041721.B3AEE2A8B4>