From owner-freebsd-hackers Tue Nov 18 10:59:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA13399 for hackers-outgoing; Tue, 18 Nov 1997 10:59:53 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id KAA13385 for ; Tue, 18 Nov 1997 10:59:40 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id SAA21234; Tue, 18 Nov 1997 18:51:27 +0100 From: Luigi Rizzo Message-Id: <199711181751.SAA21234@labinfo.iet.unipi.it> Subject: Re: multiple instances of the same files... To: julian@whistle.com (Julian Elischer) Date: Tue, 18 Nov 1997 18:51:27 +0100 (MET) Cc: hackers@FreeBSD.ORG In-Reply-To: <3471E066.446B9B3D@whistle.com> from "Julian Elischer" at Nov 18, 97 10:37:07 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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/ _____________________________|______________________________________