Bug 296537 - devel/xmake-io: update to 3.0.9
Summary: devel/xmake-io: update to 3.0.9
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-07-05 14:59 UTC by Lin
Modified: 2026-07-19 00:39 UTC (History)
2 users (show)

See Also:
vvd: maintainer-feedback+
vvd: merge-quarterly+


Attachments
update to 3.0.9 (69.50 KB, patch)
2026-07-05 14:59 UTC, Lin
no flags Details | Diff
fixed update to 3.0.9 (68.44 KB, patch)
2026-07-05 22:52 UTC, Lin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lin 2026-07-05 14:59:05 UTC
Created attachment 272512 [details]
update to 3.0.9

Update devel/xmake-io from 2.9.9 to 3.0.9.

Changes:
- DISTVERSION 2.9.9 -> 3.0.9 (drops PORTREVISION).
- GH_TUPLE bumped to the tbox submodule commit pinned by the v3.0.9 tag
  (d0138aad74d1dda1fffbee2f6fc0a8f869d8481c), keeping the bundled-source and
  external-library tbox in sync. This was the review point on 287585; the
  GH_TUPLE cannot simply be dropped because upstream ./configure fails
  without the tbox sources present, even though the binary links
  devel/tbox's libtbox.so.
- pkg-plist regenerated for 3.0.9 (1883 entries).
- files/patch-core_xmake.sh carried over and extended. Besides the lua-5.4
  pkg-config name, 3.0.9's option_find_lz4() needs its cflags fallback at
  ${LOCALBASE}/include: pkgconf strips -I/usr/local/include from
  `pkg-config --cflags liblz4` as a default system dir, and the upstream
  fallback is the Linux-only -I/usr/include, so the build otherwise fails on
  a missing lz4frame.h.
- USES+=localbase (same reason).

Depends on the devel/tbox allocator fix from bug 296515 (committed to ports
2026-07-05); without it xmake-io 2.9.9/3.x fails at runtime with a bogus
"syntax error" loading interpreter.lua. Tested with that fix in place.

Tested on 15.1-RELEASE amd64 through the ports framework (make makesum /
patch / build / stage / check-plist / reinstall): xmake --version reports
v3.0.9, the binary links external libtbox.so / liblua-5.4.so / liblz4.so /
libsv.so, and a test project (xmake create -l c; xmake; xmake run) builds
and prints "hello world!".
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2026-07-05 21:40:38 UTC
Try to add USES+=localbase instead of patch:
-            cflags="-I/usr/include"
+            cflags="-I/usr/local/include"
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-07-05 21:43:37 UTC
> pkgconf strips -I/usr/local/include from `pkg-config --cflags liblz4` as a default system dir
I don't understand what you mean.
$ pkg-config --cflags liblz4
-I/usr/local/include
Comment 3 Lin 2026-07-05 22:52:38 UTC
Created attachment 272523 [details]
fixed update to 3.0.9
Comment 4 Lin 2026-07-05 23:00:47 UTC
Youre right on both counts, thanks. Sorry for the noise in the description.
Bugs came from a broken test environment where the liblz4 headers were actually missing, which I misdiagnosed as a flags problem. Apologies.
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-07-19 00:37:42 UTC
A commit in branch main references this bug:

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

commit a9b245453dc8fa4da43ff96efcb2b394b2c08136
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-07-19 00:30:13 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-07-19 00:30:13 +0000

    devel/xmake-io: Update 2.9.9 => 3.0.9

    Changelog:
    https://github.com/xmake-io/xmake/blob/v3.0.9/CHANGELOG.md

    Improve port:
    - Switch from tarball generated by github to prepared by upstream.
    - Fix warnings from portclippy.
    - Unbundle tbox.
    - Refresh patches.

    PR:             296537 287585
    Approved by:    Huan Zhou <pericycle.cc@gmail.com> (maintainer, timeout 2 weeks)
    Sponsored by:   UNIS Labs
    Co-authored-by: Lin <lin@sz.cn.eu.org>
    Co-authored-by: Huan Zhou <pericycle.cc@gmail.com>
    MFH:            2026Q3

 devel/xmake-io/Makefile                            |  14 +-
 devel/xmake-io/distinfo                            |   8 +-
 .../files/patch-core_src_tbox_xmake.sh (new)       |  11 +
 devel/xmake-io/files/patch-core_xmake.sh           |   4 +-
 devel/xmake-io/pkg-plist                           | 769 +++++++++++----------
 5 files changed, 429 insertions(+), 377 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-07-19 00:37:45 UTC
A commit in branch 2026Q3 references this bug:

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

commit da8a21e0a6970f8ef6776bb7e5df520d3afc5b2e
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-07-19 00:30:13 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-07-19 00:37:22 +0000

    devel/xmake-io: Update 2.9.9 => 3.0.9

    Changelog:
    https://github.com/xmake-io/xmake/blob/v3.0.9/CHANGELOG.md

    Improve port:
    - Switch from tarball generated by github to prepared by upstream.
    - Fix warnings from portclippy.
    - Unbundle tbox.
    - Refresh patches.

    PR:             296537 287585
    Approved by:    Huan Zhou <pericycle.cc@gmail.com> (maintainer, timeout 2 weeks)
    Sponsored by:   UNIS Labs
    Co-authored-by: Lin <lin@sz.cn.eu.org>
    Co-authored-by: Huan Zhou <pericycle.cc@gmail.com>
    MFH:            2026Q3

    (cherry picked from commit a9b245453dc8fa4da43ff96efcb2b394b2c08136)

 devel/xmake-io/Makefile                            |  14 +-
 devel/xmake-io/distinfo                            |   8 +-
 .../files/patch-core_src_tbox_xmake.sh (new)       |  11 +
 devel/xmake-io/files/patch-core_xmake.sh           |   4 +-
 devel/xmake-io/pkg-plist                           | 769 +++++++++++----------
 5 files changed, 429 insertions(+), 377 deletions(-)
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2026-07-19 00:39:04 UTC
Thanks.