gawk might want to depend on bison (if this is possible at all), during emerge -e system gawk fails on an empty/bare system as follows: config.status: creating po/POTFILES config.status: creating po/Makefile config.status: fixing Makefile to keep version.c make 'CFLAGS=-O2 -pipe' 'LDFLAGS=' all-recursive make[1]: Entering directory `/export/scratch0/GentooPrefix/var/tmp/portage/sys-apps/gawk-3.1.5-r3/work/gawk-3.1.5' Making all in . make[2]: Entering directory `/export/scratch0/GentooPrefix/var/tmp/portage/sys-apps/gawk-3.1.5-r3/work/gawk-3.1.5' if i386-sun-solaris2.10-gcc -DDEFPATH="\".:/export/scratch0/GentooPrefix/usr/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/export/scratch0/GentooPrefix/usr/share/locale\"" -I. -I. -I. -O2 -pipe -MT array.o -MD -MP -MF ".deps/array.Tpo" -c -o array.o array.c; \ then mv -f ".deps/array.Tpo" ".deps/array.Po"; else rm -f ".deps/array.Tpo"; exit 1; fi yacc awkgram.y /bin/bash: yacc: command not found make[2]: *** [awkgram.c] Error 127 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/export/scratch0/GentooPrefix/var/tmp/portage/sys-apps/gawk-3.1.5-r3/work/gawk-3.1.5' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/scratch0/GentooPrefix/var/tmp/portage/sys-apps/gawk-3.1.5-r3/work/gawk-3.1.5' make: *** [all] Error 2 !!! ERROR: sys-apps/gawk-3.1.5-r3 failed. Call stack: ebuild.sh, line 1766: Called dyn_compile ebuild.sh, line 1123: Called qa_call 'src_compile' ebuild.sh, line 38: Called src_compile gawk-3.1.5-r3.ebuild, line 56: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/export/scratch0/GentooPrefix/var/tmp/portage/sys-apps/gawk-3.1.5-r3/temp/build.log'. -bash-3.00$ emerge -av bison These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-devel/bison-2.3 USE="-nls -static" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] n Quitting. -bash-3.00$
gawk requires any yacc, not just bison bison just happens to be in base/packages