Mailinglist Archive: opensuse-gnome (68 mails)

< Previous Next >
Re: [opensuse-gnome] Maintainer of Tracker-> Please update to 0.8.2
  • From: Anshul Jain <anshulajain@xxxxxxxxx>
  • Date: Tue, 11 May 2010 11:16:58 +0530
  • Message-id: <AANLkTik-QN_SmSI5ZCbAOqfKhtTiuCiWeXHB0qWAN0a_@xxxxxxxxxxxxxx>
On Mon, May 10, 2010 at 3:58 PM, Dominique Leuenberger
<Dominique.Leuenberger@xxxxxxxxxxxxx> wrote:
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:-


%{_datadir}/tracker-tests/*.py
%{_datadir}/tracker-tests/data/Images/*.jpg
%{_datadir}/tracker-tests/data/Images/*.png
%{_datadir}/tracker-tests/data/Images/*.tif
%{_datadir}/tracker-tests/data/Music/*.*

That's all the files in the folders

#%{_datadir}/tracker-tests/data/Music/*.mp4
%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:

%{_datadir}/tracker-tests

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,

Dominique

(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
--disable-functional-tests).


That did the trick!! Thanks a ton for the help :) :) I have tracker
0.8.5 in my OBS at
http://download.opensuse.org/repositories/home:/anshuljain/openSUSE_11.2/
--
To unsubscribe, e-mail: opensuse-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx

< Previous Next >