From 81afcd0f92d0703b55e2bbd73ca2563cb8a3a29c Mon Sep 17 00:00:00 2001 From: Gunnar Hjalmarsson Date: Sat, 17 Feb 2018 03:34:08 +0100 Subject: [PATCH] Extract translatable strings from policy files Since Build-Depends does not include policykit-1, which provides the /usr/share/gettext/its/polkit.{its,loc} files, the ninja() call in debian/rules fails to extract strings from the .policy files. policykit-1 would pull several other packages, including systemd... This commit works around the issue with a xgettext() command, so the systemd.pot file generated at build time gets complete. https://launchpad.net/bugs/1707898 --- debian/extra/polkit.its | 8 ++++++++ debian/rules | 1 + 2 files changed, 9 insertions(+) create mode 100644 debian/extra/polkit.its diff --git a/debian/extra/polkit.its b/debian/extra/polkit.its new file mode 100644 index 000000000..1c37e6bee --- /dev/null +++ b/debian/extra/polkit.its @@ -0,0 +1,8 @@ + + + + + diff --git a/debian/rules b/debian/rules index 36b4acdf9..26bec8f6c 100755 --- a/debian/rules +++ b/debian/rules @@ -164,6 +164,7 @@ ifeq (, $(filter noudeb, $(DEB_BUILD_PROFILES))) endif # generate POT file for translators ninja -C build-deb/ systemd-pot + xgettext $$(cat po/POTFILES.in | grep policy) -o po/systemd.pot --its=debian/extra/polkit.its --join-existing || true override_dh_auto_install: dh_auto_install --builddirectory=build-deb \ -- 2.15.1