Re: Rpm setting owner to build user

Dan Ciarniello <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Tim Mooney wrote:

> In regard to: Rpm setting owner to build user, Dan Ciarniello said 
> (at...:
>
>> %files
>> /usr/local/%{targetdir}
>> /etc/profile.d/httpd.sh
>> %defattr(-,root,root,-)
>> %doc
>
>
> Does it make a difference if you move the %defattr up so that it's the
> first thing after %files?
>
> Tim

Yes, it does.  Thanks, Tim.

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.

Thanks again,
Dan.
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.