[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686335: texlive-base: updmap.pl does not recognize option "dvipsDownloadBase35" set in updmap.cfg

Hi Martin,

On Fri, 31 Aug 2012, Martin Zabel wrote:
> Instead of 
>   if ($dvipsDownloadBase35)
> which checks for a non-empty string, it must be
>   if ($dvipsDownloadBase35 eq "true")
> to reach the else case, if option is set to "false".

Indeed, thanks for spotting that.
Fortunately it failed on the safe side, i.e., by always including the
fonts, which is anyway a good thing.

> Same if-expression is also used for the other options in the perl-script, e.g.
> dvipsPreferOutline.

Really? I didn't find any other place where it is *wrongly* used?
Let me know what you found, please!

> texmf/scripts/tetex/updmap.pl as indicated by the patch. The wrong statement
> is at line 1026.

There is actually another place, a few lines up:
--- updmap.pl.orig	2012-08-31 21:59:54.000000000 +0900
+++ updmap.pl	2012-08-31 22:12:12.000000000 +0900
@@ -1042,10 +1042,10 @@
-  my @dftdvips_fonts = ($dvipsDownloadBase35 ? @ps2pk_fonts : @dvips35_fonts);
+  my @dftdvips_fonts = (($dvipsDownloadBase35 eq "true") ? @ps2pk_fonts : @dvips35_fonts);
   my @psfonts_t1_map;
-  if ($dvipsDownloadBase35) {
+  if ($dvipsDownloadBase35 eq "true") {
     push @psfonts_t1_map, "% ps2pk35.map",
     @dftdvips_fonts = @ps2pk_fonts;
   } else {

Is what I came up with ...

Best wishes


Norbert Preining                preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                   TeX Live and Debian Developer
gpg DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
`If there's anything more important than my ego around, I
want it caught and shot now.'
                 --- Zaphod.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy

Reply to: