[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Rpm setting owner to build user



On Tue, Nov 13, 2007 at 03:44:18PM -0800, Dan Ciarniello wrote:

> One thing that didn't make sense at first was that the problem only 
> occurred for this rpm and not others; all had the %defattr after the 
> files.  I eventually realized that I was building on two machines - one 
> Fedora Core 4 and the other RHEL4.  The rpmbuild version on FC4 is 4.4.1 
> while that on RHEL4 is 4.3.3.  Apparently, in 4.3.3 the %defattr only 
> applies to files following the directive while in 4.4.1 it applies to all.

No, that's not the reason.

At some point the %defattr(-,root,root,-) became the default, probably
since RPM 4.4.  Try to remove it, and you'll probably see that it still
works on your FC4.

But for the reason you now discovered, I don't want to use this feature
in my spec files yet (maybe in 10 years or so... ;-)).

-- 
--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]