Hi,

I'm playing with new Wireshark (1.8.0rc1) and I have problem.

We packages Wireshark in three separate packages:
- wireshark
- tshark
- wireshark-common (the one with shared libraries).

Current Wireshark version we have now in Solaris delivers libraries with link "*.so.1". This is what we have now on build systems/repo.

New Wireshark 1.8 delivers and links "*.so.2" instead".

So wireshark and tshark packages are complaining that they are missing dependency on package with "*.so.2" links. This I believe is because we are looking only on dependencies in latest Solaris build.

I have following workaround for it:

--- old/components/wireshark/tshark.p5m Fri Jun  8 06:07:52 2012
+++ new/components/wireshark/tshark.p5m Fri Jun  8 06:07:52 2012
@@ -40,7 +40,17 @@
 dir path=usr/share/man
 dir path=usr/share/man/man1
file exec_attr.tshark path=etc/security/exec_attr.d/diagnostic:wireshark:tshark
-file path=usr/sbin/tshark
+# Seems like dependencies are generated against packages on system and not
+# against newly created ones. It means we cannot make it automatically as *.so.2
+# are not on build system yet.
+file path=usr/sbin/tshark \
+    pkg.depend.bypass-generate=libwireshark.so.2 \
+    pkg.depend.bypass-generate=libwiretap.so.2 \
+    pkg.depend.bypass-generate=libwsutil.so.2
+# Therefore we need to temporary depend on dumpcap from wireshark-common
+# package to get dependency on this package.
+depend fmri=__TBD \
+    pkg.debug.depend.file=usr/sbin/dumpcap type=require
 file path=usr/share/man/man1/tshark.1

 license wireshark.license license=GPLv2

--

Is there any other solution? Or am I missing something?

Thanks,

Petr
_______________________________________________
userland-discuss mailing list
userland-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

Reply via email to