Discussion:
Appstream in fedora
Aleix Pol
2014-10-02 15:05:35 UTC
Permalink
Hi ximion,
I was trying to test muon discover in fedora, because I thought it would be
appstream wonderland (in comparison to Arch, at least) and I'm not having
anything reported. See this for example:

[aleix at localhost ~]$ appstream-index search libreoffice
I/O warning : failed to load external entity
"/usr/share/appstream/app-info/categories.xml"
No component matching 'libreoffice' found.

Do you know what can be happening?

FWIW, the actual problem isn't that appstream-index is not working, but
Muon Discover isn't working. This is just an easier way to reproduce the
problem.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/distributions/attachments/20141002/3bf6ecf6/attachment.html>
Matthias Klumpp
2014-10-03 15:58:27 UTC
Permalink
Hi! Replying from my phone, so sorry for top-posting. (I am currently
without internet)
This looks like a packaging bug for libas. Can you place "categories.xml"
from the libas source tree in the requested directory?
Also, can you ensure that the package "appstream-data" is installed, and if
you still don't get any search results, run "appstream-index refresh
--force" as root?
That should definitively do the trick.
Cheers,
Matthias
Post by Aleix Pol
Hi ximion,
I was trying to test muon discover in fedora, because I thought it would
be appstream wonderland (in comparison to Arch, at least) and I'm not
Post by Aleix Pol
[aleix at localhost ~]$ appstream-index search libreoffice
I/O warning : failed to load external entity
"/usr/share/appstream/app-info/categories.xml"
Post by Aleix Pol
No component matching 'libreoffice' found.
Do you know what can be happening?
FWIW, the actual problem isn't that appstream-index is not working, but
Muon Discover isn't working. This is just an easier way to reproduce the
problem.
Post by Aleix Pol
Aleix
_______________________________________________
Distributions mailing list
Distributions at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/distributions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/distributions/attachments/20141003/cd4210d7/attachment.html>
Aleix Pol
2014-10-03 16:03:33 UTC
Permalink
Post by Matthias Klumpp
Hi! Replying from my phone, so sorry for top-posting. (I am currently
without internet)
This looks like a packaging bug for libas. Can you place "categories.xml"
from the libas source tree in the requested directory?
Also, can you ensure that the package "appstream-data" is installed, and
if you still don't get any search results, run "appstream-index refresh
--force" as root?
That should definitively do the trick.
Cheers,
Matthias
Post by Aleix Pol
Hi ximion,
I was trying to test muon discover in fedora, because I thought it would
be appstream wonderland (in comparison to Arch, at least) and I'm not
Post by Aleix Pol
[aleix at localhost ~]$ appstream-index search libreoffice
I/O warning : failed to load external entity
"/usr/share/appstream/app-info/categories.xml"
Post by Aleix Pol
No component matching 'libreoffice' found.
Do you know what can be happening?
FWIW, the actual problem isn't that appstream-index is not working, but
Muon Discover isn't working. This is just an easier way to reproduce the
problem.
Post by Aleix Pol
Aleix
I already refreshed appstream-index otherwise other things crash.

Is the categories.xml needed to get results from the index?

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/distributions/attachments/20141003/1c09e47d/attachment.html>
Matthias Klumpp
2014-10-03 16:45:33 UTC
Permalink
Post by Aleix Pol
Post by Matthias Klumpp
Hi! Replying from my phone, so sorry for top-posting. (I am currently
without internet)
Post by Aleix Pol
Post by Matthias Klumpp
This looks like a packaging bug for libas. Can you place
"categories.xml" from the libas source tree in the requested directory?
Post by Aleix Pol
Post by Matthias Klumpp
Also, can you ensure that the package "appstream-data" is installed, and
if you still don't get any search results, run "appstream-index refresh
--force" as root?
Post by Aleix Pol
Post by Matthias Klumpp
That should definitively do the trick.
Cheers,
Matthias
Post by Aleix Pol
Hi ximion,
I was trying to test muon discover in fedora, because I thought it
would be appstream wonderland (in comparison to Arch, at least) and I'm not
Post by Aleix Pol
Post by Matthias Klumpp
Post by Aleix Pol
[aleix at localhost ~]$ appstream-index search libreoffice
I/O warning : failed to load external entity
"/usr/share/appstream/app-info/categories.xml"
Post by Aleix Pol
Post by Matthias Klumpp
Post by Aleix Pol
No component matching 'libreoffice' found.
Do you know what can be happening?
FWIW, the actual problem isn't that appstream-index is not working,
but Muon Discover isn't working. This is just an easier way to reproduce
the problem.
Post by Aleix Pol
Post by Matthias Klumpp
Post by Aleix Pol
Aleix
I already refreshed appstream-index otherwise other things crash.
Is the categories.xml needed to get results from the index?
Can you please report the crashes? Even with no index all, nothing should
ever crash.
The categories file is needed - it was added on request for the Elementary
software center, and Apper uses it too (I plan to remove the requirement of
it later though, which is a bit oft work, since I don't want to break ABI -
but AS 0.7.2 already contains work in that direction).
This file should be shipped by the Fedora package though, if it isn't, it's
a bug in the packaging.
--- Matthias

