Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269392 - sys-fs/udev-124-r2: new foo.conf file installed beside old foo file
Summary: sys-fs/udev-124-r2: new foo.conf file installed beside old foo file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 11:51 UTC by Toralf Förster
Modified: 2009-05-12 17:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2009-05-11 11:51:22 UTC
re-emerging gives :

n22 /etc/modprobe.d # ll
total 20
-rw-r--r-- 1 root root 1028 Dec 15 14:51 alsa
-rw-r--r-- 1 root root  870 Apr  8 16:19 blacklist
-rw-r--r-- 1 root root  854 May 11 13:46 blacklist.conf
-rw-r--r-- 1 root root  537 May 11 13:46 pnp-aliases.conf
-rw-r--r-- 1 root root  299 Oct 10  2008 ppp

n22 /etc/modprobe.d # diff blacklist blacklist.conf
18c18
< blacklist pcspkr
---
> #blacklist pcspkr
27,28d26
< blacklist ath5k
<

n22 /etc/modprobe.d # etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)

I had manually to merge my local changes by this :

n22 /etc/modprobe.d # rm blacklist.conf
n22 /etc/modprobe.d # mv blacklist blacklist.conf


Reproducible: Always
Comment 1 Matthias Schwarzott gentoo-dev 2009-05-12 10:02:29 UTC
So what do you suggest?

We could add this code to pkg_preinst:
oldf=$ROOT/etc/modprobe.d/blacklist
newf=$ROOT/etc/modprobe.d/blacklist.conf
if [[ -f $oldf && ! -f $newf ]]; then
  elog "Renaming file $oldf to blacklist.conf"
  mv "$oldf" "$newf"
fi
Comment 2 Toralf Förster gentoo-dev 2009-05-12 11:21:55 UTC
looks good IMHO
Comment 3 Matthias Schwarzott gentoo-dev 2009-05-12 17:47:33 UTC
Commited to udev-124-r2 and udev-141.

Btw. you need not modify the existing file blacklist.conf, you also can add new files with your blacklist entries.