Bug 107794 - Testing request for new splitted linux-wlan-ng ebuilds
Bug#: 107794 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: betelgeuse@gentoo.org Reported By: betelgeuse@gentoo.org
Component: Unspecified
URL: 
Summary: Testing request for new splitted linux-wlan-ng ebuilds
Keywords:  
Status Whiteboard: 
Opened: 2005-10-01 07:56 0000
Description:   Opened: 2005-10-01 07:56 0000
I just committed new splitted linux-wlan-ng ebuilds to the tree so please test
them and add your keywords if working. The main linux-wlan-ng-0.2.2.ebuild is
package.masked at the moment but I will unmask it soon. The new ebuilds are:
net-wireless/linux-wlan-ng-utils
net-wireless/linux-wlan-ng-firmware
net-wireless/linux-wlan-ng-modules

------- Comment #1 From Martin Nowack 2005-10-02 02:11:55 0000 -------
Created an attachment (id=69692) [details]
linux-wlan-ng-firmware-0.2.2.ebuild.patch

Hi,
the splitted ebuilds work great for me (x86 - prism2_usb).

The patch includes (what I've found)
* just a typo in the post_inst
* and var db location

------- Comment #2 From Petteri Räty 2005-10-02 02:16:22 0000 -------
Well I thought about hard coding the path to the ebuild but it is not
quarantied
to be that way in the future. Maybe some day we will have one variable that
will
give the location of the ebuild to run configure on. I will fix the typo.

------- Comment #3 From Martin Nowack 2005-10-02 03:16:19 0000 -------
Ok.  
  
An other question, what is with the /etc/init.d/wlan script - is it obsolete?  
It isn't installed by any of these packages. 
 
An other question, the /etc/wlan/shared.prism2 file, where is the FIRMWARE_DIR 
variable set, possible this should be set to the new location /lib/firmware 

------- Comment #4 From Petteri Räty 2005-10-02 04:06:50 0000 -------
(In reply to comment #3)
> Ok.  
>   
> An other question, what is with the /etc/init.d/wlan script - is it obsolete?  
> It isn't installed by any of these packages. 

betelgeuse@pena ~ $ qfile /etc/init.d/wlan
net-wireless/linux-wlan-ng (/etc/init.d/wlan)

So it is installed by the main package.

>  
> An other question, the /etc/wlan/shared.prism2 file, where is the FIRMWARE_DIR 
> variable set, possible this should be set to the new location /lib/firmware 

/etc/wlan/shared:FIRMWARE_DIR=/lib/firmware
This file is then again sourced by the init script:
/etc/init.d/wlan:       if [ -f /etc/wlan/shared ]
/etc/init.d/wlan:               source /etc/wlan/shared

------- Comment #5 From Petteri Räty 2005-10-02 04:10:55 0000 -------
The plan was to obsolete the init script by writing a net module for
linux-wlan-ng but I decided to commit the split ebuilds at this point because
people needed the version bump for wireless to get working again. The net module
is still something I will be doing but there is not anything ready yet.

------- Comment #6 From Simon Stelling (RETIRED) 2005-10-04 14:27:12 0000 -------
we're currently testing a new alias system, sorry for the bugspam

------- Comment #7 From Neil Bothwick 2005-10-13 05:16:24 0000 -------
Works here on ~ppc with a D-Link DWL-122 
 
Portage 2.0.53_rc5 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r4 ppc) 
================================================================= 
System uname: 2.6.13-gentoo-r4 ppc 7447A, altivec supported 
Gentoo Base System version 1.12.0_pre9 
ccache version 2.4 [enabled] 
dev-lang/python:     2.4.2 
sys-apps/sandbox:    1.2.13 
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-r1 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="ppc ~ppc" 
AUTOCLEAN="yes" 
CBUILD="powerpc-unknown-linux-gnu" 
CFLAGS="-O2 -mcpu=G4 -fno-strict-aliasing -fomit-frame-pointer -pipe" 
CHOST="powerpc-unknown-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O2 -mcpu=G4 -fno-strict-aliasing -fomit-frame-pointer -pipe" 
DISTDIR="/mnt/portage/distfiles" 
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://gentoo.digimed.co.uk/ 
http://pandemonium.tiscali.de/pub/gentoo/ http://mir.zyrianes.net/gentoo/ 
ftp://mir.zyrianes.net/gentoo/ ftp://mirror.nutsmaas.nl/gentoo" 
LINGUAS="en_GB" 
PKGDIR="/mnt/portage/packages/krikkit" 
PORTAGE_TMPDIR="/mnt/scratch" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/mnt/portage/local" 
SYNC="rsync://desiato/gentoo" 
USE="ppc X alsa altivec arts berkdb bitmap-fonts bonobo cddb cdr crypt cups 
curl dv dvd emboss encode exif fam flac foomaticdb gdbm gif gimpprint gphoto2 
gpm gstreamer gtk gtk2 gtkhtml guile hal ieee1394 imagemagick imlib java jpeg 
kde kdeenablefinal libwww mad motif mp3 mpeg mysql ncurses offensive ogg 
oggvorbis opengl pdflib perl png ppds python qt readline sdl slang speex spell 
ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb 
vhosts vorbis wifi xml xml2 xmms xv zlib linguas_en_GB userland_GNU 
kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS 
 
 

------- Comment #8 From Joe Jezak 2005-10-15 16:11:26 0000 -------
Marked ~ppc.

------- Comment #9 From Petteri Räty 2005-10-29 08:50:42 0000 -------
Adding ppc back to CC because net-wireless/linux-wlan-ng is not keyworded ~ppc.

------- Comment #10 From Joe Jezak 2005-11-19 16:13:15 0000 -------
Sorry about that, added ~ppc.

------- Comment #11 From Petteri Räty 2005-12-02 06:12:05 0000 -------
Please try to get this marked because the earlier versions do not compile with
2.6.14 kernel sources. I understand that it is hard if no-one has the hardware,
but I have been contacted by users wanting to use linux-wlan-ng on amd64. Just
too bad that they haven't reported about their progress in this bug.

------- Comment #12 From Simon Stelling (RETIRED) 2005-12-03 03:54:03 0000 -------
uhm, yes, that's rather bad. i did minimal testing and added ~amd64. better a
maybe-broken ebuild than a for-sure-broken one ;)

