As per Bug 256022, groff-1.20.10r2 is unmasked, but fails with: configure: line 3124: GROFF_CXX_CHECK: command not found configure: line 3125: GROFF_EBCDIC: command not found configure: line 3126: GROFF_OS390: command not found configure: line 3127: GROFF_X11: command not found configure: line 3128: GROFF_APPRESDIR_OPTION: command not found configure: line 3129: GROFF_APPRESDIR_DEFAULT: command not found configure: line 3130: GROFF_PRINT: command not found checking for grep that handles long lines and -e... /opt/gentoo/usr/bin/grep checking for egrep... /opt/gentoo/usr/bin/grep -E checking for perl... /opt/gentoo/usr/bin/perl configure: line 3306: GROFF_PROG_YACC: command not found configure: line 3307: GROFF_MAKEINFO: command not found checking for ranlib... ranlib configure: line 3400: GROFF_INSTALL_SH: command not found configure: line 3401: GROFF_INSTALL_INFO: command not found checking for a BSD-compatible install... /opt/gentoo/usr/bin/install -c checking whether ln -s works... yes configure: line 3540: syntax error near unexpected token `SH_SCRIPT_SED_CMD='1s/.*/:/',' configure: line 3540: `GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='1s/a/a/')' make: *** [all] Error 2 * ERROR: sys-apps/groff-1.20.1-r2 failed: * (no error message) * * Call stack: * ebuild.sh, line 51: Called call-ebuildshell 'src_compile' * environment, line 490: Called src_compile * environment, line 2895: Called die * The specific snippet of code: * emake || die ... the line in 'configure' causing this problem is: # use a dummy substitution if no csh hack is necessary to avoid errors # with non-GNU sed programs GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='1s/a/a/') ... I'm not sure if this is at all related to the problem, but groff also seems to use '/bin/sh' throughout as a command-interpretor, rather than a prefix (and therefore bash-compatible rather than ksh) shell.
In fact, it looks as if almost the entire contents of configure.ac are GROFF_* functions which aren't defined anywhere. Commenting out every occurrence of these allows groff to configure, but the build fails with: ranlib libbib.a make[2]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.20.1-r2/work/groff-1.20.1/src/libs/libbib' mkdir -p -- @XLIBDIRS@ make[2]: Entering directory `/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.20.1-r2/work/groff-1.20.1/@XLIBDIRS@' make[2]: ./Makefile.sub: No such file or directory make[2]: *** No rule to make target `./Makefile.sub'. Stop. make[2]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.20.1-r2/work/groff-1.20.1/@XLIBDIRS@' make[1]: *** [@XLIBDIRS@] Error 2 make[1]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.20.1-r2/work/groff-1.20.1' make: *** [all] Error 2 ... so it looks as if there are further substitution problems :(
fix0rzed (eautoreconf needed AT_M4DIR=m4)
Yep, perfect - thanks :)