Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142763 - net-firewall/iptables-1.3.5-r4 doesn't find all extensions in kernel 2.6.17
Summary: net-firewall/iptables-1.3.5-r4 doesn't find all extensions in kernel 2.6.17
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 03:07 UTC by Matt Whitlock
Modified: 2006-08-05 16:54 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 Matt Whitlock 2006-08-04 03:07:03 UTC
Kernel 2.6.17 changed the source locations of several netfilter extension modules, and as a result, the iptables build process fails to detect their presence and build the shared libraries to use them.

Here's a script I wrote to fix iptables's extension tests for the new kernel:

#!/bin/sh
for each in .*-test ; do
  # if the test fails right now
  if ! [[ $(./${each}) ]] ; then
    # create a new test with a fixed path
    sed 's/\/ipv4\/netfilter\/ipt_/\/netfilter\/xt_/' ${each} > ${each}~
    # if the new test passes
    if [[ $(/bin/sh ./${each}~) ]] ; then
      # replace the old test with the new test
      mv ${each}~ ${each}
    else
      # delete the new test
      rm ${each}~
    fi
  fi
done

When run in the /var/tmp/portage/iptables-1.3.5-r4/work/iptables-1.3.5/extensions directory, that script will fix up the tests to detect the kernel extensions in their new locations.  Note, I didn't mess with the IPv6 tests.

Of course, it should only be run if the kernel version is 2.6.17 or greater!

It would be swell if someone could get this integrated into the iptables-1.3.5 ebuild, until a fix is made upstream.
Comment 1 SpanKY gentoo-dev 2006-08-05 16:35:38 UTC
wouldnt the correct thing be to check both files ?
Comment 2 SpanKY gentoo-dev 2006-08-05 16:54:26 UTC
fixed in cvs