Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59191 - Unecessary yacc dependency in latest iputils ebuild
Summary: Unecessary yacc dependency in latest iputils ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-02 14:21 UTC by Gustavo M. Gama
Modified: 2004-08-04 12:28 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 Gustavo M. Gama 2004-08-02 14:21:47 UTC
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).

Reproducible: Always
Steps to Reproduce:
1.emerge iputils
Comment 1 SpanKY gentoo-dev 2004-08-03 05:28:44 UTC
done deal
Comment 2 Mike Gilbert gentoo-dev 2004-08-04 11:26:56 UTC
Actually, not done deal. The line in the ebuild reading:

sed -i ':yacc:bison:'

Should read:

sed -i ':yacc:bison -y:'

This minor error is the cause of bug #58414.
Comment 3 Mike Gilbert gentoo-dev 2004-08-04 11:28:10 UTC
Err, that should be bug #59414.
Comment 4 Jon Portnoy (RETIRED) gentoo-dev 2004-08-04 11:56:29 UTC
Fixed for real now.
Comment 5 SpanKY gentoo-dev 2004-08-04 12:28:50 UTC
whoops, missed that 'minor' detail