Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43736 - KDENetwork not building kwifimanager
Summary: KDENetwork not building kwifimanager
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-04 11:54 UTC by Nathan Toone
Modified: 2004-06-18 09:58 UTC (History)
1 user (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 Nathan Toone 2004-03-04 11:54:18 UTC
KWifiManager is not being built when I emerge KDENetwork (version 3.2)  It should be built, since it is now included in that package.

Reproducible: Always
Steps to Reproduce:
1.  Emerge KDENetwork
2.
3.

Actual Results:  
No kwifimanager application or kicker applet 

Expected Results:  
Should have kwifimanager application and kicker applet
Comment 1 Nathan Toone 2004-03-04 11:59:02 UTC
I found the issue.  wireless-tools needs to be emerged before kdenetwork.  It would probably be useful to add a USE flag (wifi) for kdenetwork that would place that dependency on wireless-tools  - that way you don't have to think about it too much!  :)

I would submit a patch, but I'm still new to Gentoo, and don't know about how ebuilds work very well....
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-13 03:32:40 UTC
there already have been two discussion about the use flag on -dev. There was no real descission, but i propose to use "wlan" as a global useflag (wifi would include bluetooth, etc.) Caleb can you add this please :)
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-03-15 07:10:21 UTC
Will do - let me know when you've got "wlan" in place.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-27 08:09:47 UTC
ok, a global use flag wasn't accepted since kdenetwork seems the only package at the moment, so we make it local.
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2004-04-05 07:28:51 UTC
i added wifi to use.local.desc, we only have to add the following deps to kdenetwork:

wifi? ( net-wirelesse/wireless-tools )
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-05-17 16:26:47 UTC
added, but commented out until other arches get wireless-tools support.

I also added:

use wifi || DO_NOT_COMPILE="$DO_NOT_COMPILE wifi"
Comment 7 Ulrich Plate (RETIRED) gentoo-dev 2004-05-21 15:58:18 UTC
I've tried to test this today, but I'm afraid it doesn't work for me. The USE flag portion of my ebuild now looks like this:

DEPEND="~kde-base/kdebase-${PV}
        slp? ( net-libs/openslp )
        samba? ( net-fs/samba )
        !net-im/kopete
        wifi? ( net-wireless/wireless-tools )"

and since that didn't do much good yet, I commented that other line 

# use wifi || DO_NOT_COMPILE="$DO_NOT_COMPILE wifi"

too, but even though the wifi USE flag is echoed early on during emerge, I'm still getting these messages during compilation:

checking if wifi should be compiled... no

then

checking if wireless tools >= 25 are installed... no
checking if wireless tools >= 27 are installed... yes

and then finally:

You're missing the wireless tools libraries, or the wireless tools
header files. Without these, KWiFiManager and the kwireless applet
will not be compiled. You are unable to monitor wireless LAN
connections without these.

Meanwhile, back in the jungle, this is what my environment looks like:

Wireless tools version 27-pre22 are installed

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6-mm4)
=================================================================
System uname: 2.6.6-mm4 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb canna cdr cjk crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype wifi x86 xface xfs xml2 xmms xv"

I've tried this first with the wireless.h (version 15) from /usr/include/linux (That's from linux-headers 2.4.22, I suppose) and then with a copied-over one from /usr/src/linux-2.6.6-mm4/include/linux/wireless.h (version 16)
Comment 8 Quantumstate 2004-06-16 06:51:41 UTC
Please explain how this is Resolved/Fixed?

A number of us are still having this very problem:
http://forums.gentoo.org/viewtopic.php?p=1247567#1247567
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2004-06-16 07:26:45 UTC
tell me what i can do to fix it and I will try and help - I don't use any wireless stuff, so all I can do is speculate.
Comment 10 Quantumstate 2004-06-17 10:24:42 UTC
Thank you Caleb.

A while back y'all had tenatively added wifi as a switch in USE=, and as of KDENetwork3.2.2 it appears to be fully folded in, as the wifi lines are no longer commented out.  There were problems with iwlib.h not linked (fixed) and wireless.h not making it into /usr/include (not fixed).  

As I understand it, wireless.h must be the one from wireless-tools, not the kernel build, so when I 
- emerge wireless-tools, and
- copy wireless.h from the wireless-tools work directory to /usr/include, and 
- ensure wifi is not commented out in the kdenetwork-3.2.2.ebuild, and
- set wifi as one of my switchen in make.conf, and
- re-emerge kdenetwork,

it recognizes that wireless-tools 27 is installed, but says it's not to compile it, for reasons which I do not understand.
http://forums.gentoo.org/viewtopic.php?p=1247567#1247567
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2004-06-17 10:36:59 UTC
If you go into kdenetwork's build directory and look inside of config.log, it will show the configure checks that happened and what may have caused it not to be built.
Comment 12 Quantumstate 2004-06-18 09:58:37 UTC
OK, I found that there's an update to K, so I upgraded to 3.2.3 .  I then moved wireless.h into /usr/include and now KDENetwork compiles KWifiManager!

But please be aware that 
- when KDENetwork is sizing the install, it thinks that BOTH wireless-tools versions 2.5 and 2.7 are installed, and
- wireless.h is still not copying into /usr/include .

Thanks C.  Very, very nice distro, BTW.

I have a suggestion, but have no idea where to put it in the forums, as these (high-handed) Mods make decisions which I do not understand.  As I have so much software installed now,and these Hitachi notebook diskdrives fail every six months, it would be nice if I could back up /etc, /home, and /var/cache/edb/world files, so in an emergency I could restore by building a base system and then using the contents of world to reconstruct my system automatically, without me having to take another week to do it by hand.  Even better would be an addon to emerge like: 
emerge saveworld /dl/mysystem (a text list of installed distfiles)
emerge restoreworld /dl/mysystem

FWIW