'updmap --enable Map' doesn't work

Bug #898197 reported by Manfred Kral on 2011-11-30
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux Mint
tex-common (Ubuntu)

Bug Description

Version: Linux Mint 12 - Lisa 64bit
How to reproduce: install a new tex font, and run 'updmap --enable Map xy'
What happend: 'updmap' stops unexpected without an error with errorcode 2
What I expected: that 'updmap' enables the fontmap
The problem happens always.

updmap (included in 'tex-common') sets the exit on error mode (set -e) in it's script. To enable a Map file, it sources the script 'debianize-updmap' which realises the Debian way to enable fontmaps. In this sourced script on line 318, function 'pickLocalFile', it makes a 'ls' to check, if theres a local configuration file. If there isn't such a config, the 'new' version of 'ls' returns with an exit code '2' -> the script aborts without an error.
I guess this should fix the bug:

--- /usr/share/tex-common/debianize-updmap 2011-11-30 15:59:39.770203917 +0100
+++ debianize-updmap 2011-11-30 16:00:44.289392801 +0100
@@ -315,7 +315,7 @@
   # Is there a file with "local" in the name?
- localfile="`ls $debDirname/*local*cfg 2>/dev/null`"
+ localfile="`find $debDirname -maxdepth 1 -type f -name '*local*cfg'`"
   if [ -n "$localfile" ]; then
     # there is at least one
     if [ `(set $localfile; echo $#)` -eq 1 ]; then

description: updated
Launchpad Janitor (janitor) wrote :

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

Changed in tex-common (Ubuntu):
status: New → Confirmed
Michael Wild (themiwi) on 2012-06-21
affects: linuxmint → tex-common (Ubuntu)
affects: tex-common (Ubuntu) → linuxmint
Changed in tex-common (Ubuntu):
status: New → Confirmed
Matthäus Brandl (matthaeus) wrote :

sudo touch /etc/texmf/updmap.d/10local.cfg


Guy Rutenberg (guyrutenberg) wrote :

This issue also affect Ubuntu 11.10 and 12.04, it's not Mint specific. The bug is a result of a "set -e" in debianize-updmap, which attempts to create 10local.cfg if it doesn't exits, but the check fails because of the "set -e".

There is a nice a more detailed explanation of the issue and how it affects updmap in my blog post, which Matthäus cited.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers