with global USE="doc -png -gif", `emerge darcs` will fail. with USE=doc, darcs's documentation is built, drawing in dev-tex/latex2html as a dependency. latex2html has the USE flags gif and png, among others. If none of them is specified, output of graphics is unavailable. (see below) `latex2html -split +1 -dir manual darcs.tex` is one of the commands that will be issued as a part of `make all` (only with USE=doc !). the command will fail with USE="-png -gif", whereas e.g. it will succeed with USE="png -gif". this is the error: % latex2html -split +1 -dir manual darcs.tex Note: Loading ./.latex2html-init Error: No such image type ''. This installation supports (first is default): Compilation failed in require at /Users/pipping/Gentoo/usr/bin/latex2html line 39. (as you can see the list of supported image types is empty)
% emerge --info Portage 2.2.00.8112-prefix (default-prefix/darwin/macos/10.4/x86, gcc-4.0.1, unavailable, 8.10.1 i386) ================================================================= System uname: 8.10.1 i386 i386 Timestamp of tree: Sat, 13 Oct 2007 22:57:33 +0000 distcc 2.18.3-Apple.1 powerpc-apple-darwin8.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r04.2, 2.5.1-r02.2 sys-devel/autoconf: 2.13, 2.61-r1 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/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 ACCEPT_KEYWORDS="x86-macos ~x86-macos" CBUILD="i686-apple-darwin8" CFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe" CHOST="i686-apple-darwin8" CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe" DISTDIR="/Users/pipping/Gentoo/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" EPREFIX="/Users/pipping/Gentoo" FEATURES="collision-protect distlocks metadata-transfer nodoc noinfo nostrip parallel-fetch sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" INSTALL_MASK="*.info *.info-?" MAKEOPTS="-j3" PKGDIR="/Users/pipping/Gentoo/usr/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="/Users/pipping/Gentoo/var/tmp" PORTDIR="/Users/pipping/Gentoo/usr/portage" SYNC="svn+http://overlays.gentoo.org/svn/proj/alt/trunk/prefix-overlay" USE="aac coreaudio cracklib crypt cscope curl doc gmp gnutls gpgme imap ipv6 mbox mmx mmxext ncurses objc objc++ pager patch pcre perl prefix python readline ruby sasl smtp sse sse2 ssl subversion swig tcl tetex unicode vim-syntax x86-macos xml zlib zsh-completion" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
darcs does indeed fail if dev-tex/latex2html is built with USE="-png -gif". It does work if either png or gif is enabled. The following patch has been applied to the overlay ebuilds: pkg_setup() { if use doc && ! built_with_use -o dev-tex/latex2html png gif; then eerror "Building darcs with USE=\"doc\" requires that" eerror "dev-tex/latex2html is built with at least one of" eerror "USE=\"png\" and USE=\"gif\"." die "USE=doc requires dev-tex/latex2html with USE=\"png\" or USE=\"gif\"" fi }
Fixed in portage for the older darcs versions too, latest 1.1.0_pre1 already had it.