FS#13801 - [udev] Adding /etc/udev/rules.d/81-arch.rules to the backup line of the PKGBUILD
Attached to Project:
Arch Linux
Opened by Tom (reztho) - Saturday, 14 March 2009, 11:43 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 17 March 2009, 21:25 GMT
Opened by Tom (reztho) - Saturday, 14 March 2009, 11:43 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 17 March 2009, 21:25 GMT
|
Details
Description:
Following the instructions of /usr/share/udev/readme-udev-arch.txt, if I want to have permanent cd/dvd symlinks, I must comment some lines of the 81-arch.rules file. Since that file isn't in the backup line of the udev PKGBUILD, everytime udev is updated I must comment the same lines again and again. I prefer pacman to generate a .pacnew file and then I'll merge the changes manually. |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Tuesday, 17 March 2009, 21:25 GMT
Reason for closing: Fixed
Additional comments about closing: udev-140-1
Tuesday, 17 March 2009, 21:25 GMT
Reason for closing: Fixed
Additional comments about closing: udev-140-1
Pacman already provides facilities to cover this.
# /etc/pacman.conf
[options]
NoUpgrade = etc/udev/rules.d/81-arch.rules
FS#13832to better document this feature of pacman.Although I actually don't care how udev works today. I just wouldn't want my symlinks to break because of an update (i already suffered that). The cdsymlinks part seems a little hackish to me, since you cannot control how the script works. The first step made by the script is deleting every cd/dvd symlink you've already made (so that's why it needs to be commented).
Maybe that way, I'll be in the same situation (I'm not sure) since I must take care of the changes myself (since I'm overriding the file in /etc) and other things of my system will break too.
Maybe if you don't remove by default the possible previous cd/dvd symlinks and put some conditions in the cdsymlinks script for the possible coincidences, it will be ok. Something like "if this symlink already exists, I don't touch it".
Please report the issues you have with cdsymlinks in another bug, and we can get to fixing those.
But the "I made changes to the arch rules" thing still remains a valid bug here.
For me it's clear cdsymlinks behaviour must be changed before doing anything. That way the backup line for the /lib/udev/ will be mandatory too.
You can read the arch readme udev and you'll see changing the arch rules for this is expected to be done by the user, just someone forgot to add the backup line.
And sure I will open the bug report for cdsymlinks.
It will be a worst situation if you are expecting the users themselves to check manually the files without any notice from pacman.
I'm saying to you I'm agree the file must be moved, just the cdsymlinks configuration must be corrected before doing that change.
Although some things i've said makes some sense.