Bug 293510 - www/mattermost-{server,webapp}: Update 10.11.10 => 10.11.12
Summary: www/mattermost-{server,webapp}: Update 10.11.10 => 10.11.12
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: Bernhard Froehlich
URL: https://docs.mattermost.com/product-o...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-28 21:20 UTC by Vladimir Druzenko
Modified: 2026-07-03 19:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (decke)
vvd: merge-quarterly?


Attachments
mattermost-webapp: v1 with port improvements (6.31 KB, patch)
2026-02-28 21:20 UTC, Vladimir Druzenko
no flags Details | Diff
mattermost-webapp: v2 with port improvements (6.31 KB, patch)
2026-02-28 21:22 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-28 21:20:14 UTC
Created attachment 268427 [details]
mattermost-webapp: v1 with port improvements

It have security fixes:
> Mattermost v10.11.12 contains low to high severity level security fixes.
> Upgrading to this release is recommended. Details will be posted on our security
> updates page 30 days after release as per the Mattermost Responsible Disclosure Policy.

Improvements for www/mattermost-webapp:
1. Replace:
PORTNAME=      mattermost-webapp
with
PORTNAME=      mattermost
PKGNAMESUFFIX= -webapp

2. Replace PORTVERSION with DISTVERSION.

3. Remove unnecessary DISTVERSIONPREFIX=v - unused and WWWDIR=${PREFIX}/www/mattermost - default value.

4. Parametrize "mattermost" with "${PORTNAME}" in DISTNAME, MATTERMOSTD_USER, MATTERMOSTD_GROUP.

5. Define WRKSRC and use it in do-install instead if "${WRKDIR}/mattermost".

6. Remove unnecessary MKDIR in do-install.

The distfile for the www/mattermost-server port require manual embedding of multiple files "server/vendor/*".
The tarball automatically generated from the tag on GitHub does not contain these files.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-28 21:22:58 UTC
Created attachment 268428 [details]
mattermost-webapp: v2 with port improvements

Change order of lines in do-install.
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-03-01 19:45:44 UTC
A commit in branch main references this bug:

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

commit 25c6cb283029d5b518fc540c43dc0df46f893f8e
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2026-03-01 19:19:48 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2026-03-01 19:19:48 +0000

    www/mattermost-webapp: Update to 10.11.12

    Replace PORTVERSION with DISTVERSION

    PR:             293510

 www/mattermost-webapp/Makefile  | 14 +++++++-------
 www/mattermost-webapp/distinfo  |  6 +++---
 www/mattermost-webapp/pkg-plist | 32 ++++++++++++++++----------------
 3 files changed, 26 insertions(+), 26 deletions(-)
Comment 3 Bernhard Froehlich freebsd_committer freebsd_triage 2026-03-01 19:47:03 UTC
Committed (partially) together with mattermost-server. Thanks
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-17 10:39:22 UTC
Why isn't www/mattermost-webapp built, but a ready-made tarball from upstream is used?
As far as I understand, everything we need is in mattermost-10.11.12.tar.xz of the www/mattermost-webapp port: ${WRKDIR}/mattermost-10.11.12/webapp.
Comment 5 Bernhard Froehlich freebsd_committer freebsd_triage 2026-03-17 21:39:11 UTC
Yes, its all there and all you need is node, npm, react and typescript. The distfile we use is the Linux package which includes the generated webapp files.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-17 22:23:49 UTC
So maybe this is exactly what should be done in the port? :-o
Comment 7 Bernhard Froehlich freebsd_committer freebsd_triage 2026-03-18 05:16:34 UTC
No, I don't plan to waste my time with this.
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-25 02:04:01 UTC
:-(
I wanted to try making some local changes via patches to the port, and if they were successful, maybe submit them upstream, but this turned out to be impossible due to the port's use of a pre-built tarball. Using a completely manual build makes it difficult for me to test any changes.
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2026-07-03 18:42:03 UTC
Returning to the issue of building www/mattermost-webapp from source. In version 11, they disabled GitLab SSO - the only oauth that worked in Team Edition. This is essentially a serious regression. Without building from source, there's no way to re-enable this feature. Since this is open-source, I think it's necessary to switch to a custom build with all restrictions disabled, as is done in www/mattermost-server for the number of users.
Comment 11 Bernhard Froehlich freebsd_committer freebsd_triage 2026-07-03 19:40:56 UTC
I can only recommend to reconsider using mattermost. They are on a enshittification trip and we will not be able to stop them. So far I only know about one fork which is Mostlymatter but that seems to be dead already - so you probably need to take another product.

My quite small instance is just waiting for a reason to nuke it.