Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180205 - media-libs/libdvdcss-1.2.9-r1 fails to latex refman.tex
Summary: media-libs/libdvdcss-1.2.9-r1 fails to latex refman.tex
Status: RESOLVED DUPLICATE of bug 167704
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 11:40 UTC by Ian Abbott
Modified: 2007-05-30 10:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Sets Doxygen's INPUT_ENCODING to ISO-8859-1 (libdvdcss-1.2.9-inputenc.patch,687 bytes, patch)
2007-05-29 12:25 UTC, Ian Abbott
Details | Diff
Set Doxygen INPUT_ENCODING=ISO-8859-1 and html charset=utf-8 (libdvdcss-1.2.9-doc-encodings.patch,1.33 KB, patch)
2007-05-29 12:50 UTC, Ian Abbott
Details | Diff
Drop in replacement for existing libdvdcss-1.2.9-doc.patch (libdvdcss-1.2.9-doc.patch,2.36 KB, patch)
2007-05-29 14:22 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2007-05-29 11:40:44 UTC
USE="doc" emerge =media-libs/libdvdcss-1.2.9-r1

fails on my system when it builds the reference manual.  LaTeX stops with a prompt for interactive input when it fails to parse the file dvdcss_8h.tex due to a character with an invalid input encoding.

Reproducible: Always

Steps to Reproduce:
1. USE="doc" emerge =media-libs/libdvdcss-1.2.9-r1

Actual Results:  
[...]
cd latex && make  ps

make[3]: Entering directory `/var/tmp/portage/media-libs/libdvdcss-1.2.9-r1/work/libdvdcss-1.2.9/doc/latex'

echo "Running latex..."

Running latex...

latex refman.tex

This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)

entering extended mode

(./refman.tex

LaTeX2e <2003/12/01>

Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b

ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e

stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis

h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur

kish, ukrainian, nohyphenation, loaded.

(/usr/share/texmf/tex/latex/base/book.cls

Document Class: book 2004/02/16 v1.4f Standard LaTeX document class

(/usr/share/texmf/tex/latex/base/bk10.clo))

(/usr/share/texmf/tex/latex/a4wide/a4wide.sty

(/usr/share/texmf/tex/latex/ntgclass/a4.sty))

(/usr/share/texmf/tex/latex/base/makeidx.sty)

(/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty)

(/usr/share/texmf/tex/latex/graphics/graphicx.sty

(/usr/share/texmf/tex/latex/graphics/keyval.sty)

(/usr/share/texmf/tex/latex/graphics/graphics.sty

(/usr/share/texmf/tex/latex/graphics/trig.sty)

(/usr/share/texmf/tex/latex/graphics/graphics.cfg)

(/usr/share/texmf/tex/latex/graphics/dvips.def)))

(/usr/share/texmf/tex/latex/tools/multicol.sty)

(/usr/share/texmf/tex/latex/float/float.sty)

(/usr/share/texmf/tex/latex/base/textcomp.sty

(/usr/share/texmf/tex/latex/base/ts1enc.def))

(/usr/share/texmf/tex/latex/base/alltt.sty)

(/usr/share/texmf/tex/latex/base/inputenc.sty

(/usr/share/texmf/tex/latex/base/utf8.def

(/usr/share/texmf/tex/latex/base/t1enc.dfu)

(/usr/share/texmf/tex/latex/base/ot1enc.dfu)

(/usr/share/texmf/tex/latex/base/omsenc.dfu)

(/usr/share/texmf/tex/latex/base/ts1enc.dfu))) (./doxygen.sty

(/usr/share/texmf/tex/latex/tools/calc.sty)

(/usr/share/texmf/tex/latex/tools/array.sty))

(/usr/share/texmf/tex/latex/base/fontenc.sty

(/usr/share/texmf/tex/latex/base/t1enc.def))

Writing index file refman.idx

No file refman.aux.

(/usr/share/texmf/tex/latex/base/ts1cmr.fd) [1] [2]

No file refman.toc.

[1] [2]

Chapter 1.

(./index.tex



LaTeX Warning: Reference `dvdcss_8h' on page 1 undefined on input line 5.



(/usr/share/texmf/tex/latex/base/t1cmtt.fd) [1]) [2]

Chapter 2.