------- Comment #13 From Petteri Räty 2005-12-19 02:56:09 0000 -------
(In reply to comment #12)
> uhm, yes, that's rather bad. i did minimal testing and added ~amd64. better a
> maybe-broken ebuild than a for-sure-broken one ;)

http://packages.gentoo.org/search/?sstring=linux-wlan-ng
no ~amd64 keywords here

------- Comment #14 From Simon Stelling (RETIRED) 2005-12-29 10:52:06 0000 -------
argh, don't know why i missed that one... finally marked ~amd64

------- Comment #15 From Petteri Räty 2006-02-12 11:50:49 0000 -------
hppa: Could you provide some input on how to proceed here? I would like to
clean old versions away at some point. 

------- Comment #16 From frank 2006-03-21 05:34:07 0000 -------
net-wireless/linux-wlan-ng-modules-0.2.3 fails to compile with vanilla 2.6.16
kernel:

make[1]: Entering directory `/usr/src/linux-2.6.16'
  CC [M] 
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.o
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:137:
error: unknown field `attach' specified in initializer
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:137:
warning: excess elements in struct initializer
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:137:
warning: (near initialization for `prism2_cs_driver')
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:138:
error: unknown field `detach' specified in initializer
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:138:
warning: excess elements in struct initializer
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:138:
warning: (near initialization for `prism2_cs_driver')
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:142:
error: unknown field `event' specified in initializer
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:142:
warning: missing braces around initializer
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:142:
warning: (near initialization for `prism2_cs_driver.drv')
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:142:
warning: initialization from incompatible pointer type
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:
In function `prism2sta_attach':
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:237:
warning: implicit declaration of function `pcmcia_register_client'
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:
In function `prism2sta_detach':
/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.c:328:
warning: implicit declaration of function `pcmcia_deregister_client'
make[2]: ***
[/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver/prism2_cs.o]
Error 1
make[1]: ***
[_module_/var/tmp/portage/linux-wlan-ng-modules-0.2.3/work/linux-wlan-ng-0.2.3/src/prism2/driver]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16'
make: *** [default] Error 2

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-ck5
i686)
=================================================================
System uname: 2.6.15-ck5 i686 Intel(R) Pentium(R) III Mobile CPU      1133MHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium3m -march=pentium3m -pipe -O2 -fomit-frame-pointer
-fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=pentium3m -march=pentium3m -pipe -O2 -fomit-frame-pointer
-fno-ident -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" http://gentoo.mirror.sdv.fr
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac accessibility acpi alsa apache2 arts asf audiofile avi
bash-completion berkdb bitmap-fonts bzip2 cdb cdparanoia cdr crypt css cups
curl dga directfb divx4linux dri dts dv dvd dvdr dvdread eds emboss encode exif
expat extrafilters fam fame fbcon ffmpeg flac foomaticdb fortran fping gd gdbm
gif glut gmp gphoto2 gpm gstreamer gtk gtk2 hal icq idn ieee1394 imagemagick
imlib jabber java javascript jpeg kde kdeenablefinal lcms libg++ libwww lirc
lua mad matroska mhash mikmod mmap mmx mng motif mp3 mpeg mplayer msn musepack
musicbrainz mysql ncurses network nls nptl nsplugin nvidia ogg oggvorbis openal
opengl oss pam pcmcia pcre pdf pdflib perl php png python qt quicktime readline
recode samba sdl sndfile snmp speex spell sse ssl subtitles svga symlink tcpd
theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb
v4l v4l2 vcd vorbis win32codecs xanim xine xinerama xml2 xmms xscreensaver xv
xvid xvmc yahoo zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LINGUAS

let me know if i should attach kernel's config file...

------- Comment #17 From Petteri Räty 2006-03-25 00:16:34 0000 -------
(In reply to comment #16)
> net-wireless/linux-wlan-ng-modules-0.2.3 fails to compile with vanilla 2.6.16
> kernel:
> 

This should be fixed now. In the future please report these problems in
separate bugs. Sync in a few hours and try emerging linux-wlan-ng-modules-0.2.3
again.

------- Comment #18 From frank 2006-03-25 10:44:13 0000 -------
sorry for posting in the wrong bug...
i've synced few minutes ago, but it still won't compile

------- Comment #19 From frank 2006-03-27 02:22:30 0000 -------
update: it compiles fine with USE="-pcmcia" but breaks otherwise.

------- Comment #20 From Klaus Zimmermann 2006-03-29 19:06:38 0000 -------
Thanks for this ebuild! I've been waiting quite some time ;)
It is working pretty on my amd64.
A couple of minor issues remain:
- shared does not get moved to /etc/wlan, error: /var/tmp/.../etc/wlan is not a
directory (had to move it manually to make initscript work)

- Inside shared (line 73) there is a test -x `cat ...`. If that cat yields
nothing the test fails with an error (too many arguments). The cat should be
quoted like "`cat ...`". However this is probably upstream?

- emerge --unmerge linux-wlan-ng-modules does not remove the modules, leading
to a collision-protect conflict on next emerge.

Thanks again!

------- Comment #21 From Petteri Räty 2006-04-02 05:01:18 0000 -------
(In reply to comment #19)
> update: it compiles fine with USE="-pcmcia" but breaks otherwise.
> 

Removed support for pcmcia in 0.2.3-r1 as pcmcia users really should use other
drivers any way.

(In reply to comment #20)
> Thanks for this ebuild! I've been waiting quite some time ;)
> It is working pretty on my amd64.
> A couple of minor issues remain:
> - shared does not get moved to /etc/wlan, error: /var/tmp/.../etc/wlan is not a
> directory (had to move it manually to make initscript work)

It works fine here with shared in /etc/conf.d/  but this probably should be
improved.

> 
> - Inside shared (line 73) there is a test -x `cat ...`. If that cat yields
> nothing the test fails with an error (too many arguments). The cat should be
> quoted like "`cat ...`". However this is probably upstream?

This is upstream.

> 
> - emerge --unmerge linux-wlan-ng-modules does not remove the modules, leading
> to a collision-protect conflict on next emerge.

I added blocks for this.

> 
> Thanks again!
> 

------- Comment #22 From Néstor Amigo Cairo 2006-04-04 13:48:10 0000 -------
Hello.
I have had some trouble with linux-wlan-ng 0.2.3 and kernel 2.6.15...
The kernel hung up giving an error message.
I have sent an email to the developers and I got the following answer:

===
"> I also use a vanilla linux-wlan-ng 0.2.3 on this kernel.

The bug is being triggered in add_timer().

Try the development head; the timer code has been rewritten a little 
bit to be a bit safer."
===

I have tried the svn code and it worked fine. Is it possible to apply a patch
from svn version to 0.2.3-r1 to correct add_timer function behaviour?

svn co svn://svn.shaftnet.org/linux-wlan-ng/trunk linux-wlan-ng

------- Comment #23 From Néstor Amigo Cairo 2006-04-04 14:26:40 0000 -------
Sorry. I must say that the SVN version is not working properly because of some
"undefined flags"... The last time it worked for me, maybe because I forgot to
clean the old version form /lib/modules.

Anyways, the trouble with add_timer() function seems to be solved in SVN code,
so I think it would be very helpful if someone makes a fix for that in portage
tree, before 0.2.4 happens.
Thanks!

(In reply to comment #22)

------- Comment #24 From Petteri Räty 2006-04-09 00:16:14 0000 -------
(In reply to comment #22)
> Hello.
> I have had some trouble with linux-wlan-ng 0.2.3 and kernel 2.6.15...
> The kernel hung up giving an error message.
> I have sent an email to the developers and I got the following answer:
> 

Again, open new bugs for your issues and do not post to old bugs unless they
describe the same issue you are having. If you think your issue prevents
keywording, which this bug is about, then you make your bug block this one.
Thanks.

> 
> I have tried the svn code and it worked fine. Is it possible to apply a patch
> from svn version to 0.2.3-r1 to correct add_timer function behaviour?
> 
> svn co svn://svn.shaftnet.org/linux-wlan-ng/trunk linux-wlan-ng
> 

It is possible to apply a patch. It makes my life easier if you use svn log and
svn diff to find the patch for me and open a new bug with it attached. I am in
a military hospital atm so my time for Gentoo work is limited. 

------- Comment #25 From Guy Martin 2006-11-24 06:36:38 0000 -------
HPPA KW has been dropped and no HW to test those ebuild with.

------- Comment #26 From Petteri Räty 2006-12-01 11:23:18 0000 -------
(In reply to comment #25)
> HPPA KW has been dropped and no HW to test those ebuild with.
> 

Marking as fixed.