Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#57489 closed defect (fixed)

wireshark2 @2.6.4+lua: build fails

Reported by: egorenar (Alexander Egorenkov) Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: wireshark2

Description

wireshark2 port fails if lua variant is activated. with no lua the build succeeds.

Attachments (1)

main.log (4.4 MB) - added by egorenar (Alexander Egorenkov) 5 years ago.

Change History (9)

Changed 5 years ago by egorenar (Alexander Egorenkov)

Attachment: main.log added

comment:1 Changed 5 years ago by Schamschula (Marius Schamschula)

Keywords: wireshark2 removed
Owner: set to ghosthound
Status: newassigned

comment:2 Changed 5 years ago by ghosthound

Status: assignedaccepted

comment:3 Changed 5 years ago by ghosthound

Works for me, but I'm not on 10.14 and Xcode 10.1. Presumably there's something different with that combo. The error appears to be:

:info:build #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"

Can you have a look at that and see if there's a clue there as to what's going on?

comment:4 Changed 5 years ago by kencu (Ken)

You likely have the newer lua @5.3.4_1 installed, and it's trampling the lua52 @5.2.4_1 installation. If you deactivate lua, you should be able to install wireshark2 +lua:

$ port -v installed wireshark2
The following ports are currently installed:
  wireshark2 @2.6.4_0+cares+geoip+gnutls+kerberos5+libgcrypt+libsmi+lua+portaudio+qt5+zlib (active) platform='darwin 18' archs='x86_64' date='2018-11-05T19:02:54-0800'

To fix this, wireshark2 needs to have the lua-5.2 include directory included AHEAD of the system include directories in it's CMakeLists.txt file. This is a modest PITA to do, but there are plenty of examples in the macports repo of this being done.

wireshark2 is not presently compatible with lua @5.3.4_1, at least with the current versions in MacPorts.

comment:5 Changed 5 years ago by ken-cunningham-webuse

Resolution: fixed
Status: acceptedclosed

In 16c420feca0232775ff57d699d136b5ee4967cb0/macports-ports (master):

wireshark2: fix build with +lua when lua5.3 is installed

brings lua 5.2 include directory ahead of system directories
so the lua 5.2 lua.h is found as required
closes: #57489

comment:6 Changed 5 years ago by ghosthound

While a fix for an issue is always welcome, please do not commit things to ports that are not openmaintainer.

comment:7 Changed 5 years ago by kencu (Ken)

you're right, I should have added "maintainer timeout" to the commit message. Apologies for that.

<https://github.com/macports/macports-ports/pull/2965>

<https://guide.macports.org/chunked/project.update-policies.html>

As you know, it was a trivial fix to a broken variant, otherwise I wouldn't have bothered.

comment:8 Changed 5 years ago by ghosthound

Hmm, never saw the pull notification and can't find it anywhere, not sure why as GitHub should be sending them to me.

Note: See TracTickets for help on using tickets.