Bug 171217 - net-wireless/aircrack-ng-0.7-r1 - ~x86-fbsd keyword request
Bug#: 171217 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: FreeBSD Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: bsd@gentoo.org Reported By: knabberknusperhaus@yahoo.de
Component: Ebuilds
URL: 
Summary: net-wireless/aircrack-ng-0.7-r1 - ~x86-fbsd keyword request
Keywords:  
Status Whiteboard: 
Opened: 2007-03-17 04:18 0000
Description:   Opened: 2007-03-17 04:18 0000
since aircrack-ng-0.7-r1 can now build only the userland tools, it is now
possible to build at least parts of the aircrack-ng suite on gentoo-freebsd.

aircrack-ng's wifi useflag has to be use.masked, as it won't build the
monitor/capture tools on fbsd.

the are two patches required in order to get through the test. the new ebuild
has been tested on gentoo-freebsd and amd64.


please name aircrack-ng-0.7-r2 and keyword ~x86-freebsd

Reproducible: Always

------- Comment #1 From ebfe 2007-03-17 04:19:43 0000 -------
Created an attachment (id=113546) [details]
patch for the ebuild

aircrack-ng will bail out with a syntax error otherwise

------- Comment #2 From ebfe 2007-03-17 04:20:30 0000 -------
Created an attachment (id=113547) [details]
patch for process-group-leader.c

patch to make setpgrp work in freebsd and x86

------- Comment #3 From Alon Bar-Lev (RETIRED) 2007-03-17 07:53:11 0000 -------
(In reply to comment #2)
> Created an attachment (id=113547) [edit] [details]
> patch for process-group-leader.c
> 
> patch to make setpgrp work in freebsd and x86
> 

Maybe setpgrp (0, 0) can be used for both?

------- Comment #4 From ebfe 2007-03-17 10:12:50 0000 -------
the linux definition of setpgrp is setpgrp(void) while FreeBSD defines it as
setpgrp(pid, pgrp). I've tested the patch and the test successfully runs on
both x86-fbsd and amd64.

------- Comment #5 From Alon Bar-Lev (RETIRED) 2007-03-17 10:16:19 0000 -------
(In reply to comment #4)
> the linux definition of setpgrp is setpgrp(void) while FreeBSD defines it as
> setpgrp(pid, pgrp). I've tested the patch and the test successfully runs on
> both x86-fbsd and amd64.

Sorry!
Wrong paste...
What about setpgid (0,0)?

------- Comment #6 From ebfe 2007-03-17 10:31:50 0000 -------
leads to the same behaviour and might in fact be considered better code :o)

0 for pgrp will use getpid() internally

------- Comment #7 From Alon Bar-Lev (RETIRED) 2007-03-17 10:40:27 0000 -------
Done.
bsd, can you please check it out at your side?
USE="-wifi" FEATURES="test"

------- Comment #8 From Peter Weller 2007-03-18 08:55:35 0000 -------
Keyworded ~x86-fbsd, package.use.mask'd wifi USE flag.