[Bug 1751820] Re: Teach dh_translations how to deal with meson

Iain Lane iain at orangesquash.org.uk
Mon Apr 9 12:26:41 UTC 2018


Ok, with this patch:

   debian/rules override_dh_translations
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ninja -C obj-x86_64-linux-gnu gnome-control-center-2.0-pot
ninja: Entering directory `obj-x86_64-linux-gnu'
[0/1] Running external command gnome-control-center-2.0-pot.
dh_translations
dh_translations: more than one meson translation domain found (gnome-control-center-2.0,gnome-control-center-2.0-timezones), don't know which one to use

I'll test build a few more packages:

baobab
======

   debian/rules override_dh_translations
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ninja -C obj-x86_64-linux-gnu baobab-pot
ninja: Entering directory `obj-x86_64-linux-gnu'
[0/1] Running external command baobab-pot.
dh_translations
dh_translations: more than one meson translation domain found (help-baobab,baobab), don't know which one to use

baobab's desktop file is not stripped because of this, but the package
builds fine

language-selector
=================

   dh_translations
dh_langpack: processing files to add translation domain 'language-selector'..
  gnome-language-selector.desktop
  com.ubuntu.languageselector.policy

builds OK

gnome-recipes
=============

   dh_translations -O--buildsystem=meson
dh_translations: more than one meson translation domain found (gnome-recipes,gnome-recipes-data,help-org.gnome.Recipes), don't know which one to use

builds OK, multiple domains but skipped properly

ubuntu-settings
===============

   dh_translations
»·······check_buildsystem: got domain 'ubuntu-default-launchers', using intltool: 0

this worked, and is our main 'positive' testcase (consider adding 'using
meson' there too)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkgbinarymangler in Ubuntu.
https://bugs.launchpad.net/bugs/1751820

Title:
  Teach dh_translations how to deal with meson

Status in pkgbinarymangler package in Ubuntu:
  Triaged

Bug description:
  dh_translations is currently not capable to find the gettext domain
  and generate the translation template on packages which use the meson
  build system. It would be convenient if it was.

  I started to think about code changes, but got stuck:

  I suppose that we'd better use ninja instead of intltool-update for
  such packages, and if so, we need to pass the build directory to the
  ninja() call. How would we do that?

  Or would we use intltool-update also for such packages?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/1751820/+subscriptions



More information about the foundations-bugs mailing list