Bug 292133 - net-im/openfire: Update to 5.0.3
Summary: net-im/openfire: Update to 5.0.3
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vladimir Druzenko
URL: https://download.igniterealtime.org/o...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-02 17:18 UTC by Nikita Druba
Modified: 2026-04-08 19:05 UTC (History)
2 users (show)

See Also:


Attachments
git diff for net-im/openfire (4.71 KB, patch)
2026-01-02 17:18 UTC, Nikita Druba
nikita: maintainer-approval+
Details | Diff
v1 (7.82 KB, patch)
2026-01-02 21:49 UTC, Vladimir Druzenko
no flags Details | Diff
v2 (8.59 KB, patch)
2026-01-02 23:20 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 Nikita Druba 2026-01-02 17:18:15 UTC
Created attachment 266756 [details]
git diff for net-im/openfire

This time, I used zstd for deps as an experiment. If it causes problems, I will switch back to gzip. 

P.S. For this port needed to upload in FreeBSD "LOCAL" archive with maven dependencies:
https://cloud.druba.su/public.php/dav/files/KrzeW7FJE3goJix/?accept=zip

Poudriere tested successfully.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-02 18:51:57 UTC
1. Try:
MAVEN_LOCAL_VARS=       MVN_OPTS+="-o -Dmaven.repo.local=${WRKDIR}/m2"
MAVEN_ONLINE_VARS=      MVN_OPTS+=-U

OPENJDK17_VARS=         JAVA_VERSION=17
OPENJDK21_VARS=         JAVA_VERSION=21

TEST_VARS=              MVN_OPTS+=-DskipTests=false
TEST_VARS_OFF=          MVN_OPTS+=-DskipTests=true

Instead of:

.if ${PORT_OPTIONS:MOPENJDK17}
JAVA_VERSION=  17
.elif ${PORT_OPTIONS:MOPENJDK21}
JAVA_VERSION=  21
.endif

.if ${PORT_OPTIONS:MTEST}
MVN_OPTS+=     -DskipTests=false
.else
MVN_OPTS+=     -DskipTests=true
.endif

.if ${PORT_OPTIONS:MMAVEN_LOCAL}
MVN_OPTS+=     -o -Dmaven.repo.local=${WRKDIR}/m2
.elif ${PORT_OPTIONS:MMAVEN_ONLINE}
MVN_OPTS+=      -U
.endif
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-02 19:01:57 UTC
2.
do-install:
        @${MKDIR} ${STAGEDIR}${DATADIR}/lib \
                  ${STAGEDIR}${ETCDIR} \
                  ${STAGEDIR}${VARDB} \
                  ${STAGEDIR}${VARLOG}

        (cd ${INSTALL_WRKSRC}/lib && ${INSTALL} -m 744 *.jar log4j2.xml ${STAGEDIR}${DATADIR}/lib)

3. Why:
        (cd ${INSTALL_WRKSRC}/documentation && ${FIND} . \
        | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1 )
?
Is this same:
        (cd ${INSTALL_WRKSRC}/documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
?

Also:
        (cd ${INSTALL_WRKSRC}/plugins/admin && ${FIND} . \
        | ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/plugins/admin)
versus:
        (cd ${INSTALL_WRKSRC}/plugins && ${COPYTREE_SHARE} admin ${STAGEDIR}${DATADIR}/plugins)

And this:
        (cd ${INSTALL_WRKSRC}/resources && \
            ${FIND} . \! -path ./security\* \! -path ./nativeAuth\* | \
            ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} \
                ${STAGEDIR}${DATADIR}/resources)
versus
        (cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} resources ${STAGEDIR}${DATADIR} "! -path resources/security* -and ! -path resources/nativeAuth*")
