gettext required by package scripts, but not a dependency

Bug #644578 reported by John Franklin
36
This bug affects 4 people
Affects Status Importance Assigned to Milestone
update-notifier (Debian)
Fix Released
Unknown
update-notifier (Ubuntu)
Fix Released
Medium
Brian Murray
Oneiric
Fix Released
Medium
Vibhav Pant
Precise
Fix Released
Medium
Brian Murray

Bug Description

Binary package hint: openssl

When recently upgrading libssl on an Ubuntu Hardy Linode VM, the following message was displayed:

<code>
Unpacking replacement libssl0.9.8 ...
Setting up libssl0.9.8 (0.9.8g-16ubuntu3.2) ...
/usr/share/update-notifier/notify-reboot-required: 16: gettext: not found
</code>

Indeed, gettext is not installed on this VM. Perhaps it should be included as a dep here? Or (since it's liikely to be the case for a number of packges) a dep on update-notifier?

Test Case:
1) Setup a 12.04 system without gettext installed
2) Execute sudo /usr/share/update-notifier/notify-reboot-required
3) Observe the message 'gettext: not found'
4) Install update-notifier from precise-proposed
5) Execute sudo /usr/share/update-notiifer/notify-reboot-required
6) Observe nothing

root@redacted:~# lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
 root@redacted:~# apt-cache policy libssl0.9.8
libssl0.9.8:
  Installed: 0.9.8g-16ubuntu3.2
  Candidate: 0.9.8g-16ubuntu3.2
  Version table:
 *** 0.9.8g-16ubuntu3.2 0
        500 http://security.ubuntu.com karmic-security/main Packages
        500 http://us.archive.ubuntu.com karmic-updates/main Packages
        100 /var/lib/dpkg/status
     0.9.8g-16ubuntu3 0
        500 http://us.archive.ubuntu.com karmic/main Packages

Related branches

Revision history for this message
Colin Watson (cjwatson) wrote :

This should be fixed in update-notifier. Since translation isn't critical, I suggest that notify-reboot-required should detect whether the gettext binary is present and if not then simply use the untranslated string.

affects: openssl (Ubuntu) → update-notifier (Ubuntu)
Changed in update-notifier (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Richard Laager (rlaager) wrote :

I'm seeing the same thing in Precise. The code in notify-reboot-required makes a reference to cases when gettext is not installed, but it doesn't actually work. I've attached a patch, which should work.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "update-notifier.gettext.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in update-notifier (Debian):
status: Unknown → New
Changed in update-notifier (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Brian Murray (brian-murray)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Brian, apparently you built the source package without having gnome-common installed, which caused some changes in the autoconf scripts which I'm not sure that they are safe. I rejected your source and reuploaded with no autoconf changes.

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

This bug was fixed in the package update-notifier - 0.119ubuntu8.1

---------------
update-notifier (0.119ubuntu8.1) precise; urgency=low

  * data/notify-reboot-required: echo notification if gettext is not available
    thanks to Richard Laager for the patch (LP: #644578)
 -- Brian Murray <email address hidden> Thu, 19 Apr 2012 13:58:50 -0700

Changed in update-notifier (Ubuntu Precise):
status: In Progress → Fix Released
Vibhav Pant (vibhavp)
Changed in update-notifier (Ubuntu Oneiric):
assignee: nobody → Vibhav Pant (vibhavp)
Revision history for this message
Vibhav Pant (vibhavp) wrote :
Changed in update-notifier (Ubuntu Oneiric):
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

I've uploaded the oneiric debdiff to -proposed. Thanks for the debdiff!

Vibhav Pant (vibhavp)
Changed in update-notifier (Ubuntu Oneiric):
status: In Progress → Fix Committed
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello John, or anyone else affected,

Accepted update-notifier into oneiric-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Vibhav Pant (vibhavp) wrote :

the package in -proposed works

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-notifier - 0.117ubuntu3.3

---------------
update-notifier (0.117ubuntu3.3) oneiric-proposed; urgency=low

  * data/notify-reboot-required: echo notification if gettext is not
    available, thanks to Richard Laager for the patch (LP: #644578)
 -- Vibhav Pant <email address hidden> Wed, 23 May 2012 14:04:21 +0530

Changed in update-notifier (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in update-notifier (Debian):
status: New → 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.