From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefanos Harhalakis Date: Sun, 10 Dec 2006 13:53:04 +0000 Subject: Re: udev patch Message-Id: <200612101553.08434.v13@it.teithe.gr> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0808521534==" List-Id: References: <200612092004.09587.v13@it.teithe.gr> In-Reply-To: <200612092004.09587.v13@it.teithe.gr> To: linux-hotplug@vger.kernel.org --===============0808521534== Content-Type: multipart/signed; boundary="nextPart9484159.SUPuLOFSdJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart9484159.SUPuLOFSdJ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 09 December 2006 21:42, Bryan Kadzban wrote: > Stefanos Harhalakis wrote: > > Currently udev does not reread changed rule files when using > > symlinks. Debian uses the symlink approach > > I have often wondered why Debian uses symlinks for the rules files. Is > it just for compatibility with an ancient version of udev, that put the > rules somewhere else? Or is it something with package upgrades, to > handle it better when users decide to remove rules files? (If that's > the case, then could the normal dpkg config-file handling -- or anything > that wouldn't require the files to be kept in two places -- work?) Or > is it something else? > > Or has this already been discussed to death on Debian lists? ;-) I'm not a debian developer, maintainer or anything more than a debian use= r,=20 so I'll just copy & paste a part from the README.Debian of the udev package: =2D---- MAINTAINERS BEWARE: the use of /etc/udev/rules.d/ by other packages is discouraged, except when only RUN rules are added. If you think your package needs to create a file there, then please contact the udev package maintainer and explain your needs. Packages should NEVER create files in /etc/udev/rules.d/, but create a symlink the first time the package is installed (and never try again, to allow the local system administrator to remove it). =2D---- A mail that illustrates this can be found at: http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/2006-March/003158.h= tml There is a debhelper for udev rules called 'dh_installudev' which says: =2D---- DESCRIPTION dh_installudev is a debhelper program that is responsible for installing udev rules files. Files named debian/package.udev will be installed as etc/udev/pack= =E2=80=90 age.rules in the package build directory. Then postinst and postrm commands are automatically generated to ena= ble the rules file when the package is first installed, by creating a sy= m=E2=80=90 link to it in the /etc/udev/rules.d/ directory. See dh_installdeb(1) for an explanation of how this works. =2D---- So I believe that this matches both of your answers, about better=20 removal/addition and about the long discussion :-) I've CC'd this to Marco d'Itri , which is the debian udev=20 package maintainer and may answer your questions in more depth. --nextPart9484159.SUPuLOFSdJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFfBFEC3eCoT20km8RAiElAJ0V3K6bnpwC0I5XQJrHui2/aHwFbQCfZ4Ta cMzKLzItFdHWAIo3fRMKez0= =3NOG -----END PGP SIGNATURE----- --nextPart9484159.SUPuLOFSdJ-- --===============0808521534== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============0808521534== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel --===============0808521534==--