Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292532 - sys-apps/groff-1.20.1-r2 fails to configure
Summary: sys-apps/groff-1.20.1-r2 fails to configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 15:09 UTC by Stuart Shelton
Modified: 2009-11-12 11:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-11-09 15:09:49 UTC
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.
Comment 1 Stuart Shelton 2009-11-09 15:37:54 UTC
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 :(
Comment 2 Fabian Groffen gentoo-dev 2009-11-11 12:49:18 UTC
fix0rzed (eautoreconf needed AT_M4DIR=m4)
Comment 3 Stuart Shelton 2009-11-12 11:54:20 UTC
Yep, perfect - thanks :)