diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-18 17:39:08 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-18 17:53:41 +0100 |
commit | b0faead2501cd539767dc11d098c08f5730224ff (patch) | |
tree | 9b356f45e5183629afff0bf6371c33f9fe369261 /po | |
parent | d4d4688122a228a90d39ac3bddf29d1bb33d9850 (diff) | |
download | systemd-b0faead2501cd539767dc11d098c08f5730224ff.tar.gz |
meson: fix systemd-pot target when polkit-devel is not installed
To successfully extract strings from our .policy files, gettext needs
polkit.{its,loc} files provided by policykit-devel. When that package is not
installed, systemd-pot would fail to extract strings:
[0/1] Running external command systemd-pot.
xgettext: warning: file 'src/core/org.freedesktop.systemd1.policy.in.in' extension 'policy' is unknown; will try C
xgettext: warning: file 'src/hostname/org.freedesktop.hostname1.policy.in' extension 'policy' is unknown; will try C
...
We now don't need the .its and .loc files for normal building, but they are
still useful when generating the .pot file, because that way we avoid the
dependency on sufficiently new polkit. We just need to tell i18n to pass their
location to xgettext.
Diffstat (limited to 'po')
-rw-r--r-- | po/meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/po/meson.build b/po/meson.build index 7ba08fba18..01ab7a3a54 100644 --- a/po/meson.build +++ b/po/meson.build @@ -16,6 +16,6 @@ # along with systemd; If not, see <http://www.gnu.org/licenses/>. i18n = import('i18n') -i18n.gettext(meson.project_name(), preset: 'glib') - -po_dir = meson.current_source_dir() +i18n.gettext(meson.project_name(), + preset : 'glib', + data_dirs : '.') |