Bug 744931

Summary: Unowned directory
Product: [Fedora] Fedora Reporter: Christoph Wickert <cwickert>
Component: mercurialAssignee: Neal Becker <ndbecker2>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: dennis, mads, ndbecker2, vvitek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-11 22:35:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Christoph Wickert 2011-10-10 20:42:23 UTC
Description of problem:
mercurial places a file in %{_datadir}/zsh/site-functions/ but does not own %{_datadir}/zsh/ or requires something that owns it.

Version-Release number of selected component (if applicable):
mercurial-1.9.2-1.fc15

Additional info:
https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Ownership

Comment 1 Neal Becker 2011-10-11 20:18:59 UTC
so are you saying 
%dir %{_datadir}/zsh/site-functions/

should be replaced by


%dir %{_datadir}/zsh/

??

Comment 2 Christoph Wickert 2011-10-11 20:56:13 UTC
Yes, you either need a dependency on zsh or you need to own that dir. The latter makes more sense.

You can also use 

%dir %{_datadir}/zsh/
%{_datadir}/zsh/site-functions/

to make it more obvious in the spec, but the result is the same.

Comment 3 Neal Becker 2011-10-11 21:37:24 UTC
Since both are directories, is it not


%dir %{_datadir}/zsh/
%dir %{_datadir}/zsh/site-functions/

??

Comment 4 Christoph Wickert 2011-10-11 22:19:52 UTC
Yes, but then you have to list the file explicitly.

%dir %{_datadir}/zsh/
%dir %{_datadir}/zsh/site-functions/
%{_datadir}/zsh/site-functions/_mercurial

%dir only describes the directory, no files in there.

For rpm a simple

%{_datadir}/zsh/

is the same, it's just about legibility: If you look at the spec, %{_datadir}/zsh/ can mean anything, a thousand files and subfolders or just a single one.