Bug 744931 - Unowned directory
Summary: Unowned directory
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mercurial
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Neal Becker
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-10 20:42 UTC by Christoph Wickert
Modified: 2011-10-11 22:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-11 22:35:08 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.