Re: Rpm setting owner to build user

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

 



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.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux