dh-translations: cannot build POT without intltool

Bug #1688994 reported by Jeremy Bícha
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
High
Unassigned
pkgbinarymangler (Ubuntu)
Fix Released
High
Gunnar Hjalmarsson

Bug Description

Excerpt from gnome-sudoku 17.04 build log
-----------------------------------

dh_translations
Use of uninitialized value $domain in concatenation (.) or string at /usr/bin/dh_translations line 93.
Does not use intltool and po/Makefile does not define GETTEXT_PACKAGE, cannot build POT automatically at /usr/bin/dh_translations line 113.

https://launchpad.net/ubuntu/+source/gnome-sudoku/1:3.24.0-0ubuntu1/+build/12150568

Other Info
----------
GNOME is porting many modules from intltool to use gettext directly

https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pkgbinarymangler (Ubuntu):
status: New → Confirmed
Jeremy Bícha (jbicha)
Changed in ubuntu-translations:
importance: Undecided → High
tags: added: artful
Changed in ubuntu-translations:
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

dh_translations does
$domain = $1 if /^GETTEXT_PACKAGE\s*=\s*(\S*)/;

which work for most projects which have a configure.ac with
GETTEXT_PACKAGE=<domain>
AC_SUBST(GETTEXT_PACKAGE)

but gnome-sudoku has
AC_SUBST([GETTEXT_PACKAGE], [gnome-sudoku])

it should be easy enough to add a case/regexp for that syntax

Revision history for this message
AsciiWolf (asciiwolf) wrote :

Any news? GNOME Calendar looks to be still missing the translations in Ubuntu 17.10.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

AsciiWolf, please open a new bug for that issue. I can confirm the bug by the way but it is not happening with other meson apps like nautilus or totem.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

AsciiWolf, the gnome-calendar bug should be fixed in 3.26.1. I'll work on packaging that now.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I think I'm just going to wait for 3.26.2 which should be released by the end of the week.

Revision history for this message
AsciiWolf (asciiwolf) wrote :

Thanks!

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :
Changed in pkgbinarymangler (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
status: Confirmed → In Progress
tags: added: patch
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Modified patch uploaded after review by Sebastien Bacher and Didier Roche.

Changed in pkgbinarymangler (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The upload failed in bionic. Attaching a third patch which works around the problem. Might be an alternative awaiting the real fix.

Changed in pkgbinarymangler (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pkgbinarymangler - 134

---------------
pkgbinarymangler (134) bionic; urgency=medium

  * Updated tests for the new dpkg which is generating files in the
    .tar.xz format instead of .tar.gz

 -- Sebastien Bacher <email address hidden> Fri, 09 Feb 2018 11:07:45 +0100

Changed in pkgbinarymangler (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

No such warning message in the buildlog from the latest upload of gnome-sudoku, which ought to confirm that this bug is fixed. (Bug #1734545 is still open for other reasons.)

Changed in ubuntu-translations:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.