Question on Directory Ownership

Tom "spot" Callaway tcallawa at redhat.com
Thu Feb 5 14:09:46 UTC 2009


On 2009-02-05 at 4:41:41 -0500, Tim Niemueller <tim at niemueller.de> wrote:
> Tom "spot" Callaway schrieb:
>> Yes, it would, but that's not quite right. The accurate example for the
>> guideline case would be:
>>
>> %files Emu
>> %defattr(-,root,root,-)
>> %{_datadir}/Foo/Animal/Emu
>> %dir %{_datadir}/Foo/Animal/
>>
>> %files Llama
>> %defattr(-,root,root,-)
>> %{_datadir}/Foo/Animal/Llama
>> %dir %{_datadir}/Foo/Animal/
> 
> Shouldn't there be another
> 
> %dir %{_datadir}/Foo
> 
> or will that be inferred by rpm?

So, this is outside the scope of the example, which assumes (for better
or worse), that %{_datadir}/Foo is owned by something that both Emu and
Llama depend on. If no such package existed, then yes, there should be
another entry to cover the ownership of %{_datadir}/Foo.

~spot




More information about the devel mailing list