Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202717 - does iptables unnecessarily need kernel sources?
Summary: does iptables unnecessarily need kernel sources?
Status: RESOLVED DUPLICATE of bug 120233
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-18 19:40 UTC by impulze
Modified: 2007-12-18 22:19 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 impulze 2007-12-18 19:40:30 UTC
i just figured that iptables pulls kernel sources (not headers). though i'm sure that iptables modules (like those for layer7 or other extensions) need the sources i don't know if they're needed if you want a plain iptables installation.
it seems like inheriting linux-info pulls the sources... though i'm not sure which functions are used it seems to me that one function is placed wrong.

lines 42-50 (here the kernel version is checked before checking if we need l7filter)
    if kernel_is ge 2 6 20
    then
        L7FILE=${KERNEL_DIR}/net/netfilter/xt_layer7.c
    else
        L7FILE=${KERNEL_DIR}/net/ipv4/netfilter/ipt_layer7.c
    fi
    if use l7filter && \
        [ ! -f "${L7FILE}" ]; then
        die "For layer 7 support emerge net-misc/l7-filter-${L7_PV} before this"

lines 104-106 (here the kernel version is checked AFTER the use flag l7filter is checked)
    if use l7filter ; then
        #yes choosing 2.6.20 was deliberate - upstream mistake possibly
        if kernel_is ge 2 6 20

so is it possible to probably switch the order of the former mentioned function calling and prevent pulling the kernel sources for a plain iptables installation?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-18 22:19:45 UTC

*** This bug has been marked as a duplicate of bug 120233 ***