P.S.: Can you verify that the Xapian cache is present in
/var/cache/app-info/xapian ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/distributions/attachments/20141003/901016e8/attachment.html>
Rex Dieter
2014-10-04 00:57:25 UTC
Permalink
Am 03.10.2014 18:03 schrieb "Aleix Pol" <aleixpol at kde.org
This file should be shipped by the Fedora package though, if it isn't,
it's a bug in the packaging.
--- Matthias
P.S.: Can you verify that the Xapian cache is present in
/var/cache/app-info/xapian ?
Before filing any bugs, I'm pretty sure this latest updates submission
should fix the issues raised here (in particular, about running
'appstream-index refresh' properly):

https://admin.fedoraproject.org/updates/appstream-0.7.2-2.fc21

-- Rex
Matthias Klumpp
2014-10-09 23:19:27 UTC
Permalink
Post by Rex Dieter
Am 03.10.2014 18:03 schrieb "Aleix Pol" <aleixpol at kde.org
This file should be shipped by the Fedora package though, if it isn't,
it's a bug in the packaging.
--- Matthias
P.S.: Can you verify that the Xapian cache is present in
/var/cache/app-info/xapian ?
Before filing any bugs, I'm pretty sure this latest updates submission
should fix the issues raised here (in particular, about running
https://admin.fedoraproject.org/updates/appstream-0.7.2-2.fc21
I just discovered a bug[1] which might be causing this behaviour and
breaks the generator - will be fixed with the 0.7.3 release, which
I'll do tomorrow.
Cheers,
Matthias

[1]: https://github.com/ximion/appstream/commit/35be519401d96435c9dcd16e240b2c1590553dd0
--
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/
Aleix Pol
2014-10-09 23:20:44 UTC
Permalink
On Fri, Oct 10, 2014 at 1:19 AM, Matthias Klumpp <matthias at tenstral.net>
Post by Matthias Klumpp
Post by Rex Dieter
Am 03.10.2014 18:03 schrieb "Aleix Pol" <aleixpol at kde.org
This file should be shipped by the Fedora package though, if it isn't,
it's a bug in the packaging.
--- Matthias
P.S.: Can you verify that the Xapian cache is present in
/var/cache/app-info/xapian ?
Before filing any bugs, I'm pretty sure this latest updates submission
should fix the issues raised here (in particular, about running
https://admin.fedoraproject.org/updates/appstream-0.7.2-2.fc21
I just discovered a bug[1] which might be causing this behaviour and
breaks the generator - will be fixed with the 0.7.3 release, which
I'll do tomorrow.
Cheers,
Matthias
https://github.com/ximion/appstream/commit/35be519401d96435c9dcd16e240b2c1590553dd0
--
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/
Ok, I'll give it another go tomorrow, I'm building from master anyway.

Thanks!
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/distributions/attachments/20141010/6462b064/attachment.html>
Matthias Klumpp
2014-10-09 23:23:15 UTC
Permalink
Post by Aleix Pol
[...]
Ok, I'll give it another go tomorrow, I'm building from master anyway.
Thanks!
Aleix
Make sure to clean your build environment - otherwise, the buildsystem
might not regenerate the header.
Cheers,
Matthias
--
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/
Loading...