Ubuntu

gettext required by package scripts, but not a dependency

Reported by John Franklin on 2010-09-21
36
This bug affects 4 people
Affects Status Importance Assigned to Milestone
update-notifier (Debian)
Fix Released
Unknown
update-notifier (Ubuntu)
Medium
Brian Murray
Oneiric
Medium
Vibhav Pant
Precise
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

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
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.

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
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.

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) on 2012-05-22
Changed in update-notifier (Ubuntu Oneiric):
assignee: nobody → Vibhav Pant (vibhavp)
Vibhav Pant (vibhavp) wrote :
Changed in update-notifier (Ubuntu Oneiric):
status: New → In Progress
importance: Undecided → Medium
Brian Murray (brian-murray) wrote :

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

Vibhav Pant (vibhavp) on 2012-05-25
Changed in update-notifier (Ubuntu Oneiric):
status: In Progress → Fix Committed

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
Vibhav Pant (vibhavp) wrote :

the package in -proposed works

tags: added: verification-done
removed: verification-needed
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  Edit
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.