Package: python2.3-dev
Version: 2.3.5-3
Severity: important
Tags: patch

Although python.sty defines the \ifpdf conditional (nearly) correctly,
it does not use it in howto.cls before defining the \pdfinfo command for
\maketitle: The \pdfinfo command is used unconditionally even if no PDF
is to be produced.  I don't know why this works in tetex-2.0.2 which is
currently unstable, but it stops working in tetex-3.0 which is currently
in experimental and will be uploaded to unstable soon.

This causes FTBFS bugs in packages that build ps or dvi files with
python2.3-dev's mkhowto script, e.g. python-crypto.

The attached patch is the minimal fix needed to make python-crypto
happy.  However, the code used to set \ifpdf is, as I said, only
"nearly" correct:  After the check, \pdfoutput is always defined to be
\relax, because of the \ifx statement.  Therefore the test will fail
(with "missing number" from the \ifcase primitive) if some other package
previously has done the same check.  You can get the complete check from
ifpdf.sty - or much easier, simply use

\RequirePackage{ifpdf}
\ifpdf\else
...your code
\fi

Regards, Frank

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-386
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages python2.3-dev depends on:
ii  python2.3                     2.3.5-3    An interactive high-level object-o

-- no debconf information

-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer

--- /usr/lib/python2.3/doc/texinputs/howto.cls	2003-07-17 06:15:35.000000000 +0200
+++ howto.cls	2005-08-10 16:04:23.414371842 +0200
@@ -49,6 +49,7 @@
 %
 \renewcommand{\maketitle}{
   [EMAIL PROTECTED]
+  \ifpdf
   [EMAIL PROTECTED]
     % This \def is required to deal with multi-line authors; it
     % changes \\ to ', ' (comma-space), making it pass muster for
@@ -59,6 +60,7 @@
       /Title ([EMAIL PROTECTED])
     }
   }}
+  \fi
   \begin{flushright}
     [EMAIL PROTECTED] [EMAIL PROTECTED] \par
     [EMAIL PROTECTED] [EMAIL PROTECTED] \par

Reply via email to