chiark / gitweb /
[PATCH] patch udev 009-010 rpm spec file
authormh@nadir.org <mh@nadir.org>
Thu, 25 Dec 2003 06:54:39 +0000 (22:54 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:10 +0000 (21:13 -0700)
the following problem was introduced with udev 009:

[root@claw packages]# rpm -Uvh ~mh/rpm/RPMS/ppc/udev-010-1.ppc.rpm
Preparing...########################################### [100%]
   1:udev   ########################################### [100%]
error: unpacking of archive failed on file /usr/share/doc/udev-010/COPYING;3fe8a8e3: cpio: open failed - Permission denied

it's because the mode of the directory /usr/share/doc/udev-010/ is
0644. This is with yellodog-3.0.

the following patch fixes it:

udev.spec

index cdfc23e19830bf6661e48df3a5bbf99743909610..6530c557c769fb92961e9791a0bfdf4c9cf88c56 100644 (file)
--- a/udev.spec
+++ b/udev.spec
@@ -35,7 +35,7 @@ fi
 rm -rf $RPM_BUILD_ROOT
 
 %files
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(0644,root,root)
+%defattr(-,root,root)
 %doc COPYING README TODO ChangeLog
 %attr(755,root,root) /sbin/udev
 %attr(755,root,root) /udev/
 %doc COPYING README TODO ChangeLog
 %attr(755,root,root) /sbin/udev
 %attr(755,root,root) /udev/