The last iputils ebuild (021109-r3) has a mandatory dependency on yacc. In my home desktop system, this is the only package that depends on yacc instead of bison. I believe the package can be compiled using bison just by applying the very simple patch below to the file libipsec/Makefile:
--- libipsec/Makefile 2004-08-02 18:08:47.000000000 -0300
+++ libipsec/Makefile.orig 2004-08-02 18:08:38.000000000 -0300
@@ -13,7 +13,7 @@
$(AR) rcs $@ $(OBJ)
policy_parse.c policy_parse.h: policy_parse.y
- bison -y -d -p __libyy policy_parse.y
+ yacc -d -p __libyy policy_parse.y
mv y.tab.c policy_parse.c
mv y.tab.h policy_parse.h
This way, the yacc package could be removed since bison is a base system package as has to be installed anyway. Further, since the directory (libipsec) where the yacc dependency is in is only compiled if the kernel has IPSEC enabled, the bison dependency could apply just to users that have this kernel option enabled (although I'm not sure there's a USE flag or some other automated way to do it).
Steps to Reproduce:
Actually, not done deal. The line in the ebuild reading:
sed -i ':yacc:bison:'
sed -i ':yacc:bison -y:'
This minor error is the cause of bug #58414.
Err, that should be bug #59414.
Fixed for real now.
whoops, missed that 'minor' detail