pkgsrc-Bugs archive

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

pkg/28876: teTeX-share does not include full `listings' package resulting in errors.



>Number:         28876
>Category:       pkg
>Synopsis:       listings.sty is not included, but the rest of listings is, 
>causing probs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 05 19:27:00 +0000 2005
>Originator:     Peter Bex
>Release:        NetBSD 2.0_RC1
>Organization:
        
>Environment:
        
        
System: NetBSD frohike.nvie.com 2.0_RC1 NetBSD 2.0_RC1 (FROHIKE) #3: Wed Sep 29 
19:34:49 CEST 2004 root@:/usr/src/sys/arch/i386/compile/FROHIKE i386
Architecture: i386
Machine: i386
>Description:
        There is a bug print/teTeX-share's distfile.  The `listings'
        package 
(http://www.ctan.org/tex-archive/macros/latex/contrib/listings?filename=macros/latex/contrib/listings/&action=/tools/filesearch&catstring=macros/latex/contrib/listings/)
        is included in the tetex-texmf-2.0.2 tarball, but somehow
        listings.sty is missing!  (all other necessary files seem to be there,
        though)

>How-To-Repeat:
        - Download all compontent files of listings 1.3 (from the
           above-mentioned link) into your ${HOME}/texmf/tex/listings dir.
           (it is important you have version > 1.0, or the error doesn't
             occur, but it is probably not too important that it is
             exactly v 1.3)
        - From ${HOME}/texmf/tex/listings, run
            $ tex listings-1.3.ins
        - \usepackage{listings} in your document.
        - Run latex on your document, and see it give the following error.

This is TeX, Version 3.14159 (Web2C 7.4.5)
(./tutorial.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, british, dutch, nohyphenat
ion, loaded.
(/usr/pkg/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/pkg/share/texmf/tex/latex/base/size10.clo))
(/home/sjamaan/texmf/tex/listings/listings.sty
(/usr/pkg/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/pkg/share/texmf/tex/latex/listings/lstpatch.sty

***
*** This is a patch for `listings.sty' version 1.0, but
*** you're using version 1.3.
***
*** Patch file not loaded.
***

) (/usr/pkg/share/texmf/tex/latex/listings/lstmisc.sty

***
*** This file requires `listings.sty' version 1.0.
*** You have a serious problem, so I'm exiting ...
***

>Fix:

The easiest way to fix it is to exclude the listings package and rely on the
user to install their own version of listings in their homedir.  Just remove
the entire directory: ${PREFIX}/share/texmf/tex/latex/listings

Now run latex again on your listings-using document.  It should work.

Here's a simple patch for print/teTeX-share:

--- files/exclude.orig  2003-12-24 13:51:31.000000000 +0100
+++ files/exclude
@@ -1,2 +1,10 @@
 ls-R
 web2c/mktex.cnf
+tex/latex/listings
+tex/latex/listings/lstlang1.sty
+tex/latex/listings/lstlang2.sty
+tex/latex/listings/lstlang3.sty
+tex/latex/listings/listings.cfg
+tex/latex/listings/lstmisc.sty
+tex/latex/listings/lstpatch.sty
+tex/latex/listings/lstdoc.sty

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index