Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24563 - Wireshark now has lua dependency

Attached to Project: Arch Linux
Opened by Alex (bsdard) - Saturday, 04 June 2011, 00:37 GMT
Last edited by Guillaume ALAUX (galaux) - Monday, 06 June 2011, 08:20 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Guillaume ALAUX (galaux)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Wireshark now has a new lua dependency, while it does not explicitly require it.
It will install without lua and lua is not the dependency list. However it won't start and will return an error.

Additional info:
* package version(s)
1.4.7
* config and/or log files etc.

Steps to reproduce:
1. make sure lua is not installed.
2. install both wireshark-cli and wireshark-gtk (note lua is not installed as dependency).
3. try running wireshark. The error message reports that lualib is not found.
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Monday, 06 June 2011, 08:20 GMT
Reason for closing:  Implemented
Additional comments about closing:  Added lua support to package wireshark
Comment by Uli (Army) - Saturday, 04 June 2011, 06:57 GMT
> However it won't start and will return an error.
It might be good to share this error message, in case others don't get it
Comment by Ionut Biru (wonder) - Saturday, 04 June 2011, 07:53 GMT
i cannot replicate it. Maybe you have some lua scripts enabled in your profile?
Comment by Alex (bsdard) - Saturday, 04 June 2011, 18:12 GMT
Correction - the bug is only on x86-64 platform. I've reinstalled i686 today and see that the Wireshark is still compiled without LUA.
Sorry, but I did not document the error message and could not replicate the problem on i686 version. It was saying that the system cannot start Wireshark because lualib is not found.

I do indeed have luaplugins in my ~/.wireshark/plugins, but if the Lua is not compiled in the wireshark, they are safely ignored.
If it WAS compiled however, I believe there is nothing that can be done in configuration to make wireshark start without Lua. Normally lua is enabled/disabled via init.lua script in the wireshark directory structure.

On my i686 version of wireshark:
Compiled (32-bit) with GTK+ 2.24.4, with GLib 2.28.7, with libpcap 1.1.1,
without libz, with POSIX capabilities (Linux), without libpcre, without SMI,
without c-ares, without ADNS, without Lua, without Python, with GnuTLS 2.12.5, <=== here.
with Gcrypt 1.4.6, with MIT Kerberos, without GeoIP, without PortAudio, without
AirPcap.

In x86-64 it reads:
..., with Lua 5.1, ...
Comment by Guillaume ALAUX (galaux) - Sunday, 05 June 2011, 11:39 GMT
Removed package lua and tested with package from [extra] on a x86_64: no crash.

> On my i686 version of wireshark:
> [..] without Lua [..]
> In x86-64 it reads:
> ..., with Lua 5.1, ...
Options are the same for both architectures. Didn't you recompile the x86_64 package with the "--with-lua" flag? Because I'm having the error message you talk about ("lualib not found") with a package using "--with-lua" but lacking "lua" as dependency.

Anyway: this is not a bug but as a "feature request" we can add the lua support ("--with-lua" AND "lua" as dependency). This would mean pulling lua which is not that big. I have also checked into the "./configure": this flag is not described as experimental (I'm saying this because we already had an issue with the python flag beeing experimental. See bug #20357).
Comment by Alex (bsdard) - Sunday, 05 June 2011, 12:01 GMT
That is bizarre. I do not recall myself rebuilding the package.

Anyway the Lua support looks nicely done in wireshark. It adds some short-cuts/cheats that allow to hook to other dissector's fields, which does not seem to be available in C API (At least I could not recreate in C the dissector that I have easily done in Lua).
Comment by Guillaume ALAUX (galaux) - Sunday, 05 June 2011, 16:54 GMT
OK I have tested the "--with-lua" flag which seems stable.
I have just uploaded wireshark 1.4.7-2 with this flag enabled. Should be available in mirrors in max 2 hours.
Alex: as I don't use the lua script stuff, could you please test this new package with lua scripts and post feedback here (whether positive or negative)? Thanks
Comment by Alex (bsdard) - Sunday, 05 June 2011, 21:26 GMT
I've tested wireshark with my Lua dissectors on i686 platform. Works alright.
Thanks.
Comment by Alex (bsdard) - Sunday, 05 June 2011, 23:04 GMT
Comment by Guillaume ALAUX (galaux) - Monday, 06 June 2011, 08:19 GMT
Great! Thanks for the feedback. Closing this report.

Loading...