Rpmbuild/permissions/nvidia module

Ivan Gyurdiev ivg2 at cornell.edu
Tue Mar 8 09:27:04 UTC 2005


On Tue, 2005-03-08 at 08:58 +0000, Michael A. Peters wrote:
> On 03/07/2005 08:18:50 PM, Ivan Gyurdiev wrote:
> 
> > 
> > Question 3:
> > What makes it change from 755/755 to 644/644 (which is completely
> > wrong)
> > between the install stage and the final rpm.
> 
> 
> Specify the permissions in the spec file and that shouldn't be a  
> problem
> 
> %files
> %attr(0755,root,root) /path/to/module.ko
> 
> Why it is happening I do not know - I've never personally seen a case  
> where permissions are different is a resulting rpm than they were in  
> the buildroot - except when specified as different in the spec file.

Indeed - did not notice. Thank you for the info.

%if 0%{build_kernelmod}
%files -n kernel-module-nvidia-%{kernel}
%defattr(0644,root,root,-)
%dir /lib/modules/%{kernel}/%{modpath}
/lib/modules/%{kernel}/%{modpath}/nvidia.ko
%endif     #build_kernelmod

-- 
Ivan Gyurdiev <ivg2 at cornell.edu>
Cornell University




More information about the fedora-devel-list mailing list