(following patching round failure to build libtools) Continuing with emerge system the next show stopper is that sys-apps/groff-1.18.1-r4 fails to compile/install as it asserts that /usr/sbin/ebuild.sh cannot find xmkmf on line 92 Attempts to patch by locate-ing xmkmf and adding to PATH failed to have any impact. Reproducible: Always Steps to Reproduce: 1.emerge system 2. 3. Actual Results: Fails in groff with unable to find xmkmf Expected Results: Found xmkmf and run it? Gentoo Base System version 1.4.3.10 Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.21-gss) ================================================================= System uname: 2.4.21-gss i586 Pentium MMX Autoconf: Automake: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.247.19/sites/www.ibiblio.org/gentoo/ http://212.2 19.247.20/sites/www.ibiblio.org/gentoo/ http://212.219.247.10/sites/www.ibiblio. org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/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 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk gtk2 im lib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl os s pam pdflib png python quicktime readline sdl slang spell ssl svga tcpd truetyp e x86 xml2 xmms xv zlib"
What happens if you change line 92 from: -- xmkmf || die -- to -- /usr/X11R6/bin/xmkmf || die -- ?
Despite the comment made in the original post, I found that a simple addition to the $PATH solved the problem. I simply added "/usr/X11R6/bin" to the $PATH on line 68 of /usr/sbin/ebuild.sh.
/usr/X11R6/bin is added to PATH by the X ebuilds
i got the same problem but when building my gentoo system for the first time at stage 2. i dont even have any x installed and i dont have any imake, in fact i only just compiled make