Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253803 - Rekeyword request for >=net-wireless/aircrack-ng-1.1 and >=net-wireless/iw-0.9.15
Summary: Rekeyword request for >=net-wireless/aircrack-ng-1.1 and >=net-wireless/iw-0....
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Highest enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2009-01-05 05:31 UTC by Robert Buchholz (RETIRED)
Modified: 2013-10-04 23:11 UTC (History)
4 users (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 Robert Buchholz (RETIRED) gentoo-dev 2009-01-05 05:31:04 UTC
Hi arches,

had to drop keywords due to new dependency. Please rekeyword, kthx:
=net-wireless/aircrack-ng-1.0_rc1
=net-wireless/iw-0_p20080605
Comment 1 Alexis Ballier gentoo-dev 2009-01-19 23:50:06 UTC
(In reply to comment #0)
> Hi arches,
> 
> had to drop keywords due to new dependency. Please rekeyword, kthx:
> =net-wireless/aircrack-ng-1.0_rc1
> =net-wireless/iw-0_p20080605

any chance to drop/make optional the libnl dep or iw dep in aircrack-ng ? because libnl appears to require a linux kernel which of course we don't have on bsd :)
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2009-01-20 15:24:32 UTC
True... the iw binary is only used in airmon-ng, and that also has a fallback on managing via /sys/class/ieee80211/ -- does that work on BSD?

If so, I'd simply add a use kernel_linux? () around iw. Otherwise, we can just not install the airmon-ng script.
Comment 3 Alexis Ballier gentoo-dev 2009-01-20 19:30:40 UTC
(In reply to comment #2)
> True... the iw binary is only used in airmon-ng, and that also has a fallback
> on managing via /sys/class/ieee80211/ -- does that work on BSD?

/sys is linux only too :(
we used to mask the wifi useflag for older aircrack-ng versions though, which apparently did control the airmon-ng installation

> If so, I'd simply add a use kernel_linux? () around iw. Otherwise, we can just
> not install the airmon-ng script.

yep or add back the (misleading?) wifi useflag


anyway, this seems to work fine with fbsd ports patches:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/

the patch-src_airserv-ng.c and patch-src_osdep_network.c patches are needed to build on fbsd (7.1 here) otherwise they try to include some linux kernel headers; I didn't try patch-src_osdep_freebsd.c but this may be needed for fbsd < 7 support.

Otherwise, it seems to work fine with the two patches applied.
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2009-03-12 18:02:42 UTC
Alexis, I pulled in the patches for FreeBSD, made iw a linux-only dep and removed the airmon application as well. Please test the with the latest version.

other arches, please retest and rekeyword as well. Thanks!
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2009-03-15 20:39:04 UTC
~arm done
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2009-03-19 17:14:58 UTC
Marked ~ppc.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-07 18:37:24 UTC
BSD: ping
Comment 8 Mike Auty (RETIRED) gentoo-dev 2010-04-02 13:24:53 UTC
Haven't touched iw in over a year, removing myself as maintainer.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-29 21:18:09 UTC
BSD team: Older versions will be masked / removed due to bug #311797.
Comment 10 Rick Farina (Zero_Chaos) gentoo-dev 2012-07-01 13:38:15 UTC
bump: This looks like it is resolved to me, anyone still need this open?

Closing in 7 days.
Comment 11 Naohiro Aota gentoo-dev 2012-07-02 11:42:17 UTC
It doesn't build on FreeBSD-9.0 yet.

i686-gentoo-freebsd9.0-gcc -O2 -march=native -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -I/usr/local/include -DHAVE_SQLITE -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -I/usr/local/include -DHAVE_SQLITE -Iinclude   -c -o osdep/radiotap/radiotap-parser.o osdep/radiotap/radiotap-parser.c
In file included from osdep/radiotap/ieee80211_radiotap.h:41:0,
                 from osdep/radiotap/radiotap-parser.h:32,
                 from airdecloak-ng.c:44:
/usr/include/sys/types.h:55:24: error: duplicate 'unsigned'
/usr/include/sys/types.h:55:24: error: duplicate 'short'
/usr/include/sys/types.h:56:22: error: duplicate 'unsigned'
/usr/include/sys/types.h:56:22: error: two or more data types in declaration specifiers
gmake[1]: *** [airdecloak-ng.o] Error 1

These line in /usr/include/sys/types.h collide with ...

> typedef unsigned short  ushort;         /* Sys V compatibility */
> typedef unsigned int    uint;           /* Sys V compatibility */

this define's in aircrack-ng-1.1/src/pcap.h

> #define ushort unsigned short
> #define uint   unsigned int
Comment 12 Naohiro Aota gentoo-dev 2012-07-14 20:33:30 UTC
(In reply to comment #11)
> It doesn't build on FreeBSD-9.0 yet.
> 
> i686-gentoo-freebsd9.0-gcc -O2 -march=native -pipe -fomit-frame-pointer
> -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -I/usr/local/include -DHAVE_SQLITE
> -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -I/usr/local/include -DHAVE_SQLITE
> -Iinclude   -c -o osdep/radiotap/radiotap-parser.o
> osdep/radiotap/radiotap-parser.c
> In file included from osdep/radiotap/ieee80211_radiotap.h:41:0,
>                  from osdep/radiotap/radiotap-parser.h:32,
>                  from airdecloak-ng.c:44:
> /usr/include/sys/types.h:55:24: error: duplicate 'unsigned'
> /usr/include/sys/types.h:55:24: error: duplicate 'short'
> /usr/include/sys/types.h:56:22: error: duplicate 'unsigned'
> /usr/include/sys/types.h:56:22: error: two or more data types in declaration
> specifiers
> gmake[1]: *** [airdecloak-ng.o] Error 1

Notice that osdep/radiotap/ieee80211_radiotap.h is patched to include sys/types.h by us. Is this patch still necessary? I could build aircrack-ng without this patch.
Comment 13 Naohiro Aota gentoo-dev 2012-10-09 12:22:46 UTC
(In reply to comment #12)
> Notice that osdep/radiotap/ieee80211_radiotap.h is patched to include
> sys/types.h by us. Is this patch still necessary? I could build aircrack-ng
> without this patch.

ping. I was able to build net-wireless/aircrck-ng-1.1 both on Linux and FreeBSD.
Comment 14 Rick Farina (Zero_Chaos) gentoo-dev 2012-10-09 17:42:25 UTC
I believe this falls to the arch teams now, I'd be really happy to see the keywords added, stable if possible (not really sure the rules on that as I don't really do any bsd stuff).

Thanks!
Comment 15 Naohiro Aota gentoo-dev 2012-10-10 13:03:48 UTC
Sorry, I guess my words were a bit confusing. Status is

- Unmodified ebuild cannot get build on FreeBSD due to error on comment 11
- Our patch (files/aircrack-ng-1.0_rc4-fix_build.patch) cause this error because it include unnecessary sys/types.h
- I can build it without the patch both on FreeBSD and Linux

So I'd like to ask if the patch is still necessary. If not, please drop it. Then I can add ~x86-fbsd.
Thanks.
Comment 16 Sergey Popov gentoo-dev 2012-10-10 13:13:01 UTC
(In reply to comment #15)
> Sorry, I guess my words were a bit confusing. Status is
> 
> - Unmodified ebuild cannot get build on FreeBSD due to error on comment 11
> - Our patch (files/aircrack-ng-1.0_rc4-fix_build.patch) cause this error
> because it include unnecessary sys/types.h
> - I can build it without the patch both on FreeBSD and Linux
> 
> So I'd like to ask if the patch is still necessary. If not, please drop it.
> Then I can add ~x86-fbsd.
> Thanks.

Build fine without this patch on my amd64 box, but adding ppc team to CC, not sure, maybe bug #280573 is ppc-specific problem...
Comment 17 Anthony Basile gentoo-dev 2012-10-21 00:19:31 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Sorry, I guess my words were a bit confusing. Status is
> > 
> > - Unmodified ebuild cannot get build on FreeBSD due to error on comment 11
> > - Our patch (files/aircrack-ng-1.0_rc4-fix_build.patch) cause this error
> > because it include unnecessary sys/types.h
> > - I can build it without the patch both on FreeBSD and Linux
> > 
> > So I'd like to ask if the patch is still necessary. If not, please drop it.
> > Then I can add ~x86-fbsd.
> > Thanks.
> 
> Build fine without this patch on my amd64 box, but adding ppc team to CC,
> not sure, maybe bug #280573 is ppc-specific problem...

1) Bug #280573 is about the efika, which is an arm device.

2) I tested =net-wireless/aircrack-ng-1.1 and =net-wireless/iw-3.7 on ppc and they're fine.  They are already keyworded, so nothing to do.  I'm removing ppc.
Comment 18 Anthony Basile gentoo-dev 2012-10-21 00:21:46 UTC
(In reply to comment #17)

> 1) Bug #280573 is about the efika, which is an arm device.

Sorry it is ppc.  Apparently there are different models.
Comment 19 Naohiro Aota gentoo-dev 2012-10-25 13:37:55 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > (In reply to comment #15)
> > > Sorry, I guess my words were a bit confusing. Status is
> > > 
> > > - Unmodified ebuild cannot get build on FreeBSD due to error on comment 11
> > > - Our patch (files/aircrack-ng-1.0_rc4-fix_build.patch) cause this error
> > > because it include unnecessary sys/types.h
> > > - I can build it without the patch both on FreeBSD and Linux
> > > 
> > > So I'd like to ask if the patch is still necessary. If not, please drop it.
> > > Then I can add ~x86-fbsd.
> > > Thanks.
> > 
> > Build fine without this patch on my amd64 box, but adding ppc team to CC,
> > not sure, maybe bug #280573 is ppc-specific problem...
> 
> 1) Bug #280573 is about the efika, which is an arm device.
> 
> 2) I tested =net-wireless/aircrack-ng-1.1 and =net-wireless/iw-3.7 on ppc
> and they're fine.  They are already keyworded, so nothing to do.  I'm
> removing ppc.

What we want to know is that they works without files/aircrack-ng-1.0_rc4-fix_build.patch or not...
Comment 20 Agostino Sarubbo gentoo-dev 2012-12-22 18:19:54 UTC
(In reply to comment #19)
> What we want to know is that they works without
> files/aircrack-ng-1.0_rc4-fix_build.patch or not...

working here on ppc as is in the tree
Comment 21 Rick Farina (Zero_Chaos) gentoo-dev 2013-09-03 17:10:46 UTC
please test 1.2_rc1 in the tree and I'll add keywords to it.
Comment 22 Rick Farina (Zero_Chaos) gentoo-dev 2013-10-04 23:11:37 UTC
if anyone wants to test 1.2 I'll be happy to add keywords to it