Bug 257232 - www/jitsi-meet: Update to 1.0.6155
Summary: www/jitsi-meet: Update to 1.0.6155
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-17 11:12 UTC by yzrh
Modified: 2022-05-27 08:23 UTC (History)
4 users (show)

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


Attachments
Patch against HEAD (8.70 KB, patch)
2021-07-17 11:12 UTC, yzrh
no flags Details | Diff
Fix pkg-plist (8.46 KB, patch)
2021-07-29 17:11 UTC, yzrh
no flags Details | Diff
patch against current with version 1.0.5638 (10.07 KB, patch)
2021-12-09 12:31 UTC, cryx-freebsd
no flags Details | Diff
Big patch to bring the Jitsi "suite" to 2.0.7287 (43.05 KB, patch)
2022-05-21 08:40 UTC, Michael Gmelin
no flags Details | Diff
Big patch to bring the Jitsi "suite" to 2.0.7287 - second revision (44.98 KB, patch)
2022-05-22 12:31 UTC, Michael Gmelin
no flags Details | Diff
Third big jitsi patch (44.98 KB, patch)
2022-05-23 17:01 UTC, Michael Gmelin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description yzrh 2021-07-17 11:12:04 UTC
Created attachment 226514 [details]
Patch against HEAD
Comment 1 Michael Gmelin freebsd_committer freebsd_triage 2021-07-26 08:04:18 UTC
Would be great to get this in soon, but pkg-plist needs to be fixed, as the patch removes the @sample keyword in a couple of places.
Comment 2 yzrh 2021-07-29 17:11:04 UTC
Created attachment 226781 [details]
Fix pkg-plist
Comment 3 James Wright 2021-10-21 02:27:37 UTC
Latest stable version on GitHub now seems to be 2.0.6433
https://github.com/jitsi/jitsi-meet/releases

