Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58319 - Quagga needs iproute2, but the ebuild (apparently) does not specify this.
Summary: Quagga needs iproute2, but the ebuild (apparently) does not specify this.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Amir Guindehi (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-25 10:41 UTC by Dan Clemmensen
Modified: 2004-10-22 02:15 UTC (History)
0 users

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 Dan Clemmensen 2004-07-25 10:41:34 UTC
After emerging quagga, I created a minimal config file for zebra and executed:
   /etc/init.d/zebra start
the "start" section of the /etc/init.d/zebra script tries to run a program named
    ip
which was not present on my system.  Further research shows that there is a program of this name in the iproute2 package.

Reproducible: Always
Steps to Reproduce:
1. (create new gentoo system)
2. emerge quagga
3. cp /etc/quagga/samples/zebra.conf.sample /etc/quagga/zebra.conf
4. /etc/init.d/zebra start

Actual Results:  
The following error message was printed:
   /sbin/runscript.sh: line 1: ip: command not found
(note that zebra runs anyway.)

Expected Results:  
The program named "ip" should be run, OR, the script should not attempt to run
the program. I am not experienced at running a Linux router, so I'm not sure
that the iproute2 package is fundamental to quagga operations. However, I think
it is.

workaround (duh!):

emerge iproute2
Comment 1 Amir Guindehi (RETIRED) gentoo-dev 2004-07-25 17:38:57 UTC
The iproute2 package is not needed for Quagga's normal operation. The init script tries to fix a problem im Quagga 0.96.4 which leaves routes in the routing tables when not shutdown normally. 

You're right, that the ebuild should specify the package. 
I will change the ebuild to depend on iproute2, which is anyway a good thing to have around since ifconfig is depreciated. ;-)) Further Quagga versions will remove such left over routes by themselfes (afaik) and I will remove above dependency in the future.
Comment 2 Dan Clemmensen 2004-07-25 18:28:04 UTC
The man page for zebra implies that it will in fact remove old zebra routes, unless the -k options is present. I assume that zebra is slightly broken so you made "cleanup" part of the "start" script.

Making Quagga depend on iproute2 is a deeply philosophical issue :-)
You, as Quagga ebuild maintainer, are deciding that anyone who does an
   emerge quagga
really ought to do an
   emerge iproute2
also, because you have to be an idiot to run a Linux router without iproute2. Speaking as one such idiot, I would be grateful if you did this.
Comment 3 Amir Guindehi (RETIRED) gentoo-dev 2004-07-25 19:24:04 UTC
"which is anyway a good thing to have around since ifconfig is depreciated"
... this hardly qualifies as "calling you an idiot"! ;)

Anyway, yes, I will all the dependency, it's needed and I never noticed that it's missing since i'm one of those who emerges iproute2 right after world... ;)


Comment 4 Amir Guindehi (RETIRED) gentoo-dev 2004-10-22 02:15:16 UTC
Implemented.