dev-util/cola build fails if doc useflag is enabled and dev-python/sphinx is not installed. Reproducible: Always Steps to Reproduce: 1.make sure dev-python/sphinx is not installed 2.USE=doc emerge -av dev-util/cola 3. Actual Results: it-cola/qm/fr.qm msgfmt --qt share/git-cola/po/hu.po -o /var/tmp/portage/dev-util/cola-1.3.9.14/work/cola-1.3.9.14/share/git-cola/qm/hu.qm msgfmt --qt share/git-cola/po/ru.po -o /var/tmp/portage/dev-util/cola-1.3.9.14/work/cola-1.3.9.14/share/git-cola/qm/ru.qm running build running build_scripts creating build creating build/scripts-2.6 copying bin/git-cola -> build/scripts-2.6 make -j3 all fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git cp conf.py.in conf.py perl -p -i -e s,{version},"", conf.py perl -p -i -e s,{release},"", conf.py sphinx-build -b html -d _build/doctrees . _build/html make: sphinx-build: Command not found make: *** [html] Error 127 * ERROR: dev-util/cola-1.3.9.14 failed: * building docs failed * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3180: Called die * The specific snippet of code: * emake all || die "building docs failed"; Expected Results: with use=doc, correct dependency should pull in dev-python/sphinx and a successful build should follow. emerge --info Portage 2.2_rc47 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.0.1 Timestamp of tree: Sat, 31 Oct 2009 13:15:02 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.4, 3.1.1-r1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.gg3.net/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/manshankar/OSWork/portage" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="3dnow X a52 aac aalib acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt dbus directfb dri dts dvd dvdr eds emboss encode evo exif fam fbcon ffmpeg firefox flac fontforge fortran gdbm gif gnutls gpm gstreamer gtk hal iconv idn ipv6 isdnlog java6 jpeg libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sasl sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb vim-syntax vorbis x264 xcomposite xml xorg xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 208955 [details, diff] Added deps for doc useflag Also added the xmlto along with sphinx dep. by the way upstream released version 1.4.0.1. The new version also builds fine with the above patch and doc use enabled. Regards & Cheers!
Created attachment 209112 [details, diff] Fixed deps and actually install the html docs The build process makes html docs in a different directory. Also when using the F1 key the program expects the html manpage in /usr/share/doc/git-cola instead of /usr/share/doc/{PF}. Hence removed the sed patch. Regards & cheers
Fixed. I decided to do it differently.
(In reply to comment #3) > Fixed. I decided to do it differently. > Thanks. Great work, way better and cleaner solution! Regards.