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.
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
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!!!)
(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…
(In reply to Vladimir Druzenko from comment #1) Next time, ok?
(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.
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.
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.
(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.
(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
(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.
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(-)
(In reply to Vladimir Druzenko) Thanx for understanding.
(In reply to Nikita Druba from comment #12) I'll upload patch with port improvements and we can test it later.
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/*?
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.
(In reply to Vladimir Druzenko from comment #14) This is the error in my update scripts. Fixed. My fault, thanx.
(In reply to Nikita Druba from comment #10) Friendly ping.
Friendly ping again…
(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.