Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

ninja install failing (msgfmt ITS rules issue) #25

Closed
phocean opened this issue Jun 3, 2017 · 12 comments
Closed

ninja install failing (msgfmt ITS rules issue) #25

phocean opened this issue Jun 3, 2017 · 12 comments

Comments

@phocean
Copy link

phocean commented Jun 3, 2017

Hi,

I am on openSUSE Tumbleweed, so I am installing from source.

It fails on:

% sudo ninja -C builddir install                      
ninja: Entering directory `builddir'
[1/2] 'Generating nautilus-git.metainfo.xml_merge with a custom command.'
FAILED: data/nautilus-git.metainfo.xml 
'msgfmt' '--xml' '--template' '../data/nautilus-git.metainfo.xml.in' '-d' '../data/../po' '-o' 'data/nautilus-git.metainfo.xml'
msgfmt: Impossible de localiser les règles ITS pour ../data/nautilus-git.metainfo.xml.in
ninja: build stopped: subcommand failed.

The message is cryptic to me, sorry.

@bilelmoussaoui
Copy link
Owner

As i'm not an expert with gettext and all the translations stuff, i will redirect you to this issue mesonbuild/meson#1565
it seems that you have some missing its files.

@TingPing
Copy link
Contributor

TingPing commented Jun 3, 2017

Have gettext >= 0.19.6 and have the dev package for libappstream-glib installed.

@phocean
Copy link
Author

phocean commented Jun 3, 2017

Thank you. But I have libappstream-glib8 and gettext version 0.19.8.1 (tumbleweed is very up-to-date as it is the rolling release).

Here is what I have in the its folder:

% ls /usr/share/gettext/its
gschema.its  gschema.loc  gtkbuilder.its  gtkbuilder.loc

Do you have more files ?

@bilelmoussaoui
Copy link
Owner

@phocean Yep

ls /usr/share/gettext/its/                                                     
appdata.its  gnome-keybindings.its  gschema.its  gtkbuilder.its  polkit.its
appdata.loc  gnome-keybindings.loc  gschema.loc  gtkbuilder.loc  polkit.loc

@TingPing
Copy link
Contributor

TingPing commented Jun 3, 2017

But I have libappstream-glib8

I specifically said the dev package because most distros split the itstool files out.

@phocean
Copy link
Author

phocean commented Jun 4, 2017

Hmm, it seems I am doomed.
For instance:

% zypper search --provides --match-exact "/usr/share/gettext/its/appdata.its"

returns nothing.

And the distribution does not seem to have a libappstream-glib8 devel package. I will try to get the info from an openSUSE source...

@bilelmoussaoui
Copy link
Owner

@phocean I've never used openSUSE before, I can't help you with that. Anyway, if you find which package was missing can you write a comment here with the package name? for future openSUSE users.
Closing

@TingPing
Copy link
Contributor

TingPing commented Jun 4, 2017

Many GNOME projects have been moving from intltool to gettext this past year, so I'm not sure it makes sense to not be packaged.

@phocean
Copy link
Author

phocean commented Jun 18, 2017

Hi, problem solved with installing appstream-glib-devel.

I don't know why I missed this package the other time, probably got confused by the naming.
Thank you for the hints and keep up the good work ;-)

@eexpress
Copy link

eexpress commented Apr 6, 2019

Have gettext >= 0.19.6 and have the dev package for libappstream-glib installed.

dnf install libappstream-glib-devel. I think you need add this into README. :D

@bilelmoussaoui
Copy link
Owner

@eexpress mind sending a PR?

@archisman-panigrahi
Copy link

In Ubuntu 20.04, installing the package appstream solved a similar issue.

libappstream-glib-dev did not work in Ubuntu.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants