Re: Rpm setting owner to build user

Jos Vos <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
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 <[email protected]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.