Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180123 - app-forensics/air-1.2.8 works on AMD64
Summary: app-forensics/air-1.2.8 works on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 15:48 UTC by Bill Dandreta
Modified: 2009-04-08 17:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated ebuild (air-1.2.8.ebuild,1.44 KB, text/plain)
2009-03-03 18:12 UTC, RB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Dandreta 2007-05-28 15:48:37 UTC
AIR () works on AMD64.

Complains about netcat and cryptcat helper applications being missing.


Reproducible: Always
Comment 1 Bill Dandreta 2007-05-28 15:51:33 UTC
(In reply to comment #0)
> AIR () works on AMD64.
> 
> Complains about netcat and cryptcat helper applications being missing.
> 
> 
> Reproducible: Always
> 

app-forensics/air-1.2.8

http://air-imager.sourceforge.net/

Sorry for the missing info, this is my 1st bug report.

Bill
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-28 23:35:52 UTC
bugzilla@ = problems with bugzilla ONLY.
Please use the 'Gentoo Linux' product next time.
Comment 3 RB 2008-09-15 19:06:02 UTC
The application installs correctly, but does not run, even as root.  I didn't have time to go trace someone else's Perl/Tk script to see where the disconnect was; any tips on running?
Comment 4 mondrillo 2009-01-04 14:41:59 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > AIR () works on AMD64.
> > 
> > Complains about netcat and cryptcat helper applications being missing.
> > 
> > 
> > Reproducible: Always
> > 
> 
> app-forensics/air-1.2.8
> 
> http://air-imager.sourceforge.net/
> 
> Sorry for the missing info, this is my 1st bug report.
> 
> Bill
> 
Hello, I'have provide log of the error

When try to run air after compile succesfully, is halt and put this error

...

no event type or button # or keysym at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/Tk/Widget.pm line 1105.
 at /usr/bin/air line 1170

it's happend on version 1.2.7 too
Any ideas

======================================== WIDGET.PM

sub MouseWheelBind
{
 my($mw,$class) = @_;

 # The MouseWheel will typically only fire on Windows. However, one
 # could use the "event generate" command to produce MouseWheel
 # events on other platforms.

 $mw->Tk::bind($class, '<MouseWheel>',
               [ sub { $_[0]->yview('scroll',-($_[1]/120)*3,'units') }, Tk::Ev("D")]);

 if ($Tk::platform eq 'unix')
  {
   # Support for mousewheels on Linux/Unix commonly comes through mapping
   # the wheel to the extended buttons.  If you have a mousewheel, find
   # Linux configuration info at:
   #   http://www.inria.fr/koala/colas/mouse-wheel-scroll/
   $mw->Tk::bind($class, '<4>',
THIS IS 1105 ============>  sub { $_[0]->yview('scroll', -3, 'units')


======================== air on 1170
my $output_win = $lw_frame->Scrolled(
        "Text",
        -scrollbars => 'e',
        -width => 80,
        -height => 10,
        )->pack(
        -side => 'top',
);

============================= MY EMERGE --INFO
emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-glibc2.2.5
Timestamp of tree: Sat, 03 Jan 2009 22:05:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo ftp://mirrors.blueyonder.co.uk/sites/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://www.mirror.ac.uk/mirror/www.ibiblio.org/"
LANG="es_ES@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa amd64 amr apache2 arts automount autostart avahi avi berkdb bidi bluetooth bzip2 caps cdda cdio cdr cli cpdflib cracklib crypt ctype cups curl dba dbus dga dlloader dri dts dvb dvd dvdread encode ffmpeg firefox fortran freetype gd gdbm gdexternal glade glitz gnome gnutls gpm gstreamer gtk gtk2 hal httpd iconv ipv6 irmc isdnlog jobserver jpeg kde kdeprefix lame live mad matroska midi mikmod mjpeg mmx mmx2 mp3 mp4 mpeg mplayer mudflap multilib musepack mysql nautilus ncurses network new-login nls nptl nptlonly nvidia obex ogg oggvorbis opengl openmp pam pcre pdf pdo-external pear perl photo-viewer php php5 png pppd python quicktime readline reflection samba scanner sdl session simplexml soap soup spell spl sqlite sse sse2 ssl stream svg symlink sysfs syslog tcpd theora threads tiff tk transcode truetype unicode usb useflag utf8 v4l2 vcd vlc vlm vorbis wxwindows xinerama xml xorg xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

thank's and regards


Comment 5 Patrick Lauer gentoo-dev 2009-03-01 01:39:52 UTC
Right, that almost works.
But since it has a hardcoded list of perl versions which does not include 5.8.8 (nor 5.10) it fails. 
If anyone manages to patch that up I can commit the fixes, but I fear if I look at that build system I'll get very sad, so I leave it to more talented people ;)
Comment 6 RB 2009-03-03 18:12:05 UTC
Created attachment 183785 [details]
updated ebuild

What an awful customized install process.  It's a single shell script with the actual components uuencoded and embedded within.

The ebuild itself is broken because the perl-tk version portage sees (804.028-r1) differs from what Perl itself reports (804.028).  A simple (but fragile) fix is to change line 30 to:

export PERLTK_VER=${PERLTK_VER:17:7}

The installer & app themselves are... "interesting".  Lots of hard-coded paths, assumptions of running as root (modprobe from a Perl script?), etc.  I think it's a good start but could use a lot of work, for which I do not currently have the time; definitely not going into my forensic toolchest right now.

The app also complains at runtime if any of the optional support binaries (cryptcat, dcfldd, etc.) are missing.  Might as well just add an RDEPEND for them and get over it, since most users will probably have these or use for them anyway.

I don't see the mentioned hardcoded Perl dependencies (5.8.8/5.10) in 1.2.8, and it seems to run fine now with perl-tk-804.028-r1 on amd64.  I've attached a modified 1.2.8 ebuild to reflect the 3 changes: KEYWORDS, PERLTK_VER, and RDEPEND.  YMMV.
Comment 7 Patrick Lauer gentoo-dev 2009-04-08 17:23:10 UTC
+*air-1.2.8-r1 (08 Apr 2009)
+
+  08 Apr 2009; Patrick Lauer <patrick@gentoo.org> +air-1.2.8-r1.ebuild:
+  Small fixups for 1.2.8. Thanks to RB for the help, fixes #180123. ~amd64
+  added.