Red Hat Bugzilla – Bug 146623
rpm 4.4.1 - %dev doesn't work as expected anymore
Last modified: 2007-11-30 17:10:59 EST
Description of problem:
Since rpm 4.4.x, %dev doesn't work as expected anymore, IMHO it's
a regression in rpm - even if devfs/hal etc is mostly used. Either
%dev should be obsoleted correctly or the support of %dev should be
Version-Release number of selected component (if applicable):
Everytime, see below.
Steps to Reproduce:
1. Take the following as spec file "dummy.spec":
--- snipp ---
Summary: Dummy test package for %%dev
%attr(0644, root, root) %dev(c, 10, 175) /dev/dummy
--- snapp ---
2. rpmbuild -ba dummy.spec
3. Die with this error:
error: magic_file(ms, "/var/tmp/dummy-0.0.1-root/dev/dummy") failed:
cannot open `/var/tmp/dummy-0.0.1-root/dev/dummy'
(No such file or directory)
rpmbuild: rpmfc.c:1225: rpmfcClassify:
Assertion `ftype != ((void *)0)' failed.
4. If you try the same with rpm 4.3.x for example, the rebuild will
The use of %dev currently causes bad error messages :-(
Working %dev as in rpm < 4.4 it was the case... :)
Fixed on rpm-4_4 branch, in rpm-4.4.1-1 final when built.
The same issue happens with static device nodes for udev under /etc. Could
/etc/udev/devices/ be removed from the classification list as well? Thanks!
[pauln@enki SPECS]$ rpm -qpvl ../RPMS/devetc-0.0.1-1.i386.rpm
c--------- 1 root root 10, 175 Oct 21 18:06 /dev/dummy
c--------- 1 root root 7, 6 Oct 21 18:06 /etc/udev/devices/loop6
rpm -i/-e work as normal for me.