Bug 276638 - www/mattermost-server: Update to 8.1.8
Summary: www/mattermost-server: Update to 8.1.8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-26 11:48 UTC by Bernhard Froehlich
Modified: 2024-01-26 19:53 UTC (History)
0 users

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


Attachments
mattermost-8.1.8 (75.41 KB, patch)
2024-01-26 11:48 UTC, Bernhard Froehlich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Froehlich freebsd_committer freebsd_triage 2024-01-26 11:48:48 UTC
Created attachment 247981 [details]
mattermost-8.1.8

This is an update for mattermost-server and mattermost-webapp to 8.1.8 which is the latest LTS version. Next LTS release will be 9.5 in around one month.

Upstream uses a replace line in their go.mod which breaks our Go ports framework.

replace github.com/mattermost/mattermost/server/public => ./public

To overcome this problem I use the existing hack to download a patched go.mod with the replace line commented out. This is far from being ideal but it works quite good in this case.

For future updates create the patched go.mod like this:

fetch https://raw.githubusercontent.com/mattermost/mattermost/v8.1.8/server/go.mod
fetch https://raw.githubusercontent.com/mattermost/mattermost/v8.1.8/server/go.sum
sed -i.orig 's|replace|// replace|g' go.mod

now put go.mod and go.sum on a proper distfile location.

poudriere and portlint are okay
https://ports.bluelife.at/builds/20240126-10:56:22.45468/
https://ports.bluelife.at/builds/20240126-10:56:22.45531/

We are running 8.1.7 since before Christmas without problems so I am quite confident about 8.1.8 as well.

Since we are now using Mattermost in my company as an internal service I will also provide future port updates but will stick to LTS versions which I think makes sense for the port as well.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-01-26 15:57:57 UTC
A commit in branch main references this bug:

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

commit 7dad80277156ccc4c3a66c17d82439a1a25d1771
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2024-01-26 14:08:10 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-26 15:56:30 +0000

    www/mattermost-webapp: Update version 7.10.5=>8.1.8

    Changelog: https://github.com/mattermost/mattermost/releases/tag/v8.1.8

    PR:             276638

 www/mattermost-server/Makefile  |   13 +-
 www/mattermost-server/distinfo  |   10 +-
 www/mattermost-server/pkg-plist |    3 +-
 www/mattermost-webapp/Makefile  |    3 +-
 www/mattermost-webapp/distinfo  |    6 +-
 www/mattermost-webapp/pkg-plist | 1370 +++++++++++++++++++++------------------
 6 files changed, 763 insertions(+), 642 deletions(-)
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-01-26 15:59:29 UTC
Thanks. I will try to add a maintainer mode target for simplifying the task you have mentioned. In the meantime enjoy the comment as long as it builds fine on FreeBSD supported versions. :)
Comment 3 Bernhard Froehlich freebsd_committer freebsd_triage 2024-01-26 19:53:34 UTC
Thanks a lot!