Although this version number seems quite different from the latest tarball on the master site: https://download.jitsi.org/jitsi-meet/src/jitsi-meet-1.0.5472.tar.bz2
Comment 4 cryx-freebsd 2021-12-09 11:46:57 UTC
Would be nice to get this bumped to at least 1.0.5638 because it includes a fix to lib-jitsi-meet (https://github.com/jitsi/lib-jitsi-meet/pull/1816/files). The issue fixed made video/audio not working with the latest Google Chrome v96 build (96.0.4664.93), affecting a lot of users.
Comment 5 cryx-freebsd 2021-12-09 12:31:07 UTC
Created attachment 229994 [details]
patch against current with version 1.0.5638

Patch for bringen this to 1.0.5638. Hope I got this right. Not sure if I should open a new bug-report for this.
Comment 6 Michael Gmelin freebsd_committer freebsd_triage 2022-05-19 13:29:07 UTC
(In reply to James Wright from comment #3)

You can see how official versions relate to jitsi-meet versions here:

https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-WEB.md

The current versions are:

    2.0.7287 (2022-05-09)
    jitsi-meet 1.0.6155

As acm@ doesn't seem to have the bandwidth to work on this, I'll try to update jitsi-meet and jitsi-videobridge locally - and if it works out - will also push the changes to ports.
Comment 7 Michael Gmelin freebsd_committer freebsd_triage 2022-05-21 08:40:03 UTC
Created attachment 234073 [details]
Big patch to bring the Jitsi "suite" to 2.0.7287

(In reply to cryx-freebsd from comment #5)

Hi Cryx,

I made good progress and managed to get all components to the latest versions.

This patch:
- adds net-im/jitsi-prosody-plugins
- updates all other jitsi ports to the versions that are part of the current release (2.0.7287)
- brings in a prosody example config in /usr/local/share/examples/jitsi (which also contains instructions)
- brings in an nginx example config in the same dir
- cleanup of start-up scripts, configs overhaul (all new style)
- updated sample configs for all ports (includes disabled sctp, as the required library doesn't contain a freebsd binary at the moment and it's deprecated anyway).

It's important to update configs when testing, as jicofo.conf and jitsi-videobridge.conf changed their meaning.

It would be great if you could test a bit (it works fine here in a local setup). Also, feel free to ask if something doesn't work.

Basic procedure:

    cd /usr/ports/net-im/jitsi-prosody-plugins
    make install clean
    cd /usr/ports/net-im/jitsi-videobridge
    make install clean
    cd /usr/ports/net-im/jicofo
    make install clean
    cd /usr/ports/www/jitsi-meet
    make install clean
    cd /usr/ports/www/nginx
    make install clean

Then adapt all configs of all components, as listed above (.sample files and files in the sample directory).

There are more things that could be done (e.g., don't run components as root, rename jitsi-meet to jitsi-meet-web and create a meta port that represents jitso-meet releases upstream etc.), but it's working for now, just in time for the chrome workaround to stop functioning.

@acm Would it make sense for me to take maintainership (at least temporarily)? This bug has been open for such a long time.
Comment 8 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2022-05-21 16:08:02 UTC
Hi

Guys take on mind jitsi (jitsi-web) can't be updated alone if another components are not updated because it is easy to broken some things. But it can be update if it is a minor release

Michael, thanks for patch file. I was working on it some months ago (jitsi did a big changes with config stuff) but prosody had lot of problems and 
they were resolved on latest versions. I prefer keep maintaining of these ports but if you want I could give you implicit approval for changes you want to do. It is good count with help sometimes

Let me review your patch file
Comment 9 Michael Gmelin freebsd_committer freebsd_triage 2022-05-22 12:31:44 UTC
Created attachment 234117 [details]
Big patch to bring the Jitsi "suite" to 2.0.7287 - second revision

(In reply to Jose Alonso Cardenas Marquez from comment #8)

Hi Jose,

Like written in private email, I'm cool with you keeping maintainership. It would probably make sense for you to take over the additional ports I created as well, so that all ports making up jitsi-meet are in one hand.

I just attached a second revision of the patch (same file name, beware), which does:
- fix a minor PORTREVISION issue
- clean Makefiles so that `portlint -a` is happy
- add a new metaport called net-im/jitsi-meet-full which can be installed to get all the right versions in. It has a version number matching jitsi-meet releases, so it's less confusing for users of the port to check how current it is.

All ports have been tested using `poudriere testport` (but only on amd64), like described under [0].

So to install all ports required by jitsi on a fresh system, you would do:

    cd /usr/ports
    patch -p1 </path/to/big_jitsi_update.patch
    cd net-im/jitsi-meet-full
    make install clean

Then modify various config files based on /usr/local/etc/jitsi/*/*.sample and /usr/local/share/examples/jitsi/*


[0]
    #!/bin/sh
    set -e
    poudriere testport -j130amd64 net-im/jicofo
    poudriere testport -j130amd64 net-im/jitsi-meet-full
    poudriere testport -j130amd64 net-im/jitsi-prosody-plugins
    poudriere testport -j130amd64 net-im/jitsi-videobridge
    poudriere testport -j130amd64 www/jitsi-meet
    echo "DONE"
Comment 10 Michael Gmelin freebsd_committer freebsd_triage 2022-05-23 17:01:12 UTC
Created attachment 234152 [details]
Third big jitsi patch

Fix minor, but important issue in example config.

So far, deployment to our real world setup is underwhelming, but might not necessarily be related to the port per se, but to changes in Jitsi.
Comment 11 commit-hook freebsd_committer freebsd_triage 2022-05-24 03:03:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e60afaa729c437401596d959b8f3e942e686fed

commit 4e60afaa729c437401596d959b8f3e942e686fed
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-05-24 03:00:25 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-05-24 03:01:56 +0000

    www/jitsi-meet: update to 1.0.6155

    - Add nginx config file
    - Modify pkg-message file
    PR:             257232
    Reported by:    grembo

 www/jitsi-meet/Makefile                  |  13 +++-
 www/jitsi-meet/distinfo                  |   6 +-
 www/jitsi-meet/files/nginx.conf.in (new) |  75 +++++++++++++++++++++
 www/jitsi-meet/files/pkg-message.in      |   5 +-
 www/jitsi-meet/pkg-plist                 | 110 ++++++++++++++++++++++++-------
 5 files changed, 177 insertions(+), 32 deletions(-)
Comment 12 commit-hook freebsd_committer freebsd_triage 2022-05-24 03:04:21 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=395d57a73b08f1986309bd299575d64126062c79

commit 395d57a73b08f1986309bd299575d64126062c79
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-05-24 02:56:52 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-05-24 02:56:52 +0000

    net-im/jitsi-videobridge: update to 2.1-681

    - Add config samples
    - Now jitsi-videobridge is init using jvb user
    - Modify pkg-message file
    PR:             257232
    Reported by:    grembo

 net-im/jitsi-videobridge/Makefile                  | 39 ++++++-------
 net-im/jitsi-videobridge/distinfo                  | 10 ++--
 .../files/jitsi-videobridge.conf.sample (new)      | 51 +++++++++++++++++
 .../jitsi-videobridge/files/jitsi-videobridge.in   | 66 +++++++++++-----------
 net-im/jitsi-videobridge/files/pkg-message.in      | 12 ++--
 .../files/sip-communicator.properties.sample (new) |  5 ++
 net-im/jitsi-videobridge/pkg-plist                 |  6 ++
 7 files changed, 125 insertions(+), 64 deletions(-)
Comment 13 commit-hook freebsd_committer freebsd_triage 2022-05-24 03:04:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=99b47104381ee9f1e42c7da8c416ff194aef960c

commit 99b47104381ee9f1e42c7da8c416ff194aef960c
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-05-24 02:47:00 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-05-24 02:47:00 +0000

    net-im/jicofo: update to 1.0-877

    - Add config samples
    - Now jicofo daemon is init using jicofo user
    - Modify pkg-message file
    PR:             257232
    Reported by:    grembo

 net-im/jicofo/Makefile                       | 34 ++++++++-----------
 net-im/jicofo/distinfo                       | 10 +++---
 net-im/jicofo/files/jicofo.conf.sample (new) | 21 ++++++++++++
 net-im/jicofo/files/jicofo.in                | 51 ++++++++++++++--------------
 net-im/jicofo/files/pkg-message.in           | 10 ++++--
 net-im/jicofo/pkg-plist                      |  5 +++
 6 files changed, 78 insertions(+), 53 deletions(-)
Comment 14 commit-hook freebsd_committer freebsd_triage 2022-05-24 03:04:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e69f2a21e5d133c3ae969fae7a38622eb5b09eeb

commit e69f2a21e5d133c3ae969fae7a38622eb5b09eeb
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-05-24 02:44:00 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-05-24 02:44:00 +0000

    net-im/jitsi-meet-full: New port: All components to run Jitsi Meet video conferencing

    This is a metaport to install all dependencies to run Jitsi Meet,
    a set of Open Source projects which empower users to use and deploy video
    conferencing platforms with state-of-the-art video quality and features.

    WWW: https://jitsi.org/jitsi-meet/
    PR:             257232
    Reported by:    grembo

 net-im/Makefile                        |  1 +
 net-im/jitsi-meet-full/Makefile (new)  | 16 ++++++++++++++++
 net-im/jitsi-meet-full/pkg-descr (new) |  5 +++++
 3 files changed, 22 insertions(+)
Comment 15 commit-hook freebsd_committer freebsd_triage 2022-05-24 03:04:24 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e3948c05cb80745167aef0b1b427eb8a90517a7

commit 1e3948c05cb80745167aef0b1b427eb8a90517a7
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-05-24 02:39:56 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-05-24 02:39:56 +0000

    net-im/jitsi-prosody-plugins: New port: Prosody plugins for Jitsi Meet

    Prosody modules for jitsi-meet.

    WWW: https://github.com/jitsi/jitsi-meet/
    PR:             257232
    Reported by:    grembo

 net-im/Makefile                                    |   1 +
 net-im/jitsi-prosody-plugins/Makefile (new)        |  44 ++++++
 net-im/jitsi-prosody-plugins/distinfo (new)        |   3 +
 .../files/prosody.cfg.lua.in (new)                 | 170 +++++++++++++++++++++
 net-im/jitsi-prosody-plugins/pkg-descr (new)       |   3 +
 net-im/jitsi-prosody-plugins/pkg-plist (new)       |  41 +++++
 6 files changed, 262 insertions(+)
Comment 16 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2022-05-24 03:07:49 UTC
Michael, I have committed your patch file with some tiny modifications. I tested jitsi and it worked  without problems. Thanks for you patch file and another guys by keeping this PR active
Comment 17 Michael Gmelin freebsd_committer freebsd_triage 2022-05-27 08:23:50 UTC
See bug #264243 for a follow-up bug to improve videobridge crypto performance.