Blame wireshark-1.8.2-python-symbols.patch

Jan Safranek 2accc8
tshark / wireshark shows
Jan Safranek 2accc8
"/lib64/libwireshark.so.2: undefined symbol: py_create_dissector_handle"
Jan Safranek 2accc8
on startup. This patch ensures that the python symbols are compiled in.
Jan Safranek 2accc8
Jan Safranek 2accc8
diff -up wireshark-1.8.2/epan/Makefile.am.orig wireshark-1.8.2/epan/Makefile.am
Jan Safranek 2accc8
--- wireshark-1.8.2/epan/Makefile.am.orig	2012-08-29 09:39:06.860107175 +0200
Jan Safranek 2accc8
+++ wireshark-1.8.2/epan/Makefile.am	2012-08-29 09:39:11.311137553 +0200
Jan Safranek 2accc8
@@ -195,7 +195,7 @@ if !HAVE_PLUGINS
Jan Safranek 2accc8
 def_sym_filter_symbols += /^register_all_wiretap_modules/ || /^register_all_plugin_tap_listeners/ || /^plugin_list/ {next;};
Jan Safranek 2accc8
 endif
Jan Safranek 2accc8
 
Jan Safranek 2accc8
-if HAVE_LIBPY
Jan Safranek 2accc8
+if !HAVE_LIBPY
Jan Safranek 2accc8
 # If we're not building python, these symbols don't get built.
Jan Safranek 2accc8
 # Keep them out of the symbol list.
Jan Safranek 2accc8
 def_sym_filter_symbols += /^py_create_dissector_handle/ || /^py_dissector_args/  {next;};
Jan Safranek 2accc8
diff -up wireshark-1.8.2/epan/libwireshark.def.old wireshark-1.8.2/epan/libwireshark.def
Jan Safranek 2accc8
--- wireshark-1.8.2/epan/libwireshark.def.old	2012-08-29 10:15:28.136123323 +0200
Jan Safranek 2accc8
+++ wireshark-1.8.2/epan/libwireshark.def	2012-08-29 10:18:28.905483905 +0200
Jan Safranek 2accc8
@@ -1248,3 +1248,9 @@ xml_escape
Jan Safranek 2accc8
 xml_get_attrib
Jan Safranek 2accc8
 xml_get_cdata
Jan Safranek 2accc8
 xml_get_tag
Jan Safranek 2accc8
+py_create_dissector_handle
Jan Safranek 2accc8
+py_dissector_args
Jan Safranek 2accc8
+hf_register_info_add
Jan Safranek 2accc8
+hf_register_info_create
Jan Safranek 2accc8
+hf_register_info_destroy
Jan Safranek 2accc8
+