Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 146623 - rpm 4.4.1 - %dev doesn't work as expected anymore
rpm 4.4.1 - %dev doesn't work as expected anymore
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2005-01-30 18:40 EST by Robert Scheck
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-25 18:29:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2005-01-30 18:40:53 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):

How reproducible:
Everytime, see below.

Steps to Reproduce:
1. Take the following as spec file "dummy.spec":
--- snipp ---
Summary:        Dummy test package for %%dev
Name:           dummy
Version:        0.0.1
Release:        1
License:        Blahblub
Group:          Foo/Bar
BuildRoot:      %{_tmppath}/%{name}-%{version}-root


%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
   work fine.

Actual results:
The use of %dev currently causes bad error messages :-(

Expected results:
Working %dev as in rpm < 4.4 it was the case... :)
Comment 1 Jeff Johnson 2005-02-13 15:44:43 EST
Fixed on rpm-4_4 branch, in rpm-4.4.1-1 final when built.
Comment 2 Axel Thimm 2005-05-29 08:09:11 EDT
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!
Comment 3 Paul Nasrat 2005-10-21 18:05:16 EDT
[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.

Note You need to log in before you can comment on or make changes to this bug.