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

Bug#489943: marked as done (texlive-base-bin: mktexpk does not work in directories containing spaces)



Your message dated Mon, 16 Nov 2009 22:01:49 +0000
with message-id <E1NA9dt-0005cM-Da@ries.debian.org>
and subject line Bug#489943: fixed in texlive-bin 2009-1
has caused the Debian Bug report #489943,
regarding texlive-base-bin: mktexpk does not work in directories containing spaces
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
489943: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489943
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive-base-bin
Version: 2007.dfsg.2-3
Severity: normal
Tags: patch

The mktexpk script fails if it tries to build a .pk in a directory with space
(tested), tab or some backslash-character combinations (obvious from the
code).

I traced the space problem down to a single cd with unquoted argument.
However I also noticed use of echo+sed dirname replacement (with comment
"can't rely on dirname" -- basename was relied on on the next line though),
which would have problems with spaces at the end (backquote expansion eats
them) and backslashes in some shells (the rules for backslash processing in
echo differ from shell to shell). So my patch additionally includes
a replacement of those two statements with ${var##pattern} and ${var%pattern}
expansions. These expansions are POSIX and should thus be reasonably
portable.

##################################
patch (standard patch -p1 unified diff)

--- old/build/source/texk/kpathsea/mktexpk	2006-01-17 22:41:51.000000000 +0100
+++ new/build/source/texk/kpathsea/mktexpk	2008-07-08 21:49:14.000000000 +0200
@@ -199,8 +199,8 @@
 IFS=$OIFS
 
 PKDEST="$1"
-PKDESTDIR=`echo "$PKDEST" | sed 's%/[^/][^/]*$%%'` # can't rely on dirname
-PKNAME=`basename "$PKDEST"`
+PKDESTDIR=${PKDEST%/*}
+PKNAME=${PKDEST##*/}
 GFNAME=$NAME.${DPI}gf
 
 if test -r "$PKDESTDIR/$PKNAME"; then
@@ -250,7 +250,7 @@
 # Use cp when mv fails, since DOS will fail mv for deeply-nested directories.
 mv $PKNAME "$PKDESTDIR/pk$$.tmp" 2>/dev/null \
   || cp $PKNAME "$PKDESTDIR/pk$$.tmp" || exit 1
-cd $PKDESTDIR || exit 1
+cd "$PKDESTDIR" || exit 1
 chmod `kpsestat -xst,go-w .` pk$$.tmp
 test -r $PKNAME || mv pk$$.tmp $PKNAME || exit 1
 

##################################
minimal input file

No specific TeX input. The problem can be reproduced by putting any .mf font
source in a directory with spaces in name and using mktexpk to generate a .pk
from it.

##################################
other files

######################################
 List of ls-R files

-rw-r--r-- 1 root root 1503 29. čen 13.37 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root staff 25 25. pro  2007 /usr/local/share/texmf/ls-R -> /var/lib/texmf/ls-R-LOCAL
lrwxrwxrwx 1 root root 29 17. dub 19.55 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 29. čen 13.29 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 29. čen 13.29 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
 Config files
lrwxrwxrwx 1 root root 20 17. dub 19.55 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 7618 29. čen 13.37 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 8073 29. čen 13.37 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 4781 29. čen 13.37 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 0
######################################
 md5sums of texmf.d
42c20d7e8bd343542772b5a145bf8ad8  /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1  /etc/texmf/texmf.d/15Plain.cnf
f68e5add6afd6585b982f2f78e2e6a92  /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c  /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1  /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068  /etc/texmf/texmf.d/75DviPS.cnf
8fee79ccdd5d1f56b1563dabfd53c717  /etc/texmf/texmf.d/85Misc.cnf
a8952d594677235951d447665ec46e9c  /etc/texmf/texmf.d/90TeXDoc.cnf
30f4f13357c2761ed01a6a15f28725a5  /etc/texmf/texmf.d/95NonPath.cnf
1df66bc319cec731e202eaf39f5d85e1  /etc/texmf/texmf.d/96JadeTeX.cnf

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages texlive-base-bin depends on:
ii  ed                     0.7-1             The classic unix line editor
ii  libc6                  2.7-12            GNU C Library: Shared libraries
ii  libgcc1                1:4.3.1-5         GCC support library
ii  libkpathsea4           2007.dfsg.2-3     TeX Live: path search library for 
ii  libncurses5            5.6+20080621-2    shared libraries for terminal hand
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libpoppler3            0.8.4-1           PDF rendering library
ii  libstdc++6             4.3.1-5           The GNU Standard C++ Library v3
ii  libx11-6               2:1.1.4-2         X11 client-side library
ii  libxaw7                2:1.0.4-2         X11 Athena Widget library
ii  libxmu6                2:1.0.4-1         X11 miscellaneous utility library
ii  libxpm4                1:3.5.7-1         X11 pixmap library
ii  libxt6                 1:1.0.5-3         X11 toolkit intrinsics library
ii  mime-support           3.44-1            MIME files 'mime.types' & 'mailcap
ii  perl                   5.10.0-11         Larry Wall's Practical Extraction 
ii  texlive-common         2007.dfsg.1-2     TeX Live: Base component
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages texlive-base-bin recommends:
ii  perl-tk                   1:804.028-1+b1 Perl module providing the Tk graph
ii  texlive-base-bin-doc      2007.dfsg.2-3  TeX Live: Documentation files for 

Versions of packages tex-common depends on:
ii  debconf                       1.5.22     Debian configuration management sy
ii  ucf                           3.007      Update Configuration File: preserv

Versions of packages texlive-base-bin is related to:
pn  tetex-base                    <none>     (no description available)
pn  tetex-bin                     <none>     (no description available)
pn  tetex-extra                   <none>     (no description available)
ii  tex-common                    1.11       common infrastructure for building

-- debconf information:
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:
  tex-common/singleuser: false
-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>



--- End Message ---
--- Begin Message ---
Source: texlive-bin
Source-Version: 2009-1

We believe that the bug you reported is fixed in the latest version of
texlive-bin, which is due to be installed in the Debian FTP archive:

libkpathsea-dev_2009-1_amd64.deb
  to main/t/texlive-bin/libkpathsea-dev_2009-1_amd64.deb
libkpathsea5_2009-1_amd64.deb
  to main/t/texlive-bin/libkpathsea5_2009-1_amd64.deb
texlive-bin_2009-1.diff.gz
  to main/t/texlive-bin/texlive-bin_2009-1.diff.gz
texlive-bin_2009-1.dsc
  to main/t/texlive-bin/texlive-bin_2009-1.dsc
texlive-bin_2009.orig.tar.gz
  to main/t/texlive-bin/texlive-bin_2009.orig.tar.gz
texlive-binaries_2009-1_amd64.deb
  to main/t/texlive-bin/texlive-binaries_2009-1_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 489943@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated texlive-bin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 13 Nov 2009 01:20:08 +0900
Source: texlive-bin
Binary: texlive-binaries libkpathsea5 libkpathsea-dev
Architecture: source amd64
Version: 2009-1
Distribution: experimental
Urgency: low
Maintainer: Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description: 
 libkpathsea-dev - TeX Live: path search library for TeX (development part)
 libkpathsea5 - TeX Live: path search library for TeX (runtime part)
 texlive-binaries - Binaries for TeX Live
Closes: 336807 342529 350292 351672 357462 361218 413652 420836 421464 446617 450552 450553 450554 450555 450556 450557 450558 450559 450560 457711 459571 461818 464351 478176 481060 485563 489943 507652 517600 517601 518536 520920 536795 538557 542463
Changes: 
 texlive-bin (2009-1) experimental; urgency=low
 .
   [ Frank Küster ]
   * New upstream (closes: #481060) version (pre-release, but not far from)
     with lots of internal changes, hence the upload to experimental. This
     upstream version fixes the following bugs:
 .
     - many manpage typos, with warm thanks and a virtual QA bouquet to
       A. Costa <agcosta@gis.net>, closes: #450552, #450553, #450554,
       #450555, #450556, #450557, #450558, #450559, #450560, #464351 (the
       last was found by Joachim Breitner <nomeata@debian.org>
 .
       [xdvi bugs]
     - closes: #336807, crashes with (breaklinks) hyperrefs
     - closes: #357462, shrinkFactor 0 is broken
     - closes: #361218, dies while printing
     - closes: #342529, unnecessarily noisy in expert mode
     - closes: #350292, please use cntl-wheel to zoom
     - closes: #351672, please use shift-wheel to scroll left or right
     - closes: #478176, transition to texlive has lost xdvi 'grid' feature
     - closes: #461818, typo in oxdvi.1 and xdvi.1 man pages
 .
       [mixed executables]
     - dvips: Upstream added a patch that closes: #520920
 .
     - dvipdfm is now a symlink to dvipdfmx. Among other problems, this
       closes: #485563
 .
     - closes: #421464, pdfetex: Not embedding Base-14 fonts creates
       somewhat broken files
     - closes: #518536, fresh upstream of pdftex is needed (latest stable
       pdftex is 1.40.9 available)
     - #532074, 'man pdftex': missing .ds WB
 .
     - closes: #446617, texlive-metapost: Omits font encoding from output
     - closes: #457711, texlive-metapost: mpost man page does not match reality
 .
     - closes: #507652, make math support working in xe(la)tex and lmodern
       fonts
     - closes: #489943, mktexpk does not work in directories containing
       spaces
     - closes: #536795, 'man texconfig' typos (the fix also affects a
       Debian-specific patch)
     - closes: #420836, "texdoc -s" is too slow, should use ls-R database
 .
     - closes: #459571, please include the TeXcount.pl script to do TeX
       word count
     - closes: #413652, a2ping: embedding all fonts
     - closes: #542463, vlna program missing from texlive-lang-czechslovak
 .
   * The texlive-bin source package is now handled independently from the
     other TeXLive source packages, i.e. it is not configured in
     tpm2deb.cfg in our svn repository and the debian directory. Instead,
     it now looks more like a standard compiled package and should be
     easier to work on in case of security uploads or NMUs.
   * This also means that some of it's older binary packages, like
     texlive-metapost, have moved source package. By chance, this closes:
     #517600, #517601
   * Support a create-orig-source target in debian/rules.  The orig.tar.gz
     is now either wget'ed if we are working on a released version, or
     automatically created from a svn repository for development
   * There are now only three binary packages, texlive-binaries and the two
     library packages.  texlive-binaries Replaces/Conflicts/Provides
     texlive-base-bin in order to get a working (if not smooth)
     transition.
   * Add Build-Depends: time, since the upstream Build script uses it
   * Don't install the format links, they will generated by dh_installtex
     in the other packages, also do not install the man pages for the
     links
   * do not install rungs, it is not necessary
   * do not install script links, they will be shipped together with
     the script itself
   * Add patch 60_unneeded_linking. These needs testing!
 .
   [ أحمد المحمودي (Ahmed El-Mahmoudy) ]
   * debian/rules: use /usr/share/quilt/quilt.make provided by quilt and remove
     patch-stamp & unpatch targets
   * Install changelog into libkpathsea packages
   * Add a README.source
 .
   [ Norbert Preining ]
   * fix postinst update-alternatives, the xdvi-xaw does not have .bin anymore
   * add texlive-binaries.prerm to remove the alternative
   * add same version number to libkpathsea-dev deps on libkpathsea5 to make
     lintian happy
   * make texlive-binaries replace/conflict/provide dvipdfmx (in accordance
     with the maintainer of dvipdfmx we will phase out dvipdfmx itself)
   * new source package format "3.0 (quilt)" can be used (closes: #538557)
   * Install copyright file
   * add patch for libpoppler 0.12 (thanks to Ubuntu for inspiration)
Checksums-Sha1: 
 87ef8895d97895b4b7eba7b75ff7c682cb2c550a 1376 texlive-bin_2009-1.dsc
 0a63e9d6f942933d274eb801f289f81e64ee39e8 51837345 texlive-bin_2009.orig.tar.gz
 1590178e97654bd97931d7a4cf357aa64cd9f9dd 50138 texlive-bin_2009-1.diff.gz
 1170f890f27402d160355c46bd03c423bb7fc29d 7995368 texlive-binaries_2009-1_amd64.deb
 f5d8d8e9fe8461c51936706627a4dc2550d8245f 133424 libkpathsea5_2009-1_amd64.deb
 eaf3f7a8c8e5b8ac4ff3b2d8c9b19fa5f7ac95ba 174928 libkpathsea-dev_2009-1_amd64.deb
Checksums-Sha256: 
 95ea9d9dea974fe91d0c1446c117e6f4b899836c04ca01e997e8f0875b4313b8 1376 texlive-bin_2009-1.dsc
 875ff9623decee7e3896e710df1efd462657f88e22ca05b41be5452b09448c7b 51837345 texlive-bin_2009.orig.tar.gz
 07017277678231b1c301f369b3187d33f5ae92bfaf71375f1654ca7b18a0f131 50138 texlive-bin_2009-1.diff.gz
 94a9689cdb325e14ff54901189452df73eede298ec6631988eb000d04fbb3835 7995368 texlive-binaries_2009-1_amd64.deb
 ccaaabd3f4d94f388d57e153069ed53207b066e69eddf033a9d13e2f4c6953dc 133424 libkpathsea5_2009-1_amd64.deb
 45a4631f95c2b3c07ecd4db592d92e0c448aa94b753dd6a90dee69dff8e381c7 174928 libkpathsea-dev_2009-1_amd64.deb
Files: 
 e15d6893a2587d534fdab549bcb5f062 1376 tex optional texlive-bin_2009-1.dsc
 71e96632cff062dd8d9e4aa4973c2d8e 51837345 tex optional texlive-bin_2009.orig.tar.gz
 9cec7ef66fb01ef44a0393e4288ace3c 50138 tex optional texlive-bin_2009-1.diff.gz
 39aa9b1d97c6d2f63917c8b2d652fa36 7995368 tex optional texlive-binaries_2009-1_amd64.deb
 7d2977e39ec620dabcefb8b6e04cc343 133424 libs optional libkpathsea5_2009-1_amd64.deb
 ca82cb8584804ca19208f9af8f9a4120 174928 libdevel optional libkpathsea-dev_2009-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFK/DlU0r9KownFsJQRAhJgAJ97qCXeybq7j4Z1yugMdyA8ul/ZhgCfeob9
8phVZLuV3aY0zBwOivgpZyo=
=QV0I
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: