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

Bug#557861: texdoc.tlu: Please enable compressed file support (support_zipped)



Package: texlive-base
Version: 2009-2
Severity: normal
File: /usr/share/texmf-texlive/scripts/texdoc/texdoc.tlu
Tags: patch

Example:
    $ locate pgfmanual.pdf.gz
    /usr/share/doc/texmf/pgf/pgfmanual.pdf.gz
    $ texdoc pgfmanual
    texdoc info: No exact match, trying full search mode.
    Sorry, no documentation found for pgfmanual.
    ...

'support_zipped' is currently set to 'false' in texdoc.tlu. Viewing
compressed documentation is not possible.

Setting 'support_zipped = true' does the trick but opens up another can
of worms. Automatically detected viewers such as "gnome-open" spawn
applications in the background and texdoc.tlu removes the temporary
uncompressed file before the real viewer has a chance to open the file,
thus causing a "Cannot open file" error:
    texdoc debug1: (gnome-open "/tmp/texdoc.n82zoe/pgfmanual.pdf"; rm -f /tmp/texdoc.n82zoe/pgfmanual.pdf; rmdir /tmp/texdoc.n82zoe) &
    Error: Couldn't open file '/tmp/texdoc.n82zoe/pgfmanual.pdf'


I did a temporary fix for my own testing by adding a 'sleep 5' just
before the 'rm'. See the attached patch.


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

Kernel: Linux 2.6.32-rc7-asuslap-core2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages texlive-base depends on:
ii  dpkg                      1.15.4.1       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  luatex                    0.45.0-2       next generation TeX engine
ii  mime-support              3.46-1         MIME files 'mime.types' & 'mailcap
ii  tex-common                2.00           common infrastructure for building
ii  texlive-binaries          2009-2         Binaries for TeX Live
ii  texlive-common            2009-2         TeX Live: Base component
ii  texlive-doc-base          2009-1         TeX Live: TeX Live documentation

Versions of packages texlive-base recommends:
ii  lmodern                       1.010x-5   scalable PostScript and OpenType f

Versions of packages texlive-base suggests:
ii  epdfview [pdf-viewer]    0.1.7-2         Lightweight pdf viewer based on po
ii  evince [postscript-viewe 2.26.2-2        Document (postscript, pdf) viewer
ii  ghostscript [postscript- 8.70~dfsg-2+b1  The GPL Ghostscript PostScript/PDF
ii  gv [postscript-viewer]   1:3.6.7-1       PostScript and PDF viewer for X
ii  perl-tk                  1:804.028-6     Perl module providing the Tk graph
ii  xpdf-reader [pdf-viewer] 3.02-1.4+lenny1 Portable Document Format (PDF) sui

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  dpkg                          1.15.4.1   Debian package management system
ii  ucf                           3.0024     Update Configuration File: preserv

Versions of packages texlive-base 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                    2.00       common infrastructure for building
*** /usr/share/texmf-texlive/scripts/texdoc/texdoc.tlu.orig	2009-11-24 15:14:03.000000000 -0500
--- /usr/share/texmf-texlive/scripts/texdoc/texdoc.tlu	2009-11-24 15:13:55.000000000 -0500
***************
*** 101,107 ****
  -- everything  works for them (look for support_zipped in the code).
  -- If you use this feature, please let us know: if nobody uses it,
  -- we'll drop it at some point.
! support_zipped = false
  
  --------------------------   general-use functions   ---------------------------
  
--- 101,107 ----
  -- everything  works for them (look for support_zipped in the code).
  -- If you use this feature, please let us know: if nobody uses it,
  -- we'll drop it at some point.
! support_zipped = true
  
  --------------------------   general-use functions   ---------------------------
  
***************
*** 841,846 ****
--- 841,847 ----
                  print("Error executing \n" .. unzip_commandline)
              end
              viewer_replacement = '"' .. filename .. '"; '
+             .. 'sleep 5 ; '
              .. config.rm_file .. ' ' .. filename .. '; '
              .. config.rm_dir .. ' ' .. tmpdir
          end

Reply to: