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

Re: Rpm setting owner to build user



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.


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