Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141188 - net-firewall/iptables has unneccesary dependency on linux-sources
Summary: net-firewall/iptables has unneccesary dependency on linux-sources
Status: VERIFIED DUPLICATE of bug 120233
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-20 09:21 UTC by Steven Green
Modified: 2006-07-20 10:02 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 Steven Green 2006-07-20 09:21:41 UTC
This is referring to iptables-1.3.5-r1 but is also the same in other versions.

iptables should only need to use the kernel source if the extensions use flag is set... the ebuild looks like it tries to do this.

However it does "import linux-info" which then adds a dependency for linux-sources.  However the functionality of linux-info is only used if the extensions use flag is set.

This is annoying when gentoo is running on a virtual user mode linux where there is no need for the kernel sources (linux-headers is adequate) because the running kernel is supplied by the host machine.  I do not want to waste >200MB disk space that gentoo-sources uses up.

I tried removing the "inherit linux-info" from the iptables ebuild in my overlay and it does succesfully go ahead and build without needing the linux sources.  However I do not know how to make an import dependent on a use flag.

I thought I had seen this problem reported before, but I did several searches and can not find it.

emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.4.32 i686)
=================================================================
System uname: 2.4.32 i686 UML
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo-distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.bytemark.co.uk/gentoo"
USE="x86 apache2 apm berkdb bzip2 cgi cli crypt curl dba dlloader dri eds emboss esd gd gdbm gif gpm gstreamer gtk2 imlib isdnlog java jpeg libg++ libwww mailwrapper mhash mysql ncurses ogg pam pcre pdflib perl png postfix postgres pppd python qt3 qt4 readline reflection sasl session silvercity spell spl sqlite ssl symlink tcpd udev unicode urandom vhosts vorbis xml xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steven Green 2006-07-20 09:24:03 UTC
This is releated to bug #120233 but is not an exact dupe.  The problem is that iptables does not need the linux-info eclass unless the extensions use flag is set.  Whereas 120233 is asking the question whether linux-info really needs the dependency in linux-source
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-20 09:26:32 UTC

*** This bug has been marked as a duplicate of 120233 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-20 09:30:11 UTC
And no, we can't inherit eclasses based on use flags.
Comment 4 Steven Green 2006-07-20 09:48:33 UTC
Just for reference... a simple fix if anyone else is in the same situation is:

echo kernel_linux >> /etc/make.profile/use.mask

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-07-20 10:02:36 UTC
(In reply to comment #4)
> Just for reference... a simple fix if anyone else is in the same situation is:
> 
> echo kernel_linux >> /etc/make.profile/use.mask

Ugh, don't *ever* do this, that's completely wrong... Stick gentoo-sources and the needed virtuals to package.provided.