Mailinglist Archive: opensuse-gnome (68 mails)

< Previous Next >
Re: [opensuse-gnome] Maintainer of Tracker-> Please update to 0.8.2
  • From: "Dominique Leuenberger" <Dominique.Leuenberger@xxxxxxxxxxxxx>
  • Date: Mon, 10 May 2010 12:28:00 +0200
  • Message-id: <4BE7FBD00200002900097A31@xxxxxxxxxxxxxxxxxxx>
On 5/10/2010 at 12:20, Anshul Jain <anshulajain@xxxxxxxxx> wrote:
I'd like to know what I'm doing wrong, so that I'll be able to get
better knowledge (just like what you said). That said- please bear
with my lack of knowledge as I'm merely an amateur on all this :)

That's the right spirit!

The error I got in the end is :-
tracker-devel-0.8.5-6.1.i586.rpm: directories not owned by a package:
- /usr/share/tracker-tests
- /usr/share/tracker-tests/data
- /usr/share/tracker-tests/data/Images
- /usr/share/tracker-tests/data/Music
- /usr/share/tracker-tests/data/Video
System halted.

Besides the files, also every folder created by a package needs to be owned (so
the system is instructed to also delete folders when you remove a
specific package).

I modified the .spec file to add the missing files and the added portion is:-


That's all the files in the folders

%dir %{_datadir}/tracker-tests/data/Video/*.*
%dir %{_datadir}/tracker-tests/data/pickled_Images
%dir %{_datadir}/tracker-tests/data/pickled_Music
%dir %{_datadir}/tracker-tests/tests.xml
%dir %{_datadir}/vala/vapi/tracker-miner-0.8.deps

the %dir macro should point to directories, not to any files or globs.
From the above list, something like

%dir %{_datadir}/tracker-tests
%dir %{_datadir}/tracker-tests/data
%dir %{_datadir}/tracker-tests/data/Images
%dir %{_datadir}/tracker-tests/data/Music
%dir %{_datadir}/tracker-tests/data/Video

Would solve your issue.

but actually all this could have been written in one line as:


This instructs RPM to take that folder and all the content of it, including
subfolders. As long as no split in other packages is needed, this won't
be an issue.

Hope this helps you understand the error a bit better,


(my solution was slightly different: I considered those tests not worthy to be
distributed to an end-user system, and disabled them in configure with
To unsubscribe, e-mail: opensuse-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups