usermode misses gettext as a build dependency

Bug #461365 reported by Alkis Georgopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usermode (Debian)
Fix Released
Unknown
usermode (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: usermode

Ubuntu version: Jaunty 9.04
usermode version: 1.81-3.2

alkisg@alkis:/tmp/usermode-1.81$ dpkg -L usermode | grep '\.mo'
alkisg@alkis:/tmp/usermode-1.81$ ls -la po/el.*
-rw-r--r-- 1 alkisg alkisg 4302 2005-08-16 12:01 po/el.gmo
-rw-r--r-- 1 alkisg alkisg 14089 2005-08-16 12:01 po/el.po

If I run `apt-get source usermode` and `debuild -b`, the resulting .deb file properly contains all the translations.
So I guess they're stripped by mistake, by some script which thinks that usermode is in Main - but they shouldn't, because it is in Universe.

Related branches

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

As it turns out, it may be a packaging problem, e.g. something missing from the Build-Depends line, because the translations are missing from the Debian package as well.

Please crosslink/forward this bug report to Debian...

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

The problem was a missing "gettext" dependency.

Adding gettext to the "Build-Depends" line in debian/control made all the .mo messages be included in the package:
http://launchpadlibrarian.net/34939487/buildlog_ubuntu-jaunty-lpia.usermode_1.81-3.2%2Bppa2_FULLYBUILT.txt.gz

summary: - The binary package lacks the translations found in source
+ usermode misses gettext as a build dependency
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :
Erik Kronberg (eakron)
Changed in usermode (Ubuntu):
assignee: nobody → Erik Kronberg (eakron)
status: New → In Progress
Revision history for this message
Erik Kronberg (eakron) wrote :

Added gettext dependency.

Changed in usermode (Ubuntu):
status: In Progress → Fix Committed
Erik Kronberg (eakron)
Changed in usermode (Ubuntu):
assignee: Erik Kronberg (eakron) → nobody
Changed in usermode (Ubuntu):
status: Fix Committed → Confirmed
Changed in usermode (Debian):
status: Unknown → New
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Can you please attach a debiff instead of the full debian directory.

Thanks for your work,

Fabrice

Changed in usermode (Ubuntu):
importance: Undecided → Wishlist
status: Confirmed → Incomplete
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

> Can you please attach a debiff instead of the full debian directory.

I didn't send any files at all, but anyway I'm attaching a debdiff.
I also deleted the previous attachment by Eric.

Thanks all,
Alkis

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Thanks Alkis for the debdiff.

Anyway, even if the po files are generated thanks to installing gettext, they are not installed anywhere (the deb file has the same content before and after the patch).
Do you want to update the rules file to install them or do you prefer me to do it?

Thanks for your work,

Fabrice

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Ooops! You're right, I didn't see that they aren't included, I used my self-made binary for installation.

But I'm not sure that the problem is in the rules file, because if I just call debuild without using pbuilder:
  $ debuild -b -tc
I get a binary that properly contains the translations!

So maybe
  $(MAKE) install DESTDIR=$(DESTDIR)
in the rules file takes care of installing the translations, and the problem is in some other missing dependency?

/me looks... :)

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Hi Fabrice,

Uhm no, the translations *were actually included* in my PPA build:
https://launchpad.net/~ts.sch.gr/+archive/ppa/+build/1316964

The karmic .deb is 78 Kb (http://packages.ubuntu.com/karmic/usermode)
and the .deb. in my PPA is 174 Kb.
So IMHO putting gettext in Build-Depends fixed the problem.

Maybe in your case the translations were stripped by some script? (as it happens with packages in Main)?

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hmmm, strange: I've built again the package, and now translations are there.
As I am building for lucid, it may be some bug during my previous build.

Uploaded then. Thanks for your contribution! :-)

Could you please forward to Debian, so that we may be able to sync the package back from Debian?

Thanks again,
Fabrice

Changed in usermode (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usermode - 1.81-3.2ubuntu1

---------------
usermode (1.81-3.2ubuntu1) lucid; urgency=low

  * debian/control: added build dependency on gettext. Repackaging to add the
    missing translations (LP: #461365).
 -- Alkis Georgopoulos <email address hidden> Sun, 15 Nov 2009 16:41:20 +0200

Changed in usermode (Ubuntu):
status: Fix Committed → Fix Released
Changed in usermode (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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