Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90220 - aircrack: no keyword for amd64 and a small patch needed.
Summary: aircrack: no keyword for amd64 and a small patch needed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-24 04:34 UTC by Bart Van Kerkhove
Modified: 2005-04-25 08:29 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 Bart Van Kerkhove 2005-04-24 04:34:59 UTC
Aircrack has no amd64 keyword, when forced it compiles without errors but it will not function correctly on amd64 without a patch.

Reproducible: Always
Steps to Reproduce:
1. emerge aircrack
2. portage refuses to install it because of missing keyword
3. update /etc/portage/packages.keywords to use the x86 version
4. emerge aircrack
5. compilation goes without error
6. when running the program it segfaults
7. download the aircrack source code
8. apply this patch:
--- aircrack.c.orig	2005-04-11 16:59:28.000000000 +0200
+++ aircrack.c	2005-04-11 17:19:14.000000000 +0200
@@ -121,7 +121,12 @@
     unsigned long cnt1;
     unsigned long cnt2;
     unsigned char *h80211;
-    struct pcap_pkthdr pkh;
+    struct {
+        struct {
+	    int tv_sec, tv_usec;
+        } ts;
+	int caplen, len;
+    } pkh;
     struct pcap_file_header pfh;
 
     /* open the file and check the pcap header */
9. aircrack now works fine, for more information visit: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285441
Actual Results:  
After installing the program from source and aplying the patch it works fine,
even on AMD64.

Expected Results:  
a fixed ebuild, including amd64 keyword and the patch.

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 23 2005, 14:33:12)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox strict
userpriv usersandbox"
GENTOO_MIRRORS="ftp://10.97.1.39 ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.97.1.39/gentoo-portage/"
USE="amd64 X acpi alsa berkdb bitmap-fonts crypt font-server fortran gif gpm gtk
ipv6 jp2 jpeg lzw lzw-tiff mp3 ncurses nls opengl oss pam perl png python
readline ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml2
xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2005-04-24 18:48:58 UTC
Added your patch to -r1.
Keywording depends on amd64 folks.
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-25 08:25:46 UTC
~amd64 keyword added. thanks
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-04-25 08:29:39 UTC
Thanks everyone.