Bug 292099 - unbreak games/lwjgl3
Summary: unbreak games/lwjgl3
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: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-01 12:08 UTC by Michael Zhilin
Modified: 2026-01-01 21:13 UTC (History)
0 users

See Also:
vvd: maintainer-feedback+


Attachments
git format-patch - patch 1 (6.26 KB, patch)
2026-01-01 12:08 UTC, Michael Zhilin
no flags Details | Diff
git format-patch - patch 2 (858 bytes, patch)
2026-01-01 12:09 UTC, Michael Zhilin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zhilin freebsd_committer freebsd_triage 2026-01-01 12:08:49 UTC
Created attachment 266728 [details]
git format-patch - patch 1

Hi,

My commit of lang/kotlin made games/lwjgl3 broken due to removed deprecated Ant support. 

This set of patches adds lang/kotlin21 and unbreaks games/lwjgl3

Please review it
Comment 1 Michael Zhilin freebsd_committer freebsd_triage 2026-01-01 12:09:14 UTC
Created attachment 266729 [details]
git format-patch - patch 2
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-01 15:28:46 UTC
Hi!

We can use Kotlin 2.2:
PORTNAME=       kotlin
DISTVERSION=    2.2.21
CATEGORIES=     lang java
MASTER_SITES=   https://github.com/JetBrains/${PORTNAME}/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX=  22
DISTNAME=       ${PORTNAME}-compiler-${DISTVERSION}

MAINTAINER=     mizhka@FreeBSD.org
COMMENT=        Kotlin Programming Language with Ant Support (removed in v2.3)
WWW=            https://kotlinlang.org/

LICENSE=        APACHE20
LICENSE_FILE=   ${WRKSRC}/license/LICENSE.txt

RUN_DEPENDS=    bash:shells/bash

USES=           java zip

CONFLICTS=      kotlin

EXTRACT_BEFORE_ARGS=    -qo -x '*.bat'

NO_ARCH=        yes
NO_BUILD=       yes

WRKSRC=         ${WRKDIR}/kotlinc

KOTLIN_BIN=     kapt \
                kotlin \
                kotlinc \
                kotlinc-js \
                kotlinc-jvm

do-install:
        ${MKDIR} ${STAGEDIR}${DATADIR}/lib \
                 ${STAGEDIR}${DATADIR}/bin
        cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/bin
        cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/lib
.for f in ${KOTLIN_BIN}
        ${RLN} ${STAGEDIR}${DATADIR}/bin/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
        ${INSTALL_DATA} ${WRKSRC}/build.txt ${STAGEDIR}${DATADIR}

.include <bsd.port.mk

TIMESTAMP = 1767272727
SHA256 (kotlin-compiler-2.2.21.zip) = a623871f1cd9c938946948b70ef9170879f0758043885bbd30c32f024e511714
SIZE (kotlin-compiler-2.2.21.zip) = 78710880

Changes to games/lwjgl3 I'll commit self.

Tested build of the games/lwjgl3 and run consumer - Minecraft Client 1.21.10.
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-01-01 19:53:00 UTC
A commit in branch main references this bug:

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

commit ead895e8de681c242dd8df79344c144961790cb8
Author:     Michael Zhilin <mizhka@FreeBSD.org>
AuthorDate: 2026-01-01 11:52:23 +0000
Commit:     Michael Zhilin <mizhka@FreeBSD.org>
CommitDate: 2026-01-01 19:51:17 +0000

    lang/kotlin22: add port for Kotlin 2.2.21

    This port is required by games/lwjgl3. Since Kotlin 2.3.0, Ant support has been
    removed, but lwjgl3 has complex long ongoing migration story from Ant to
    Gradle.

    Hopefully after migration the port may be removed.

    PR:             292099
    Reported by:    vvd@

 lang/Makefile                 |  1 +
 lang/kotlin/Makefile          |  2 ++
 lang/kotlin22/Makefile (new)  | 47 ++++++++++++++++++++++++++++++
 lang/kotlin22/distinfo (new)  |  3 ++
 lang/kotlin22/pkg-descr (new) |  1 +
 lang/kotlin22/pkg-plist (new) | 67 +++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 121 insertions(+)
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-01 20:04:58 UTC
(In reply to commit-hook from comment #3)
If we have this:
EXTRACT_BEFORE_ARGS=    -qo -x '*.bat'
then we can remove this:
post-extract:
        ${RM} ${WRKSRC}/bin/*.bat
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-01-01 21:11:07 UTC
A commit in branch main references this bug:

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

commit 0e73709c572b05f47abca16f6cc3dd197d614f22
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-01-01 21:04:52 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-01-01 21:10:01 +0000

    games/lwjgl3: Unbreak after update lang/kotlin to 2.3.0

    Since Kotlin 2.3.0, Ant support has been removed, but lwjgl3 has complex
    long ongoing migration story from Ant to Gradle.
    Depends on new port lang/kotlin22 with Kotlin 2.2.21. Hopefully after
    migration the port may be removed.

    While here improve port:
    - Fix warnings from portclippy.
    - Optimize do-install goal.
    - Refresh patches.

    PR:     292099

 games/lwjgl3/Makefile                              | 20 ++++++++----------
 games/lwjgl3/files/patch-build.xml (new)           | 24 ++++++++++++++++++++++
 .../files/patch-config_build-definitions.xml       |  4 ++--
 games/lwjgl3/files/patch-config_freebsd_build.xml  |  6 +++---
 4 files changed, 38 insertions(+), 16 deletions(-)
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2026-01-01 21:13:40 UTC
Thanks!