Package: jadetex
Version: 3.13-6
Severity: important

Building jadetex, I get an error:

> rm -rf debian/jadetex
> install -d -o root -g root -m 755 debian/jadetex/usr/bin 
> debian/jadetex/usr/share/doc/jadetex debian/jadetex/usr/share/man/man1        
>                \
>         debian/jadetex/usr/share/texmf/tex/jadetex/base 
> debian/jadetex/usr/share/texmf/tex/jadetex/config 
> debian/jadetex/etc/texmf/fmt.d debian/jadetex/etc/texmf/texmf.d
> install -o root -g root -m 644 -p     jadetex.ini pdfjadetex.ini 
> debian/jadetex/usr/share/texmf/tex/jadetex/config/
> install -o root -g root -m 644 -p     debian/texmf.cnf 
> debian/jadetex/etc/texmf/texmf.d/96JadeTeX.cnf
> dh_installtex --priority=40   \
>               format=jadetex,etex,language.dat,jadetex.ini    \
>               format=pdfjadetex,etex,language.dat,pdfjadetex.ini
> install -o root -g root -m 644 -p     jadetex.1 pdfjadetex.1 
> debian/jadetex/usr/share/man/man1/
> install -o root -g root -m 644 -p jadetex.ltx 
> debian/jadetex/usr/share/texmf/tex/jadetex/base/
> install -o root -g root -m 644 -p dsssl.def *.sty *.fd 
> debian/jadetex/usr/share/texmf/tex/jadetex/base/
> install -d -o root -g root -m 755 debian/jadetex/usr/share/bug/jadetex
> install -o root -g root -m 644 -p debian/reportbug-control 
> debian/jadetex/usr/share/bug/jadetex/control
> ln -s etex debian/jadetex/usr/bin/jadetex
> ln: creating symbolic link `debian/jadetex/usr/bin/jadetex' to `etex': File 
> exists
> make: *** [binary-indep] Error 1

This apparently occurs because dh_installtex of tex-common 1.7
already makes a similar symlink.  In /usr/bin/dh_installtex:

> B<format:no_links>:
> Usually, for every format that is specified in a configuration file in
> /etc/texmf/fmt.d/, dh_installtex will create a symlink
> /usr/bin/I<format> that points to the corresponding engine.  For
> example, /usr/bin/latex would be created as a symlink to pdftex.  
> 
> The flavor B<format:no_links> inhibits this. If a link already
> exists, dh_installtex will skip this format with an informational
> message, even if this option is not given. 

In debian/jadetex/etc/texmf/fmt.d/40jadetex.cnf:

> jadetex       etex    language.dat    jadetex.ini
> pdfjadetex    etex    language.dat    pdfjadetex.ini

In tex-common/changelog.gz:

> tex-common (1.1) experimental; urgency=low
...
>   * let dh_installtex automatically create links for formats installed
>     and add flavor to disable this behaviour.
...
>  -- Norbert Preining <[EMAIL PROTECTED]>  Mon, 26 Feb 2007 18:31:32 +0100

The jadetex 3.13-7.1 package is from 2006-10-17, so it doesn't
include any code to specifically handle this change.

If the documentation of dh_installtex were correct, I think
the best solution would be to move the ln -s calls before
the dh_installtex call, as then jadetex would probably build
correctly with both old and new versions of tex-common.
However, this does not actually work:

> ln -s etex debian/jadetex/usr/bin/jadetex
> ln -s pdfetex debian/jadetex/usr/bin/pdfjadetex
> dh_installtex --priority=40   \
>               format=jadetex,etex,language.dat,jadetex.ini    \
>               format=pdfjadetex,etex,language.dat,pdfjadetex.ini
> ln: creating symbolic link `debian/jadetex/usr/bin/jadetex' to `etex': File 
> exists
> dh_installtex: command returned error code 256
> make: *** [binary-indep] Error 1

Instead, adding --flavor=format:no_links to the dh_installtex
call seems to work, but I don't know if it breaks compatibility
with earlier versions of tex-common.  Alternatively, you might
use ln -sf or test -h.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages jadetex build-depends on:
ii  debhelper                 5.0.45         helper programs for debian/rules
ii  docbook-dsssl             1.79-4         modular DocBook DSSSL stylesheets, 
for print
ii  docbook-xml               4.4-4          standard XML documentation system, 
for softw
ii  openjade                  1.4devel1-13   Implementation of the DSSSL 
language
rc  tetex-extra               3.0-14         Additional library files of teTeX
ii  texlive-fonts-recommended 2007-2         TeX Live: Recommended fonts
ii  texlive-latex-recommended 2007-2         TeX Live: LaTeX recommended 
packages

Another relevant package:
ii  tex-common     1.7            Common infrastructure for using and building 
TeX in Debian

Attachment: pgpnE1iNPUbWF.pgp
Description: PGP signature

Reply via email to