(./files.tex



LaTeX Warning: Reference `dvdcss_8h' on page 3 undefined on input line 3.



) [3] [4]

Chapter 3.

(./dvdcss_8h.tex [5]



! Package inputenc Error: Unicode char \u8:éph not set up for use with LaTeX.



See the inputenc package documentation for explanation.

Type  H <return>  for immediate help.

 ...                                              

                                                  

l.49 \item[Author:]Stéph

                        ane Borel $<${\tt stef@via.ecp.fr}$>$

? X   <=== Note: I typed 'X' at the prompt for input here...

Output written on refman.dvi (9 pages, 8536 bytes).

Transcript written on refman.log.

make[3]: *** [refman.dvi] Error 1

make[3]: Leaving directory `/var/tmp/portage/media-libs/libdvdcss-1.2.9-r1/work/libdvdcss-1.2.9/doc/latex'

make[2]: *** [stamp-latex] Error 2

make[2]: Leaving directory `/var/tmp/portage/media-libs/libdvdcss-1.2.9-r1/work/libdvdcss-1.2.9/doc'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/var/tmp/portage/media-libs/libdvdcss-1.2.9-r1/work/libdvdcss-1.2.9'

make: *** [all] Error 2



!!! ERROR: media-libs/libdvdcss-1.2.9-r1 failed.

Call stack:

  ebuild.sh, line 1615:   Called dyn_compile

  ebuild.sh, line 972:   Called qa_call 'src_compile'

  ebuild.sh, line 44:   Called src_compile

  libdvdcss-1.2.9-r1.ebuild, line 47:   Called die



!!! (no error message)

!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! A complete build log is located at '/var/tmp/portage/media-libs/libdvdcss-1.2.9-r1/temp/build.log'.




I think the problem is due to refman.tex including the line:

\usepackage[utf8]{inputenc}

But the dvdcss_8h.tex file included by refman.tex appears to be encoded in latin1, not utf8.

I considered bug #167704, but my symptoms are different.

Here is my emerge --info:

Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.21-gentoo-ija1 i686)
=================================================================
System uname: 2.6.21-gentoo-ija1 i686 AMD Duron(tm) processor
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 15 May 2007 13:00:06 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon -O2 -pipe"
DISTDIR="/work/portage/distfiles"
FEATURES="confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en en_GB"
PKGDIR="/work/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi adns alsa arts avahi berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus doc dri dv dvd dvdr dvdread eds emboss encode esd evo expat fam firefox flac flash fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtkhtml hal iconv idn imagemagick imap imlib ipv6 isdnlog java jpeg kde kerberos lcms ldap libg++ mad midi mikmod mmx mng mono motif mozsvg mp3 mpeg ncurses nls no-helper nptl nsplugin offensive ogg opengl oss pam pcre pdf perl plotutils png ppds pppd python qemu-fast qt3 qt3support qt4 quicktime readline reflection samba sdl session slang snmp softmmu spell spl sqlite ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x264 x86 xine xml xorg xv zlib" ALSA_CARDS="ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ian Abbott 2007-05-29 12:25:14 UTC
Created attachment 120608 [details, diff]
Sets Doxygen's INPUT_ENCODING to ISO-8859-1

This patch fixes it a bit, but not perfectly.  It configures Doxygen to use INPUT_ENCODING=ISO-8859-1 to match the source files.

With this patch, the build completes successfully but the generated html files are wrong.  The html files specify charset=iso-8859-1 but the body of the html files includes UTF-8 sequences.
Comment 2 Ian Abbott 2007-05-29 12:50:53 UTC
Created attachment 120610 [details, diff]
Set Doxygen INPUT_ENCODING=ISO-8859-1 and html charset=utf-8

Improved the patch to also set charset=utf-8 in the generated html files. (I changed it in the header.html file.)

Now the charset specified in the html output files matches Doxygen's output encoding.
Comment 3 Ian Abbott 2007-05-29 13:00:10 UTC
Incidentally, none of the files generated by the TeX stuff (specifically, refman.ps) actually get installed by the ebuild.  Only the html files get installed.

Would it be better to make the build skip the latex stuff?
Comment 4 Ian Abbott 2007-05-29 14:22:18 UTC
Created attachment 120617 [details, diff]
Drop in replacement for existing libdvdcss-1.2.9-doc.patch

Here is a drop-in replacement for the existing libdvdcss-1.2.9-doc.patch.  It does the following:

1. Forces "LATEX=no" in configure.ac to avoid making stuff in doc/latex directory
2. Sets "GENERATE_LATEX=NO" in doc/doxygen.cfg to stop doxygen generating LaTeX files.
3. Sets "INPUT_ENCODING=ISO-8859-1" in doc/doxygen.cfg to make doxygen aware of the input encoding of the source files.
4. Sets "charset=utf-8" in doc/header.html so that the declared encoding of the html files matches the actual output generated by doxygen.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 18:53:12 UTC
Please, attach the fix to the original bug. Thanks.

*** This bug has been marked as a duplicate of bug 167704 ***
Comment 6 Ian Abbott 2007-05-30 10:02:01 UTC
Bug #167704 looks like a segmentation fault running dvips, so it's not the same as this bug.  Having said that, disabling the latex stuff would effectively "fix" the other bug.