'updmap --enable Map' doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned | ||
tex-common (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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/
+++ debianize-updmap 2011-11-30 16:00:44.289392801 +0100
@@ -315,7 +315,7 @@
debDirname=
# Is there a file with "local" in the name?
localfile=""
- localfile="`ls $debDirname/
+ 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 |
affects: | linuxmint → tex-common (Ubuntu) |
affects: | tex-common (Ubuntu) → linuxmint |
Changed in tex-common (Ubuntu): | |
status: | New → Confirmed |
Status changed to 'Confirmed' because the bug affects multiple users.