Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 72604

Summary: docbook2txt without lynx installed tries to fallback to links with nonexistent "-dump" option
Product: Gentoo Linux Reporter: Ole Craig <olc>
Component: Current packagesAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ole Craig 2004-11-26 22:40:03 UTC
This came up while trying to emerge wine with USE="doc" (see bug #71697)...
In a roundabout way, docbook2txt calls /usr/share/sgml/docbook/utils-0.6.14/backends/txt, which in order to parse HTMLish things into text tries lynx, then links, then w3m, and then elinks before giving up. If lynx is installed, it works fine.. but if lynx is not installed but links is, then the script bombs because links (actually a symlink to /usr/bin/links2) does not accept "-dump" as an argument. 
Workaround: install lynx. 

Perhaps the docbook-sgml-utils ebuild should depend on lynx?

Reproducible: Always
Steps to Reproduce:
1. emerge -C lynx
2. emerge links
3. emerge docbook-sgml-utils
4. docbook2txt foo.sgml 
    (or)
4. USE="doc" emerge wine

Actual Results:  
[...]
docbook2txt wine-devel.sgml
Using catalogs: /etc/sgml/sgml-docbook-3.1.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html
Working on:
/var/tmp/portage/wine-20041019-r3/work/wine-20041019/documentation/wine-devel.sgml
Unknown option -dump
make: *** [wine-devel.txt] Error 9
[...]



Expected Results:  
>>> app-emulation/wine-20041019-r3 merged.
>>> Recording app-emulation/wine in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.


Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/ http://gentoo.ccccom.com
http://gentoo.osuosl.org/ ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi acpi4linux aim alsa apache2 apm arts audiofile avi
bash-completion berkdb bitmap-fonts bonobo bzlib cddb cdparanoia cdr codecs
crypt ctype cups curl curlwrappers dga dio directfb divx4linux doc dri dvb dvd
dvdr dvdread dxr3 emacs encode esd ethereal exif f77 faac faad fam fbcon ffmpeg
fftw flac flash foomaticdb fortran ftp gd gdbm ggi gif gimp gimpprint glx gnome
gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick
imlib insecure-drivers jabber jack java jikes joystick jpeg jpeg2k junit ladcca
lcms lesstif libg++ libwww lirc mad mikmod ming mitshm mmap mmx mng motif
mozilla mozp3p mozsvg mp3 mpeg mpeg4 mpi mplayer msn mysql mysqli nas ncurses
nls nptl odbc ofx oggvorbis openal opengl oscar oss pam pcmcia pcntl pcre pda
pdflib perl php pic pie png pnp posix ppds python qt quicktime readline samba
scanner sdl session shared sharedmem simplexml slang slp sndfile snmp soap
sockets sox spell sse ssl svg svga sysvipc tcltk tcpd tetex theora tiff truetype
truetype-fonts trusted type1-fonts usb v4l v4l2 videos wmf wxwindows x86 xanim
xine xml xml2 xmlrpc xmms xosd xpm xscreensaver xsl xv xvid xvmc yahoo yv12 zlib
video_cards_savage"
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-02 20:14:35 UTC
Fixed in CVS. links doesn't have dump feature, so I simply removed
it from txt backends. (This is a bug in upstream)
Thanks for the bug report.