[MacPorts] #46850: Wireshark 1.12.3 Segmentation fault

MacPorts noreply at macports.org
Tue Mar 3 20:46:19 PST 2015


#46850: Wireshark 1.12.3 Segmentation fault
------------------------+----------------------
  Reporter:  greg@…     |      Owner:  ricci@…
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.3.3
Resolution:             |   Keywords:
      Port:  wireshark  |
------------------------+----------------------

Comment (by macports@…):

 Attached is `configure-pixmap-fix.diff`, which is a trivial patch to
 implement the "don't add `-DGDK_PIXBUF_DISABLE_DEPRECATED` to `CPPFLAGS`"
 which was mentioned in the FreeBSD ticket.  With that placed in
 `opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/wireshark/files`,
 and this `patchfiles` setting:
 {{{
 patchfiles      patch-configure.diff \
                 configure-pixmap-fix.diff
 }}}
 in
 `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/wireshark/Portfile`,
 a rebuilt `wireshark` package seems to run rather than segfaulting.

 See https://trac.macports.org/wiki/howto/PatchLocal for hints on how to
 apply a local patch like this.  Thanks to the person who found the FreeBSD
 bug report (fixed in Dec 2014), as it made it much easier.

 Note that the relevant bit of `configure` comes from `configure.ac`, but
 if you also patch `configure.ac`, then (a) you need automake @1.14.1_2
 active (because it wants aclocal-1.14), and (b) that will result in
 running a bunch of autotools guff, which overwrites the other patch to the
 `configure` script, which means it fails to identify the Kerberos library,
 and the build fails :-(  So we don't patch `configure.ac`.  (That bit
 seems rather fragile, but I don't have time to untangle why it was done
 like that.)

 Ewen

-- 
Ticket URL: <https://trac.macports.org/ticket/46850#comment:15>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list