Bug 203125 - net-im/jitsi: fix build with openjdk8
Summary: net-im/jitsi: fix build with openjdk8
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 203676
Blocks: 199591
  Show dependency treegraph
 
Reported: 2015-09-15 13:37 UTC by Steve Wills
Modified: 2015-10-12 14:28 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (tzabal)


Attachments
jitsi patch (6.99 KB, patch)
2015-09-15 13:37 UTC, Steve Wills
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wills freebsd_committer freebsd_triage 2015-09-15 13:37:29 UTC
Created attachment 161063 [details]
jitsi patch

attached patch fixes build with openjdk8
Comment 1 Tzanetos Balitsaris 2015-09-16 11:16:49 UTC
Hello Steve,

Thank you for the patch. I have not used Jitsi for quite some time now, and I am away from "FreeBSD on the desktop" landscape too, but I think that with the proposed patch Jitsi will not have neither audio nor video capabilities.

The distfile that the port currently use is a custom one that includes some native libraries (e.g., libjnffmpeg.so, libjnopus.so, libjnpulseaudio.so, libjnvideo4linux2.so, libjnvpx.so) that I have built for FreeBSD because they were not included in the original Jitsi build. As I can see, the patch does not list these libraries in the pkg-plist file.

So can you please tell me if you have tested an installation that does not include the above libraries, if Jitsi has audio and video capabilities? If yes, for sure we can apply the patch, but if not, maybe we can find another way to bypass the blocking that this port causes to bug 199591 that you mentioned.

Regards,
Tzanetos
Comment 2 Steve Wills freebsd_committer freebsd_triage 2015-10-01 18:12:52 UTC
(In reply to tzabal from comment #1)
I have tested that the updated port runs but didn't test audio or video capabilities. I'm guessing they don't work with this patch. Can you tell me how you build the libraries it needs to do audio/video? I would like to add that to the port. And also, how to test audio/video?
Comment 3 Tzanetos Balitsaris 2015-10-07 14:28:26 UTC
(In reply to Steve Wills from comment #2)
Thanks for your interest. I am now working on the 2.8 version of Jitsi for the port, and as soon as I have something I will post it, along with the procedure that is needed to update the port for future updates.

Generally, the procedure can be summarized by the following steps:
* Download a stable Jitsi snapshot, extract and run 'ant rebuild' and 'ant run' to check that Jitsi can at least build and run on the system.
* Because many features will not work with only the above step (e.g., no audio, no video, even no system tray icon), it is needed to build the equivalent libraries that are missing for these functions.
* Find and download the libjitsi snapshot from the repository of libjitsi (github.com/jitsi/libjitsi) that was used to build the libjitsi.jar inside the Jitsi snapshot. The only way to determine the version is to check the commit messages of jitsi to find when they updated the libjitsi.jar. [1]
* Extract the libjitsi snapshot and run 'ant rebuild' to build the libjitsi.jar. Then, run 'ant pulseaudio', 'ant video4linux2', 'ant opus', 'ant ffmpeg', and 'and libvpx'. The result of these actions is to build the needed libraries for FreeBSD. It is needed to generate libraries for both i386 and amd64.

[1] http://lists.jitsi.org/pipermail/dev/2013-October/018485.html
Comment 4 Tzanetos Balitsaris 2015-10-10 13:42:53 UTC
An update has been released that solves the issue with OpenJDK 8 and updates Jitsi to the latest stable snapshot. bug #203676
Comment 5 Steve Wills freebsd_committer freebsd_triage 2015-10-12 14:28:55 UTC
Closing, bug #203676 fixed it.