Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18026 - iptables 1.2.7a-r3 and imq kernel patch design inconsistency
Summary: iptables 1.2.7a-r3 and imq kernel patch design inconsistency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-22 22:21 UTC by Gregor Lawatscheck
Modified: 2003-05-05 02:47 UTC (History)
2 users (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 Gregor Lawatscheck 2003-03-22 22:21:33 UTC
the ebuild for iptables supports IMQ (The intermediate queueing device see http://luxik.cdi.cz/~patrick/imq/ ). This is nice and I believe this used to work in older ebuilds. However with 1.2.7-r3 there seems to be a bit of a vicious circle: The ebuild checks whether the patch for imq has been applied to the kernel sources, if it hasn't it won't apply the patches to it's extra directory for patch-o-matic and in turn won't add the options to the kernel config. 

I'm wondering now how is anyone supposed to get the benefits of imq by simply emerging gentoo-sources and iptables? It doesn't appear possible. Instead one rather clumsly has to follow the advice on http://www.vanderploeg.net/netshaper/ to apply pom-imq via patch-o-matic to the kernel source tree, then emerge iptables will recognize that imq support is there and then it will build it.

The easiest solution would possibly be to add a profile flag for IMQ. If it's either solution a) iptables would patch the sources to add the options in the kernel or b) imq support could be merged with gentoo-sources patches but only installs itself it the flag is set.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2003-05-04 14:52:35 UTC
This is not an iptables issue, but a missing patch from kernel. 
I've read through the guide at http://www.vanderploeg.net/netshaper/ and you only have to carry out the kernel patch bit. Once the kernel is patched you only have to re-emerge iptables. 

If memory serves me correctly imq was included in gentoo-sources before, but I don't know why it was removed.
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-04 15:08:37 UTC
well, it hasn't been in gentoo-sources for @ least a year and iptables 1.2.7-r3 wasn't there @ 
that time :) - from talking with past maintainers, this was *never* in gentoo-sources. and i 
just scoured the past sources back to 2.4.19-r7... 
 
Now, until there is support in our kernel, the iptables person(s) needs to fix the ebuild. 
I will add support for this in pfeifer-sources-2.4.20_pre10 which will eventually become 
gentoo-sources-2.4.20.1-r4. 
 
Jay 
Comment 3 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-04 15:40:40 UTC
ok, IMQ is patched into pfeifer-sources-2.4.20_pre10 - i'll add it to portage after i test a few 
other patches i've reworked. 
 
Jay  
Comment 4 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-04 23:44:56 UTC
ok, if you need imq now - use pfeifer-sources-2.4.20_pre10 - it is portage and contains 
support for the imq base patch and the imq ipv4 & ipv6 ipt patches. pre10 is close to 
becoming gentoo-sources-2.4.20.1-r4. 
 
Jay 
Comment 5 Gregor Lawatscheck 2003-05-05 02:47:08 UTC
Thank for you for including this in the upcoming gentoo-kernel! Good work.