Date: Tue, 18 Nov 1997 18:51:27 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: julian@whistle.com (Julian Elischer) Cc: hackers@FreeBSD.ORG Subject: Re: multiple instances of the same files... Message-ID: <199711181751.SAA21234@labinfo.iet.unipi.it> In-Reply-To: <3471E066.446B9B3D@whistle.com> from "Julian Elischer" at Nov 18, 97 10:37:07 am
next in thread | previous in thread | raw e-mail | index | archive | help
> Luigi Rizzo wrote:
> >
> > Well I have the following problem (derived from the sound driver)
> >
> > the file "soundcard.h" is replicated three times:
> no you have 2
>
> >
> > 1. /usr/include/machine/soundcard.h
> > 2. /sys/i386/include/soundcard.h
> > 3. /sys/i386/isa/snd/soundcard.h
>
> /usr/include/machine is supposed to be a symlink (or copy) of
> /sys/i386/include
unfortunately it is a copy, because not everybody has kernel sources
installed so they might miss #2.
Having a copy instead of a symlink is boring since when you do
development you might make changes to #2 and forget to update #1.
generally, I manually make #1 a symlink to #2.
The problem now is if you distribute updates of a kernel package (typical
with experimental device drivers), it is easier to have all things in
one place (hence the existence of #3) rather than having pieces
scattered around.
This is not only my problem: the meteor and bt848 drivers had the
same problem with ioctl_{meteor|bt848}.h being in a different
directory; and even the guspnp code distributed by amancio has the
same problem (to the point that his distribution does not even have
soundcard.h into it!)
Luigi
-----------------------------+--------------------------------------
Luigi Rizzo | Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it | Universita' di Pisa
tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/
_____________________________|______________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711181751.SAA21234>