(Need testing!!!)
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-02 19:06:58 UTC
(In reply to Nikita Druba from comment #0)
> https://cloud.druba.su/public.php/dav/files/KrzeW7FJE3goJix/?accept=zip
It's very-very slow.
In 1st try I got 46466177 only…
Comment 4 Nikita Druba 2026-01-02 19:38:10 UTC
(In reply to Vladimir Druzenko from comment #1)
Next time, ok?
Comment 5 Nikita Druba 2026-01-02 19:42:24 UTC
(In reply to Vladimir Druzenko from comment #2)
This part wroten by previous maintainer. And I don't touch it, cause its work. I can try you suggestions during next update.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-02 21:49:54 UTC
Created attachment 266762 [details]
v1

(In reply to Nikita Druba from comment #5)
I already have those changes in my tree.
Build tested.

Add several small improvements.
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-02 23:20:15 UTC
Created attachment 266765 [details]
v2

1. Fix build on live systems with different mavens installed - force install and use maven 3.8.
2. Replace LN with RLN.
Comment 8 Nikita Druba 2026-01-03 13:51:56 UTC
(In reply to Vladimir Druzenko from comment #7)
I'm not sure, that fixing maven version is the right decision. It can be an option, but not default. I was no one comment from users about troubles with maven version.
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-03 15:07:14 UTC
(In reply to Nikita Druba from comment #8)
I got this error on my desktop with installed:
maven-3.8.9                    devel/maven
maven39-3.9.12                 devel/maven39
Comment 10 Nikita Druba 2026-01-05 09:38:00 UTC
(In reply to Vladimir Druzenko from comment #9)
You are proposing too many changes. I need many time to accurately test all of this to give maintainer approval. I don't have this time for now, cause I have many works for a coming 2 weeks. Cause of this I suggest to commit my changes for this time to update port version. I will test all the proposed changes for the next update.
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-01-05 16:34:11 UTC
A commit in branch main references this bug:

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

commit ed0fb946e72bc2fc1d5a0a25a3de8bf339f262b5
Author:     Nikita Druba <nikita@druba.su>
AuthorDate: 2026-01-05 16:30:24 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-01-05 16:33:09 +0000

    net-im/openfire: Update 5.0.2 => 5.0.3

    Changelog:
    https://download.igniterealtime.org/openfire/docs/5.0.3/changelog.html
    https://github.com/igniterealtime/Openfire/releases/tag/v5.0.3

    PR:     292133

 net-im/openfire/Makefile  |  8 +++-----
 net-im/openfire/distinfo  | 10 +++++-----
 net-im/openfire/pkg-plist | 16 +++++-----------
 3 files changed, 13 insertions(+), 21 deletions(-)
Comment 12 Nikita Druba 2026-01-05 16:36:27 UTC
(In reply to Vladimir Druzenko)
Thanx for understanding.
Comment 13 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-05 17:08:25 UTC
(In reply to Nikita Druba from comment #12)
I'll upload patch with port improvements and we can test it later.
Comment 14 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-05 18:31:15 UTC
Why openfire-5.0.2-deps.tar.gz and openfire-5.0.3-deps.tar.zst have same files in 2 places:
/m2/* and /m2/repository/*?
Comment 15 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-05 19:00:23 UTC
It's possible the problem with maven is because the repository was created with version 3.8, so it doesn't work with 3.9. But that's just a guess.
Comment 16 Nikita Druba 2026-01-05 19:11:20 UTC
(In reply to Vladimir Druzenko from comment #14)
This is the error in my update scripts. Fixed. My fault, thanx.
Comment 17 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-06 19:48:01 UTC
(In reply to Nikita Druba from comment #10)
Friendly ping.
Comment 18 Vladimir Druzenko freebsd_committer freebsd_triage 2026-04-04 20:16:57 UTC
Friendly ping again…
Comment 19 Nikita Druba 2026-04-08 19:05:12 UTC
(In reply to Vladimir Druzenko from comment #18)
Hello! I was wait new Openfire to return to this question. Now, updated port version done and testing in poudriere. Soon, I will create new "bug" for updating Openfire to 5.0.4 and add you to CC list.