For my use of quagga I need to build it with --enable-multipath=2. It seems that the only way to accomplish this right now is to make myself a modified ebuild where I can add the configure option. I propose to have this feature included in the Gentoo ebuild for quagga. However, I guess it is a bit of a problem since one user such as myself wants --enable-multipath=2 whereas someone with a Linux box with more interfaces might want --enable-multipath=4 or so. Could this perhaps be done with a bunch of USE flags, like quagga-multipath-2 quagga-multipath-3 quagga-multipath-4 quagga-multipath-5 quagga-multipath-6 Does not feel very elegant, but it makes maintenance life easy: Just put the appropriate USE flag in /etc/make.conf and then future ebuilds of quagga will insert the correct --enable-multipath=N option at build time.
what about a "multipath" useflag that sets --enable-multipath=0? a quick look in source reveals that 0 means unlimited number of paths. would that solve your problem?
amir, I see you took the bug #115208 under your wing. please solve this one as well.
(In reply to comment #1) Yes Alin, that should be OK in my case, I have tested it now and it seems to work fine. The NEWS textfile mentions the use of argument 0, so it is even documented to some little extent. Perhaps a USE flag could simply be named "multipath". Or should it be "multipath-routing" maybe? It seems that there are many references to the word multipath in the context of radio signal propagation. Far-fetched as it may be, some future radio communications simulation software may want to have a USE flag with the name "multipath". No big deal what the exact name will be though.
I would say stick with the name used by configure, namely "multipath".
Implemented in quagga-0.98-5-r2.ebuild. The new local use flag is named 'multipath'.