Bug 279705 - textproc/libxml2: Update to 2.14.4
Summary: textproc/libxml2: Update to 2.14.4
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: freebsd-desktop (Team)
URL: https://gitlab.gnome.org/GNOME/libxml...
Keywords:
Depends on: 279741 279745 279746 279747 279748 279749 279750 279752 279754 279755 279757 279758 279759 279761 279763 279765 279766 279768 279897 279898 279954 279955 279956 279957 279958 279959 279962 279963 279964 279965 279967 279968 279976 280153 280154 280157 280158 280159 280160 280162 280329 281592 281593 281612 283998 284271 284272 284273 284977 285738 285893 285894 285895 285899 285901 285902 285906 285907 285910 286784 286785 286793 286800 287140 287284
Blocks:
  Show dependency tree / graph
 
Reported: 2024-06-13 05:06 UTC by Daniel Engberg
Modified: 2025-07-18 14:22 UTC (History)
32 users (show)

See Also:
vishwin: maintainer-feedback+
diizzy: exp-run?


Attachments
Patch for libxml2 (8.74 KB, patch)
2024-06-13 05:06 UTC, Daniel Engberg
vishwin: maintainer-approval-
Details | Diff
Patch for libxml2 v2 (8.77 KB, patch)
2024-06-15 14:05 UTC, Daniel Engberg
vishwin: maintainer-approval-
Details | Diff
Patch for libxml2 v3 (14.37 KB, patch)
2024-06-16 06:31 UTC, Daniel Engberg
vishwin: maintainer-approval-
Details | Diff
Patch for libxml2 v4 (9.32 KB, patch)
2024-06-21 12:04 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v5 (18.28 KB, patch)
2024-06-23 12:36 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v6 (10.33 KB, patch)
2024-07-05 17:12 UTC, Daniel Engberg
no flags Details | Diff
v7 (17.39 KB, patch)
2024-07-14 04:45 UTC, Charlie Li
no flags Details | Diff
Patch for libxml2 v7 (15.74 KB, patch)
2024-07-14 05:33 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v8 (21.39 KB, patch)
2024-07-20 09:28 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v9 (10.33 KB, patch)
2024-07-24 19:29 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v10 (10.35 KB, patch)
2024-09-20 18:23 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v11 (10.33 KB, patch)
2024-11-13 21:00 UTC, Daniel Engberg
no flags Details | Diff
Exp-run patch (42.01 KB, patch)
2025-02-16 08:05 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v12 (10.33 KB, patch)
2025-02-18 18:14 UTC, Daniel Engberg
no flags Details | Diff
v13 (21.67 KB, patch)
2025-02-27 23:20 UTC, Charlie Li
no flags Details | Diff
Patch for libxml2 v14 (13.34 KB, patch)
2025-04-05 15:23 UTC, Daniel Engberg
no flags Details | Diff
Exp-run patch (13.96 KB, patch)
2025-04-05 15:24 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v15 (17.27 KB, patch)
2025-04-14 18:00 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml v16 (11.33 KB, patch)
2025-04-17 17:38 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v17 (11.20 KB, patch)
2025-05-13 21:06 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v18 (20.38 KB, patch)
2025-05-15 21:42 UTC, Daniel Engberg
no flags Details | Diff
v18, autotools edition (19.84 KB, patch)
2025-05-24 13:08 UTC, Charlie Li
no flags Details | Diff
Patch for libxml2 v19 (25.64 KB, patch)
2025-05-24 15:12 UTC, Daniel Engberg
no flags Details | Diff
v19, autotools edition (20.00 KB, patch)
2025-05-27 19:13 UTC, Charlie Li
no flags Details | Diff
Patch for libxml2 v20 (30.47 KB, patch)
2025-05-31 17:23 UTC, Daniel Engberg
no flags Details | Diff
v20, autotools edition (19.18 KB, patch)
2025-06-10 18:16 UTC, Charlie Li
no flags Details | Diff
v21 (autotools) (19.11 KB, patch)
2025-06-10 18:25 UTC, Charlie Li
no flags Details | Diff
Patch for libxml2 v21 (9.91 KB, patch)
2025-06-16 18:02 UTC, Daniel Engberg
no flags Details | Diff
Patch for libxml2 v22 (15.51 KB, patch)
2025-06-20 22:24 UTC, Daniel Engberg
no flags Details | Diff
v22 (autotools) (19.20 KB, patch)
2025-06-28 17:06 UTC, Charlie Li
no flags Details | Diff
v23 (autotools) (19.26 KB, patch)
2025-06-28 17:15 UTC, Charlie Li
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-06-13 05:06:09 UTC
Created attachment 251428 [details]
Patch for libxml2

This will be a "Meta" PR, at least libxslt will also be needed to updated at the same time.

Compile tested on FreeBSD 14.0-RELEASE (amd64) (make, make check-plist, make test)
Compile tested on FreeBSD 14.1-RELEASE (aarch64) (make, make check-plist, make test)

Poudriere testport OK 13.2-RELEASE (amd64)
Poudriere testport OK 14.0-RELEASE (amd64)

Tested with all listed consumers (including ones for py-libxml2) on freshports.org on 13.2-RELEASE (amd64) using Poudriere:
https://pdr2.bofh.network/build.html?mastername=132-diizzy&build=2024-06-12_15h36m18s
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-06-13 05:08:08 UTC
I have a patch for libxslt ready which I'll submit soon, for now we can work on the fallout of ports that are already known (see link to pdr2).
Comment 2 Charlie Li freebsd_committer freebsd_triage 2024-06-13 19:14:03 UTC
Comment on attachment 251428 [details]
Patch for libxml2

This needs the legacy option exposed and enabled by default, amongst other things. Will reduce the fallout somewhat. Also note that meson is now available.

Upstream still indirectly recommends autotools for Unix-like systems, especially as evidenced by their CI.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2024-06-15 08:56:57 UTC
It would be great if we could do without legacy as we're essentially just pushing work in front of us for a later date by using it.

Ports that have ~dead/inactive upstream and no users in tree

textproc/diffmark - 	Abandonware (should be marked as unfetchable at least)
also removes...		textproc/p5-XML-DifferenceMarkup

textproc/liblingoteach - Abandonware (last activity ~20 years ago)
also removes...		misc/lingoteach

devel/libiqxmlrpc -	~ Abandonware, upstream requests patches

textproc/libcroco -	Needs patch, deprecated/dead and already removed in other repos such as Debian and Fedora

Compatibility:

databases/spatialite -	Probably needs the http functionality in libxml2 enabled to keep if the libxml module is enabled

There are also a few compatibility patches recently added to upstream libxml2 repo:

https://gitlab.gnome.org/GNOME/libxml2/-/commit/599ceaffad97faff9e77a3237d319f18cdc2984a
https://gitlab.gnome.org/GNOME/libxml2/-/commit/bd208d5fe110999b17ef88d45648e2a248dc964e

Even without these (for now) we can try to prepare as much as possible.

General note,
Most of the fallout is from 2.12.X which we didn't import due the amount of work  required to migrate to 2.11.X.
Comment 4 Charlie Li freebsd_committer freebsd_triage 2024-06-15 09:01:36 UTC
No, I've actually had 2.12 in my own WIP tree this entire time, but yes even with legacy exposed and enabled by default some downstream stuff had to give.

This is one of those ports where you cannot only account for ports consumers. Further, it's not so much work for us, but the consumers' upstream projects need time and effort to migrate from the legacy APIs. Legacy stays.
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2024-06-15 13:37:50 UTC
Updated list regarding http functionality,

databases/spatialite -	Probably needs the http functionality in libxml2 enabled to keep the libxml module is enabled
cad/openvsp - 	Probably depends on the http functionality in libxml2
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2024-06-15 14:05:45 UTC
Created attachment 251475 [details]
Patch for libxml2 v2

Enable http module as some ports requires this functionality such as databases/spatialite and cad/openvsp
Comment 7 Daniel Engberg freebsd_committer freebsd_triage 2024-06-16 06:31:00 UTC
Created attachment 251491 [details]
Patch for libxml2 v3

Backport upstream commits:
95939d6ea3718c458620eeda850add549cd07e99
7c3151903da31efb7a42f3e27857f9f7df6f88e1
b61a960bf6dba639b310646300a1fc21ef473afc

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/95939d6ea3718c458620eeda850add549cd07e99
https://gitlab.gnome.org/GNOME/libxml2/-/commit/7c3151903da31efb7a42f3e27857f9f7df6f88e1
https://gitlab.gnome.org/GNOME/libxml2/-/commit/b61a960bf6dba639b310646300a1fc21ef473afc
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-06-16 16:38:11 UTC
A commit in branch main references this bug:

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

commit 14ef9b0ef00043e34cd1f0f9611667503ebe1006
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-16 16:16:18 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-16 16:35:52 +0000

    textproc/p5-XML-DifferenceMarkup: Deprecate and set expiration date to 2024-07-16

    Depends on deprecated port textproc/diffmark

    PR:             279705
    Approved by:    portmgr (blanket)

 textproc/p5-XML-DifferenceMarkup/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-06-16 16:38:12 UTC
A commit in branch main references this bug:

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

commit e1a4636af2dc1f4e3b002b6458371ee3fa558155
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-16 16:26:12 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-16 16:35:53 +0000

    devel/libiqxmlrpc: Deprecate and set expiration date to 2024-07-16

    Fails to build with libxml2 2.13.0

    PR:             279705

 devel/libiqxmlrpc/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-06-16 16:38:13 UTC
A commit in branch main references this bug:

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

commit 86be50192c1a97237c9923dc878cae46e2f6a3f2
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-16 16:20:58 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-16 16:35:52 +0000

    textproc/liblingoteach: Deprecate and set expiration date to 2024-07-16

    Abandonware, last activity 18+ years ago and fails to build with
    libxml2 2.13.0

    PR:             279705

 textproc/liblingoteach/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 11 commit-hook freebsd_committer freebsd_triage 2024-06-16 16:38:14 UTC
A commit in branch main references this bug:

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

commit 0fea4d9fc1398edf126dd255c5490c32af6f2c58
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-16 16:23:11 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-16 16:35:52 +0000

    misc/lingoteach: Deprecate and set expiration date to 2024-07-16

    Depends on deprecated port textproc/liblingoteach

    PR:             279705

 misc/lingoteach/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 12 commit-hook freebsd_committer freebsd_triage 2024-06-16 16:38:15 UTC
A commit in branch main references this bug:

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

commit 20ee0c7068c50c85dabfb99e1d3a86ada9fdab32
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-16 16:13:14 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-16 16:35:52 +0000

    textproc/diffmark: Deprecate and set expiration date to 2024-07-16

    Deprecate as port fails to build with libxml2 2.13.0 and upstream is
    gone

    PR:             279705

 textproc/diffmark/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
Comment 13 Charlie Li freebsd_committer freebsd_triage 2024-06-16 21:42:15 UTC
Comment on attachment 251491 [details]
Patch for libxml2 v3

Backports are fine otherwise
Comment 14 Daniel Engberg freebsd_committer freebsd_triage 2024-06-21 12:04:44 UTC
Created attachment 251599 [details]
Patch for libxml2 v4

Update to 2.13.1
Remove deprecated MEM_DEBUG option

New mini-exp run can be found here:
https://pdr2.bofh.network/build.html?mastername=140-diizzy&build=libxml2-2131
Comment 15 Daniel Engberg freebsd_committer freebsd_triage 2024-06-23 12:36:33 UTC
Created attachment 251644 [details]
Patch for libxml2 v5

Backport upstream patches aaa24ca6be56d1573357c88ac82a1542f832576d, 7759765c6c3fcd0735fe7caeb83f1be0f2da7775 and MR 266

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/aaa24ca6be56d1573357c88ac82a1542f832576d
https://gitlab.gnome.org/GNOME/libxml2/-/commit/7759765c6c3fcd0735fe7caeb83f1be0f2da7775
https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/266
Comment 16 Daniel Engberg freebsd_committer freebsd_triage 2024-07-05 17:12:24 UTC
Created attachment 251885 [details]
Patch for libxml2 v6
Comment 17 commit-hook freebsd_committer freebsd_triage 2024-07-06 12:03:18 UTC
A commit in branch main references this bug:

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

commit 8e35b11ca62acfd1e1cb81506c64f3ad773521d9
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-07-06 11:40:15 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-07-06 12:02:09 +0000

    games/manaplus: Deprecate and set expiration date to 2024-08-06

    Fails to build with libxml2 2.13.2, unmaintained for years and very
    little activity upstream for the past 2 years

    PR:             279705

 games/manaplus/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 18 Daniel Engberg freebsd_committer freebsd_triage 2024-07-06 12:10:18 UTC
New run here:
https://pdr2.bofh.network/build.html?mastername=140-diizzy&build=libxml2-2132-libxslt-1142-run1

PRs applied: 279705, 279741, 279976 and 279956
Ignore tclxml, that's my fault
Comment 19 Charlie Li freebsd_committer freebsd_triage 2024-07-14 04:45:02 UTC
Created attachment 252032 [details]
v7

Back to autotools. LEGACY option added and enabled by default, resurrect STATIC, both for the benefit of consumers not in the tree. LEGACY implies http, lzma and zlib, which can be exposed as separate options.

Rename the python child port to textproc/libxml2-python, as the Python package name is "libxml2-python" (and not "libxml2"). Currently has USE_PYTHON=distutils despite a pyproject.toml existing (USE_PYTHON=pep517) but need to slightly modify python.mk to allow the parent port's do-configure to run (setup.py is generated).
Comment 20 Daniel Engberg freebsd_committer freebsd_triage 2024-07-14 05:33:26 UTC
Created attachment 252033 [details]
Patch for libxml2 v7

Backport upstream patches dd5adf54c9a2edd452ff828277d85b1d18431d75, e30cb632e734394ddbd7bd62b57cee3586424352 and bf43e8a888cbee75e13622fea8a722b9d166c437

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/dd5adf54c9a2edd452ff828277d85b1d18431d75
https://gitlab.gnome.org/GNOME/libxml2/-/commit/e30cb632e734394ddbd7bd62b57cee3586424352
https://gitlab.gnome.org/GNOME/libxml2/-/commit/bf43e8a888cbee75e13622fea8a722b9d166c437
Comment 21 Daniel Engberg freebsd_committer freebsd_triage 2024-07-20 09:28:26 UTC
Created attachment 252189 [details]
Patch for libxml2 v8

Backport upstream patches 8699ba234b5a1328f0f30ca739b8f1dbc90ccf5e, a0330b53c8034bb79220e403e8d4ad8c23ef088f and ed8b4264f65b1ced1e3b13967dd1cf90102cfa40

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/8699ba234b5a1328f0f30ca739b8f1dbc90ccf5e
https://gitlab.gnome.org/GNOME/libxml2/-/commit/a0330b53c8034bb79220e403e8d4ad8c23ef088f
https://gitlab.gnome.org/GNOME/libxml2/-/commit/ed8b4264f65b1ced1e3b13967dd1cf90102cfa40
Comment 22 Daniel Engberg freebsd_committer freebsd_triage 2024-07-24 19:29:10 UTC
Created attachment 252261 [details]
Patch for libxml2 v9

Update to 2.13.3
Comment 23 Daniel Engberg freebsd_committer freebsd_triage 2024-09-20 18:23:45 UTC
Created attachment 253697 [details]
Patch for libxml2 v10
Comment 24 Daniel Engberg freebsd_committer freebsd_triage 2024-11-13 21:00:30 UTC
Created attachment 255146 [details]
Patch for libxml2 v11
Comment 25 Juraj Lutter freebsd_committer freebsd_triage 2025-01-06 20:23:05 UTC
Is there any timeframe for this update to happen?
Comment 26 Daniel Engberg freebsd_committer freebsd_triage 2025-01-06 20:54:05 UTC
The "major" blocker is www/webkit2-gtk* (listed in 279741) which is outdated (by ~2 years) and from what I can tell by looking at upstream supposedly have multiple CVE issues. If someone wants to "hotfix" it feel free to submit a patch otherwise we're looking at ~100 desktop ports or so not being available.

x11-toolkits/wxgtk3* also depends on webkit2-gtk so that's why it's so "many" ports being affected.
Comment 27 Daniel Engberg freebsd_committer freebsd_triage 2025-02-15 12:05:56 UTC
Hi,

I'd like to request an exp-run with following patches applied,

https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255146 (this PR)
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251682 (PR 279976)
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251886 (PR 279741)

Best regards,
Daniel
Comment 28 Antoine Brodin freebsd_committer freebsd_triage 2025-02-16 07:34:48 UTC
Please combine all the patches in 1 patch
Comment 29 Daniel Engberg freebsd_committer freebsd_triage 2025-02-16 08:05:31 UTC
Created attachment 257570 [details]
Exp-run patch

Patch for exp-run
Comment 30 Antoine Brodin freebsd_committer freebsd_triage 2025-02-18 13:10:21 UTC
Some new failure logs:

https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/cava-0.10.2_2.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/pinot-1.21_16.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/recoll-1.33.1_8.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/libaravis-0.8.20_3.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/php81-pear-1.10.13.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/apache-openoffice-4.1.15_4.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/apache-openoffice-devel-4.2.1731847285_3,4.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/citra-s20220902_3.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/virtualbox-ose-6.1.50_8.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/virtualbox-ose-legacy-5.2.44_27.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/virtualbox-ose-nox11-6.1.50_8.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/virtualbox-ose-nox11-legacy-5.2.44_27.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/connectagram-1.3.7.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/cutemaze-1.3.5.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/gottet-1.2.6.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/tanglet-1.6.7.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/librsvg2-2.40.21_4.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/rawstudio-2.0_26.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/openjfx14-14.0.2.1+1_16.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/py311-igraph-0.10.6_5.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/scilab-6.1.1_21.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/zabbix5-proxy-5.0.45.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/zabbix5-server-5.0.45.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/guacamole-server-1.5.5.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/yazproxy-1.3.9_3.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/orthanc-1.12.6.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/hs-cardano-cli-10.4.0.0.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/p5-XML-GDOME-0.86_5.log
https://pkg-status.freebsd.org/gohan04/data/141amd64-default-foo/2025-02-18_07h40m21s/logs/errors/compiz-0.8.8_15.log
Comment 31 Daniel Engberg freebsd_committer freebsd_triage 2025-02-18 18:14:16 UTC
Created attachment 257626 [details]
Patch for libxml2 v12

Version 2.13.6 , fixes CVEs
Comment 32 Daniel Engberg freebsd_committer freebsd_triage 2025-02-26 21:14:08 UTC
Since there doesn't seem to be any further progress on the remaining issues and there's nothing major known broken I'm going to suggest that we push libxml2 and friends this weekend and mark the rest as broken. This will also give us about  one month to iron out the remaining ports (if anyone still wants to spend time on those) otherwise they'll be sunset and the tree will have versions supported by upstreams.
Comment 33 Juraj Lutter freebsd_committer freebsd_triage 2025-02-26 22:04:24 UTC
For zabbix5 ports, I'll update them as soon as the libxml2 update will be done.
Comment 34 Charlie Li freebsd_committer freebsd_triage 2025-02-26 23:01:02 UTC
(In reply to Daniel Engberg from comment #32)
With desktop@ hat: absolutely not.

The use of cmake is still not approved, and the legacy option is still missing. Having legacy enabled by default can significantly cut down on breakages. And again, libxslt needs to be approved and committed first.
Comment 35 Charlie Li freebsd_committer freebsd_triage 2025-02-27 21:40:04 UTC
This exp-run is not valid. Another will be requested later.

This and libxslt need to be run and committed separately, as (slightly) newer libxslt can run with (slightly) older libxml2, but not necessarily the other way around. Some failures stem from libxslt, and not necessarily libxml2, changing things.

Also for the aforementioned lack of the LEGACY option enabled by default.
Comment 36 Daniel Engberg freebsd_committer freebsd_triage 2025-02-27 23:07:38 UTC
(In reply to Charlie Li from comment #35)
It's perfectly valid and you haven't listed any actual issues like the last time you tried to do the same and got told to stop being obstructive. Unit tests are as you've been told before are there for a reason.
Comment 37 Charlie Li freebsd_committer freebsd_triage 2025-02-27 23:09:13 UTC
(In reply to Daniel Engberg from comment #36)
The actual issues that you choose to ignore are still present. Updated patches are inbound.
Comment 38 Charlie Li freebsd_committer freebsd_triage 2025-02-27 23:20:56 UTC
Created attachment 258048 [details]
v13

- back to autotools
- introduce legacy option
- move Python child port to the correct package name
- remove ICU option, broken and not upstream-recommended

Once again, upstream designates autotools "for POSIX systems like Linux, BSD, macOS" directly in its README.md under build instructions. Until upstream changes this exact verbiage, no other arguments to using other provided build systems will be considered.

Any exp-run has to be ran with the legacy option enabled. This is the FreeBSD ports tree where we have a diverse collection of software that is not necessarily always fully-updated or caught up to API/ABI changes. Yes, we should encourage keeping up-to-date, but it's ultimately up to each individual maintainer, both here and upstream. The legacy option buys time and reduces the supposed "obstruction" in that regard.

The Python package name for the child port is libxml2-python, not libxml2. Consumers to have PORTREVISION bumps separately.
Comment 39 Charlie Li freebsd_committer freebsd_triage 2025-02-27 23:34:49 UTC
Comment on attachment 258048 [details]
v13

And for the record, with autotools, the test suite ran via `make test` completely passes.
Comment 40 Daniel Engberg freebsd_committer freebsd_triage 2025-03-06 18:27:58 UTC
(In reply to Charlie Li from comment #39)
You have yet to show what acutally breaks instead of just throwing around words,  you're the only one obstructing similar to other PRs. Another exp-run is not need until 2.14 is out which is right around the corner and this way will skip a lot of ports as many also utilizes libxslt.
Comment 41 Daniel Engberg freebsd_committer freebsd_triage 2025-04-05 15:23:38 UTC
Created attachment 259342 [details]
Patch for libxml2 v14

Backport upstream commits 19de8b47b1fe4b87b06bc6b89f5ee9697870a0ad and 5f3ca31dbb33abda5807dbc2e36d47417f43ed02

Notable changes:

* Version script is removed upstream
https://gitlab.gnome.org/GNOME/libxml2/-/commit/eed1a07d055d9592f13f42e9cc786f9664e733a5

* Trailing null bytes are detected as errors
https://gitlab.gnome.org/GNOME/libxml2/-/issues/886

Issue(s) to monitor:
https://gitlab.gnome.org/GNOME/libxml2/-/issues/889

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/19de8b47b1fe4b87b06bc6b89f5ee9697870a0ad
https://gitlab.gnome.org/GNOME/libxml2/-/commit/5f3ca31dbb33abda5807dbc2e36d47417f43ed02
Comment 42 Daniel Engberg freebsd_committer freebsd_triage 2025-04-05 15:24:03 UTC
Created attachment 259343 [details]
Exp-run patch
Comment 43 Daniel Engberg freebsd_committer freebsd_triage 2025-04-05 15:24:55 UTC
Hi,

I'd like to request a new exp-run for 2.14-branch, patch is attched.

Thanks in advance!
Comment 44 Charlie Li freebsd_committer freebsd_triage 2025-04-05 15:38:26 UTC
(In reply to Daniel Engberg from comment #43)
Nope, not yet. ICU option needs to go, legacy option has to remain, Python child port name is still wrong. Also needs to be autotools still. In fact, since HTTP and LZMA are not part of the legacy option, may need to explore putting them in a legacy option group (enabled by default).
Comment 45 Daniel Engberg freebsd_committer freebsd_triage 2025-04-05 15:38:33 UTC
Comment on attachment 259343 [details]
Exp-run patch

Includes change suggested in PR 285738
Comment 46 Daniel Engberg freebsd_committer freebsd_triage 2025-04-05 16:05:06 UTC
(In reply to Charlie Li from comment #44)
I'm going to simply direct you to portmgr at this point since you show the same tendencies as in 271673.

ICU doesn't need to go and either way it doesn't affect the exp-run.
Comment 47 Charlie Li freebsd_committer freebsd_triage 2025-04-05 16:16:48 UTC
(In reply to Daniel Engberg from comment #46)
Reminder that you are not the maintainer of this port. There are actual technical issues that need addressing. Also should not be requesting exp-runs when there are known unresolved breakages that should be fixed first.

ICU was only implemented for exactly one use case: Chrome. As long as it still builds and our Chrome ports still need it, then it can stay but upstream does have it on the chopping block: https://gitlab.gnome.org/GNOME/libxml2/-/issues/819
Comment 48 Daniel Engberg freebsd_committer freebsd_triage 2025-04-05 16:55:04 UTC
(In reply to Charlie Li from comment #47)
It's not a requirement and even so everyone is free to join any group if you want to use that card. You have yet to turn your claims into something that's usable information. What breakage are you talking about that we don't already know about that isn't documented? You've been asked multiple times and have yet to provide information. We also want to preserve POLA which have been brought up several times during port renaming discussions.
Comment 49 Daniel Engberg freebsd_committer freebsd_triage 2025-04-14 18:00:49 UTC
Created attachment 259556 [details]
Patch for libxml2 v15

Fixes CVE-2025-32414

Backport upstream commits:
81f76df74f28a87680e3acbe8bfe5937b1315898
53d259454161eee801d22c56e08ea331b4c495b5

https://gitlab.gnome.org/GNOME/libxml2/-/commit/81f76df74f28a87680e3acbe8bfe5937b1315898
https://gitlab.gnome.org/GNOME/libxml2/-/commit/53d259454161eee801d22c56e08ea331b4c495b5
Comment 50 Daniel Engberg freebsd_committer freebsd_triage 2025-04-17 17:38:26 UTC
Created attachment 259641 [details]
Patch for libxml v16

Fixes CVE-2025-32415
Comment 51 Daniel Engberg freebsd_committer freebsd_triage 2025-04-19 07:06:58 UTC
Hi,

I'd like to request a new exp-run for the 2.14 series

Thanks in advance,
Daniel
Comment 52 Daniel Engberg freebsd_committer freebsd_triage 2025-04-29 20:16:25 UTC
@ portmgr
Ping?
Comment 53 Antoine Brodin freebsd_committer freebsd_triage 2025-04-29 22:07:21 UTC
(In reply to Daniel Engberg from comment #52)
ping what?  there are still plenty of PR depending on this.  And there are several exp-runs in the queue
Comment 54 Daniel Engberg freebsd_committer freebsd_triage 2025-04-30 03:14:47 UTC
(In reply to Antoine Brodin from comment #53)
I apologize after asking for an update after more than a week with no response.
The remaining ports are mostly leaf ports with patches that only works with newer versinos and/or will be sunset, we need to know what/if many major showstoppers remains.
Comment 55 Antoine Brodin freebsd_committer freebsd_triage 2025-04-30 06:57:33 UTC
(In reply to Daniel Engberg from comment #54)
An exp-run can take 1 week to complete and there are a few in the queue
Comment 56 Antoine Brodin freebsd_committer freebsd_triage 2025-05-06 15:19:16 UTC
Some new failure logs:

https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/mariadb1011-server-10.11.11.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/mariadb105-server-10.5.28.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/mariadb106-server-10.6.21.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/mariadb114-server-11.4.5_1.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/recoll-1.33.1_9.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/electron34-34.5.3.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/php81-pear-1.10.13.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/xeus-zmq-2.0.0_2.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/xmlcopyeditor-1.3.1.0_4.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/virtualbox-ose-6.1.50_12.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/virtualbox-ose-legacy-5.2.44_30.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/virtualbox-ose-nox11-6.1.50_12.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/virtualbox-ose-nox11-legacy-5.2.44_27.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/gnucash-5.11.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/armagetronad-0.2.8.3.5_4.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/librsvg2-2.40.21_4.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/rawstudio-2.0_27.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/openjfx14-14.0.2.1+1_16.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/py311-igraph-0.10.6_6.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/scilab-6.1.1_21.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/vcdimager-2.0.1_6.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/realmd-0.17.1_1.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/zabbix5-proxy-5.0.45.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/zabbix5-server-5.0.45.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/yazproxy-1.3.9_3.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/paraview-5.13.3.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/p5-XML-GDOME-0.86_5.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/xmlstarlet-1.6.1_4.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/redmine51-5.1.8.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/ungoogled-chromium-135.0.7049.114.log
https://pkg-status.freebsd.org/gohan04/data/134amd64-default-foo/2025-05-05_20h23m05s/logs/compiz-0.8.8_15.log
Comment 57 Don Lewis freebsd_committer freebsd_triage 2025-05-07 08:10:56 UTC
This seems to fix the x11/mate-terminal random build failure.

That said, I don't think that textproc/libxml2/files/patch-python_libxml.c is necessary.    It's commit history says:
-# Workaround https://bugzilla.gnome.org/show_bug.cgi?id=789714
-# Obtained from openSuse / Fedora

In that bug ticket:
Bug 789714 - crash: xmlParserPrintFileContextInternal mangles utf8
a similar fix is proposed. but comments 3 and 4 say a more complete fix should be done elsewhere in the code.

Discussion continues in this ticket:
https://gitlab.gnome.org/GNOME/libxml2/-/issues/64
This ticket was closed with this commit:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/76c6da420923f2721a2e16adfcef8707a2454a1b
which was included in the 2.11.0 release.
Comment 58 Daniel Engberg freebsd_committer freebsd_triage 2025-05-13 21:06:51 UTC
Created attachment 260387 [details]
Patch for libxml2 v17

Drop files/patch-python_libxml.c
Comment 59 Daniel Engberg freebsd_committer freebsd_triage 2025-05-15 21:42:16 UTC
Created attachment 260433 [details]
Patch for libxml2 v18

Backport upstream patches cb7ded125e67264974262b94b3eb5ec1b02dd87b and 71f6a71deead836d53f756df5babfc3e380e8701

https://gitlab.gnome.org/GNOME/libxml2/-/commit/cb7ded125e67264974262b94b3eb5ec1b02dd87b
https://gitlab.gnome.org/GNOME/libxml2/-/commit/71f6a71deead836d53f756df5babfc3e380e8701
Comment 60 Gleb Popov freebsd_committer freebsd_triage 2025-05-24 08:38:38 UTC
From what I gather after reading all the comments, there are several distinct concerns:

* CMake vs. autotools. I think we should stay with CMake now that port is already switched. I don't think we should switch it back and forth each time Charlie or Daniel does an upgrade. At the same time, I wasn't fond of switch to CMake to begin with, but I think this battle is over now.
* Enabling the "legacy" option. I didn't get it from Charlie's comments why we do need it, but I also see no reason to not enable it, if it would help at least Charlie.
* There is still quite a fallout from the update accroding to the last exp-run. I agree that it might be too demanding to ask Daniel to fix all of that himself, so maybe let's just wait until 2025Q3 is branched and fix what is possible to fix. This PR is taking too long already, so I'd rather push it and then fix the remaining stuff rather than waiting even more.

@Charlie
I feel like I'm sidestepping you on this, but unfortunately your reaction times is usually very long. I understand that you're busy with daily job, and I patiently waiting on glib and py-wheel cases, but it just isn't scalable. Sorry about that, but sometimes we need to move forward with maybe an imperfect solution rather than just sitting doing nothing.
Comment 61 Charlie Li freebsd_committer freebsd_triage 2025-05-24 12:33:47 UTC
(In reply to Gleb Popov from comment #60)
It has never been about perfection, it's about a baseline sense of correctness such that others (particularly upstream projects) outside of our project cannot easily blame us for their bugs, amongst other things.

cmake was absolutely the wrong choice. Upstream has always recommended autotools for "for POSIX systems like Linux, BSD, macOS", so that alone invalidates every other argument for any other build system. A previous iteration of the port using autotools may have used some local port patches, but that stemmed from a simple oversight which did not justify a wholesale build system switch on maintenance grounds. My autotools copy for this version (and previous versions before being superseded) did not need any local patches whatsoever. Additionally, cmake still has not achieved functionality parity with autotools. "They are receptive to improvements" is not an argument when autotools is still recommended.

LEGACY has to be an options group now, since prior to this version it included HTTP and LZMA support [0]. Between 2.12-2.13, LEGACY kept a lot more symbols on life support [1] that consumers needed (and time to evaluate and fix). Previous exp-runs would not have as much fallout and port updates committed sooner had there not been some outside insistence to omitting this option. While the aforementioned symbols are a moot point with this version now, there may still be consumers of HTTP, LZMA and zlib support out there, so if anything helps to remove a few exp-run fallout during this cycle without doing too much "extra" work, specifically with those consumers, we should be doing that.

[0] https://gitlab.gnome.org/GNOME/libxml2/-/commit/884c89969671d6daca3b08ddf99f3928d29216aa
[1] https://gitlab.gnome.org/GNOME/libxml2/-/commit/cdc5cfed0b16ef4e0d75f08aead39870e553b47e
Comment 62 Mathieu Arnold freebsd_committer freebsd_triage 2025-05-24 13:05:31 UTC
(In reply to Gleb Popov from comment #60)
On the cmake vs autotools, as Charlie says, upstream says to use autotools. The current crusade to move everything that can be to cmake really needs to stop.

The worst reason ever to go forward with a PR ever is "it's been open for too long". A PR will stay open and uncommitted for as long as it needs to be until everyone is satisfied. After a quick glance at the comment trail, the points to fix are switching back to autotools, and finish fixing the fallout.
Comment 63 Charlie Li freebsd_committer freebsd_triage 2025-05-24 13:08:42 UTC
Created attachment 260683 [details]
v18, autotools edition

LEGACY is an option group, since only zlib is part of the legacy option now. May need to re-run the exp-run with all of HTML, LZMA, ZLIB enabled since some consumers may still use them, which may reduce fallout somewhat.
Comment 64 Daniel Engberg freebsd_committer freebsd_triage 2025-05-24 15:08:08 UTC
Update: electron34 and ungoogled-chromium builds fine on 14.2-RELEASE (amd64) using current tree

Multiple committers including pkgmgr have tested and/or resolved issues reported, there's no benefit in throwing that away now. We need to move on as there are multiple CVEs and our current version is unsupported upstream. As far as building framework goes, upstream currently have Autotools, CMake and Meson in tree. Meson is the newest addition and it needs more work for be on par with the other ones. We've carried patches/hacks for Autotools for years which no one bothered to upstream or seemlingly wanting to spend time on upstreaming. Found issues with current soulution have been reported, resolved upstream and there have also been other benefits from it.

Either way, we should try to do a final push of fallouts and just move on after branching. 2.14.4 is probably released by then which contains a few fixes otherwise we can just backport. It would also be nice if we could include des@ PR ( https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/313 ) however it's not a showstopper.

Looking at other distros some add legacy but do not enable http and lzma support, the few fallouts from exp-runs have been resolved.
Comment 65 Daniel Engberg freebsd_committer freebsd_triage 2025-05-24 15:09:36 UTC
..and given that py-libxml2 is getting deprecated upstream there's very little benefit in renaming it at this point and breaking POLA.
Comment 66 Daniel Engberg freebsd_committer freebsd_triage 2025-05-24 15:12:43 UTC
Created attachment 260686 [details]
Patch for libxml2 v19

Backport upstream patches 9a8e9bf17a7ed0bd9b9bb7007ffcb7ba9893dcfc, 811cad9297912514a95b60534237925d80aa83b6 and c9fe8e1aa8b238aa41513501a445864afa894bc1

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/9a8e9bf17a7ed0bd9b9bb7007ffcb7ba9893dcfc
https://gitlab.gnome.org/GNOME/libxml2/-/commit/811cad9297912514a95b60534237925d80aa83b6
https://gitlab.gnome.org/GNOME/libxml2/-/commit/c9fe8e1aa8b238aa41513501a445864afa894bc1
Comment 67 Gleb Popov freebsd_committer freebsd_triage 2025-05-24 16:22:50 UTC
I presume Mat was speaking with portmgr@ hat on, so now there is no point in reuploading your patch over Charlie's one. It is now decided to switch the port back to Autotools. Can you please bring back Charlie's patch?
Comment 68 Daniel Engberg freebsd_committer freebsd_triage 2025-05-25 07:15:46 UTC
(In reply to Gleb Popov from comment #67)
No idea as it's not being clear. I'll resign in that case as I have no interest in spending my time re-testing, making sure things works (again) and this also removes some .cmake helpers. It's also good way of wasting peoples time given what everyone have been testing and working on during this whole time. If anything, switch it next version or possibly look into Meson (which Arch already adopted) if that for whatever reason sits better with people.

In general,

The claim "My autotools copy for this version (and previous versions before being superseded) did not need any local patches whatsoever." is debatable as fetching patches from GitLab instances frequently break due to metadata changes, that's not something new and previous versions did in fact include local patches.

"Previous exp-runs would not have as much fallout and port updates committed sooner had there not been some outside insistence to omitting this option." is dishonest given the amount of overall involvement in getting consumers ready and the fact that most failed to due other changes in upstream's code. www/webkit2-gtk* did get upgraded during this time which did fail however.

It now also pulls in USES= autoreconf and gmake which it didn't do before.
Comment 69 Charlie Li freebsd_committer freebsd_triage 2025-05-27 19:13:39 UTC
Created attachment 260743 [details]
v19, autotools edition

USES=gmake was always required when using autotools; the local patches that existed for Makefiles were specifically to work around GNUisms that errored in bmake. These are part of the aforementioned oversights that were never corrected and did not warrant a full-scale change to a different build system against upstream's recommendations, even if they include different ones for different purposes.

USES=autoreconf is required for at least this point release because a generated configure is no longer provided in the tarball.

Direct upstream commits *always* take precedence over local patches. Local patches are based on the state after distribution patches are applied.
Comment 70 Daniel Engberg freebsd_committer freebsd_triage 2025-05-31 17:23:20 UTC
Created attachment 260841 [details]
Patch for libxml2 v20

Backport upstream commits 509ea95aecabfaa7d8aafc1f84a85cf5d51f753b , acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0 and 65304b699b6f61bf59c004dbc99a7425151812ca

References:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/509ea95aecabfaa7d8aafc1f84a85cf5d51f753b
https://gitlab.gnome.org/GNOME/libxml2/-/commit/acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0
https://gitlab.gnome.org/GNOME/libxml2/-/commit/65304b699b6f61bf59c004dbc99a7425151812ca
Comment 71 Daniel Engberg freebsd_committer freebsd_triage 2025-05-31 17:30:20 UTC
(In reply to Charlie Li from comment #69)
Upstream release tarball ships with a configure script and so have previous versions. https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.3.tar.xz

What benefit is there in fetching patches if they break / cannot be verified due to checksum mismatch?
Comment 72 George Mitchell 2025-06-01 22:43:40 UTC
Patch from comment #70 applies cleanly for me and compiles with no problems.  I'm holding off on installing it because I'm in the middle of updating chromium (for the latest security fix), even though I'll have to recompile it anyway.  Thanks very much for all the work you have put into this!
Comment 73 George Mitchell 2025-06-02 19:03:28 UTC
Note for context: I use portmaster, not poudriere.  So after applying the 2025-05-27 patch, I had to be a little careful in choosing the order to recompile everything that uses libxml2, and after a couple of flubs, I did textproc/libxslt and textproc/py-libxml2 before starting on all the other affected ports.  They're still in progress but I'm optimistic.
Comment 74 George Mitchell 2025-06-02 23:24:27 UTC
I haven't yet been able to compile textproc/xmlstarlet with the patch applied, but I'm not using that port so I'm skipping it for now.  I've been postponing updating llvm19, but I'll try that tonight.  (Apparently I also need llvm14 to compile virtualbox-ose.)
Comment 75 Daniel Engberg freebsd_committer freebsd_triage 2025-06-03 05:30:03 UTC
(In reply to George Mitchell from comment #74)
Hi,

Have you tried applying patch in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279976 ?

xmlstarlet is since long abandoned upstream and only 5 ports are still using it so I guess you're using one of these? Worth noting is that net/asterisk* doesn't declare xmlstarlet as a (build) dependency but usage is at least patched.

security/gvmd
games/colobot
net/asterisk20
net/asterisk18
net/asterisk22

I've verified that all builds fine (gvmd shows qa error but unrelated to this change) except for net/asterisk18 that's still building as it pulls in llvm 14.

Best regards,
Daniel
Comment 76 Daniel Engberg freebsd_committer freebsd_triage 2025-06-03 05:33:26 UTC
(In reply to Daniel Engberg from comment #75)
xmlstarlet builds fine on 14.2-RELEASE (amd64), 13.5-RELEASE (i386 and amd64) at least using Poudriere with patch applied.
Comment 77 Dani I. 2025-06-03 11:00:46 UTC
May i ask, what the next steps about this update are? We'd like to quickly fix the open CVEs but there sadly aren't any patches for 2.11.9 and the upstream patches can't easily be applied either.
Comment 78 George Mitchell 2025-06-03 13:50:45 UTC
Trying to be a helpful user, I'll see what I can determine about all those "Depends on" bugs as soon as I get my own system in stable working order, which should be within a day and a half.  But I personally think that May 31 patch will mostly do the job, and I thank you, Daniel Engberg!
Comment 79 Daniel Engberg freebsd_committer freebsd_triage 2025-06-03 20:08:07 UTC
(In reply to Dani I. from comment #77)
Most known breakages are leaf ports and "not the end of world" if they break. java/openjfx14 is an exception however current version is ancient and from what I could gather having a quick look also have at least one low level known CVE.

Other than that overall testing would be highly appreciated (and feedback), 2.13+ is much more strict that our current legacy version so there might be some silent (runtime) breakage. If any there's a higher probability to occur with GUI (Desktop) related applications as the tree in general tend to carry ports that lag behind upstream and/or are abandoned projects. We do of course also have non GUI ports sharing the same issues but they're fewer.

With that being said, I've haven't experienced any so far but I'm using far from all affected ports.
Comment 80 Antoine Brodin freebsd_committer freebsd_triage 2025-06-05 12:51:47 UTC
New failure logs with patch v19 autotools edition:

https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/mariadb1011-server-10.11.11.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/mariadb105-server-10.5.28.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/mariadb106-server-10.6.21.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/mariadb114-server-11.4.5_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/recoll-1.33.1_10.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/php81-pear-1.10.13.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/virtualbox-ose-6.1.50_14.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/virtualbox-ose-legacy-5.2.44_31.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/virtualbox-ose-nox11-6.1.50_14.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/virtualbox-ose-nox11-legacy-5.2.44_27.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/armagetronad-0.2.8.3.5_4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/librsvg2-2.40.21_4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/rawstudio-2.0_27.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/openjfx14-14.0.2.1+1_16.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/py311-igraph-0.10.6_6.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/vcdimager-2.0.1_6.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/realmd-0.17.1_1.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/zabbix5-proxy-5.0.47.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/zabbix5-server-5.0.47.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/liblinphone-5.4.4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/p5-XML-GDOME-0.86_5.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/xmlstarlet-1.6.1_4.log
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/compiz-0.8.8_15.log
Comment 81 Juraj Lutter freebsd_committer freebsd_triage 2025-06-05 13:01:54 UTC
zabbix 5.0 will not be fixed as it will expire on 20250630.
Comment 82 George Mitchell 2025-06-05 18:23:32 UTC
The virtualbox-ose errors should be fixed now; see bug #287284.  I can compile virtualbox-ose-6.1 (etc.) here without problem.
Comment 83 George Mitchell 2025-06-07 20:17:09 UTC
Added a patch to fix x11-wm/compiz, bug #285906.
Comment 84 George Mitchell 2025-06-07 20:56:32 UTC
Added a patch to fix bug #279960, deskutils/recoll.
Comment 85 George Mitchell 2025-06-07 20:57:36 UTC
I took a look at bug #279961, math/py-igraph, but no fix yet.
Comment 86 Charlie Li freebsd_committer freebsd_triage 2025-06-10 17:48:39 UTC
(In reply to Antoine Brodin from comment #80)
- MariaDB: bug 285895
- recoll: bug 279960
- php81: bug 280153
- virtualbox-ose: bug 287284
- armagetronad: bug 285901
- I will look into librsvg2
- rawstudio: bug 281593
- openjfx14: bug 280158
- py-igraph: bug 279961
- vcdimager: bug 285893
- realmd: bug 286785
- zabbix5 is expiring (comment 81)
- liblinphone: ?
- p5-XML-GDOME: ?
- xmlstarlet: bug 279976
- compiz: bug 285906

None of these are from changing the build system, purely API changes.
Comment 87 Charlie Li freebsd_committer freebsd_triage 2025-06-10 18:16:16 UTC
Created attachment 261154 [details]
v20, autotools edition

Upstream commits in PATCH_FILES are fetched and used directly because that is where they come from, and our build process processes them as distribution patches before anything in ${PATCHDIR}. This allows matching the precise order that upstream committed them (since successive commits can modify the same file), preserves copyright and attribution per commit, and makes it easy on this end to add or remove commits as needed (like for updates). Patches in ${PATCHDIR} are to be based on the source state after PATCH_FILES are applied. The only checksum mismatches are either when the GNOME Project updates their GitLab instance where the patch file footers change across the board (mostly moot since the footer where the git version normally goes simply reads "GitLab" anymore), or repository growth necessitating displaying more characters in the short hash, so the contents can still be verified manually (before regenerating the checksums).

USES=autoreconf was a holdover from when configure.ac, Makefile.am et al needed local modifications; it is better to modify those and regenerate than modify the provided generated assets directly. I just forgot to remove USES=autoreconf when those modifications were removed.
Comment 88 Charlie Li freebsd_committer freebsd_triage 2025-06-10 18:25:06 UTC
Created attachment 261155 [details]
v21 (autotools)

finish chasing the bsd.sites.mk update

Regarding the Python port change: while there may be talk about deprecation upstream, we still have consumers. There are not many consumers so POLA hardly applies. Again, this rename/move is to follow the proper name of the Python package, as registered in a Python distribution (ie ${PYTHON_SITELIBDIR}),  "libxml2-python", not "libxml2".
Comment 89 Einar Bjarni Halldórsson 2025-06-12 09:20:14 UTC
(In reply to Charlie Li from comment #88)

This patch is missing pkg-descr for libxml2-python
Comment 90 Gunther Nikl 2025-06-12 16:49:58 UTC
(In reply to Einar Bjarni Halldórsson from comment #89)
> This patch is missing pkg-descr for libxml2-python
The pkg-descr file is not missing. The patch attached to comment #88 has to be applied with git:

diff --git a/textproc/py-libxml2/pkg-descr b/textproc/libxml2-python/pkg-descr
similarity index 100%
rename from textproc/py-libxml2/pkg-descr
rename to textproc/libxml2-python/pkg-descr
Comment 91 Einar Bjarni Halldórsson 2025-06-12 17:15:54 UTC
(In reply to Gunther Nikl from comment #90)

Oh, sorry. I did apply the patch with `git apply` but I had to edit the patch since it wouldn't apply cleanly to MOVED. I must have messed it up when I edited it.
Comment 92 Daniel Engberg freebsd_committer freebsd_triage 2025-06-16 18:02:00 UTC
Created attachment 261318 [details]
Patch for libxml2 v21
Comment 93 Einar Bjarni Halldórsson 2025-06-18 09:09:52 UTC
Would it make sense to move current libxml2 port to libxml211, commit the update for libxml2, and if there are any problem ports, they can migrate to using libxml211 until they can be fixed to work with 2.14+?
Comment 94 Michael Osipov freebsd_committer freebsd_triage 2025-06-18 09:12:14 UTC
(In reply to Einar Bjarni Halldórsson from comment #93)

But they won't be able to coexist...would they?
Comment 95 Einar Bjarni Halldórsson 2025-06-18 09:16:26 UTC
(In reply to Michael Osipov from comment #94)

No, you're right. It wouldn't work.

I've been deploying packages using the v20 patch for 2 weeks now without problems. ~700 packages built in poudriere
Comment 96 Daniel Engberg freebsd_committer freebsd_triage 2025-06-20 22:24:38 UTC
Created attachment 261452 [details]
Patch for libxml2 v22

Backport upstream patches 5700d989cc18889e1601c651ad69a41af8b32073 , d3e33dc214276498e73b61188be02b2863c9670a,  cf52139b4170be13b51b62da11c208dc66e6eff0 and 356542324fa439de544b5e419b91ae68d42c306c

Reference:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/5700d989cc18889e1601c651ad69a41af8b32073
https://gitlab.gnome.org/GNOME/libxml2/-/commit/d3e33dc214276498e73b61188be02b2863c9670a
https://gitlab.gnome.org/GNOME/libxml2/-/commit/cf52139b4170be13b51b62da11c208dc66e6eff0
https://gitlab.gnome.org/GNOME/libxml2/-/commit/356542324fa439de544b5e419b91ae68d42c306c
Comment 97 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-20 23:53:48 UTC
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-06-05_06h40m28s/logs/errors/librsvg2-2.40.21_4.log

graphics/librsvg2/files/patch-rsvg-css.c:
--- rsvg-css.c.orig     2018-10-01 22:50:22 UTC
+++ rsvg-css.c
@@ -839,7 +839,11 @@ static void
 }

 static void
+#if LIBXML_VERSION >= 21206
+rsvg_xml_noerror (void *data, const xmlErrorPtr error)
+#else
 rsvg_xml_noerror (void *data, xmlErrorPtr error)
+#endif
 {
 }
 
graphics/librsvg2/files/patch-rsvg-private.h:
--- rsvg-private.h.orig 2020-02-26 17:40:25 UTC
+++ rsvg-private.h
@@ -33,6 +33,7 @@

 #include <libxml/SAX.h>
 #include <libxml/xmlmemory.h>
+#include <libxml/tree.h>
 #include <pango/pango.h>
 #include <glib.h>
 #include <glib-object.h>

Need testing. I'll try to test it, but I don't know when I will be able to do it.
Comment 98 Don Lewis freebsd_committer freebsd_triage 2025-06-21 00:43:10 UTC
(In reply to Vladimir Druzenko from comment #97)
Are you sure?  I've had to use something more like:

-    static OUString make_error_message(xmlErrorPtr pError)
+#if LIBXML_VERSION >= 21200
+    static OUString make_error_message(const xmlError *pError)
+#else
+    static OUString make_error_message(xmlError *pError)
+#endif
Comment 99 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-21 00:56:00 UTC
(In reply to Don Lewis from comment #98)
I got this version "21206" from upstream of VirtualBox 7.x.
Comment 100 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-21 01:31:55 UTC
Look like 21200 is correct:
https://github.com/GNOME/libxml2/commit/61034116d0a3c8b295c6137956adc3ae55720711
Comment 101 Don Lewis freebsd_committer freebsd_triage 2025-06-21 03:07:50 UTC
(In reply to Vladimir Druzenko from comment #99)
When I tried that with OpenOffice, I got this compile error:

    
    .../unoxml/source/xpath/xpathapi.cxx:386:27: error: assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const _xmlError *)') from incompatible type 'void (void *, const xmlErrorPtr)' (aka 'void (void *, _xmlError *const)'): type mismatch at 2nd parameter ('const xmlError *' (aka 'const _xmlError *') vs 'const xmlErrorPtr' (aka '_xmlError *const'))
      386 |         xpathCtx->error = structured_error_func;
          |                           ^~~~~~~~~~~~~~~~~~~~~
    1 error generated.


If you have:
   const type *ptr1:
   typedef type *typeptr;
   const typeptr *ptr2;

ptr1 and ptr2 are different.  ptr1 may be modified, but the object it points to may not.  ptr2 may not be modified, but the object it points to is writeable.
Comment 102 Don Lewis freebsd_committer freebsd_triage 2025-06-21 03:14:36 UTC
(In reply to Vladimir Druzenko from comment #100)
My concern is the param type and not the version.
Comment 103 commit-hook freebsd_committer freebsd_triage 2025-06-21 14:11:20 UTC
A commit in branch main references this bug:

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

commit a18dfb61a2c96a01f9536d70ad0f69390981833d
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-06-21 12:38:19 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-06-21 14:09:31 +0000

    textproc/libxml2: Update to 2.14.4

    Fixes multiple CVEs:
    CVE-2025-32415
    CVE-2025-32414
    CVE-2025-27113
    CVE-2025-24928
    CVE-2024-56171

    Changelog: https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.14.4

    Backport upstream commits:
    19de8b47b1fe4b87b06bc6b89f5ee9697870a0ad
    5700d989cc18889e1601c651ad69a41af8b32073
    d3e33dc214276498e73b61188be02b2863c9670a
    cf52139b4170be13b51b62da11c208dc66e6eff0
    356542324fa439de544b5e419b91ae68d42c306c

    References:
    https://gitlab.gnome.org/GNOME/libxml2/-/commit/19de8b47b1fe4b87b06bc6b89f5ee9697870a0ad
    https://gitlab.gnome.org/GNOME/libxml2/-/commit/5700d989cc18889e1601c651ad69a41af8b32073
    https://gitlab.gnome.org/GNOME/libxml2/-/commit/d3e33dc214276498e73b61188be02b2863c9670a
    https://gitlab.gnome.org/GNOME/libxml2/-/commit/cf52139b4170be13b51b62da11c208dc66e6eff0
    https://gitlab.gnome.org/GNOME/libxml2/-/commit/356542324fa439de544b5e419b91ae68d42c306c

    PR:             279705, 287391
    Approved by:    ports-sec (tz) via PR 287391
    Exp-runs by:    antoine (previous iterations)

 textproc/libxml2/Makefile                          | 21 +++----
 textproc/libxml2/distinfo                          |  6 +-
 textproc/libxml2/files/patch-CMakeLists.txt (gone) | 33 ----------
 ...-19de8b47b1fe4b87b06bc6b89f5ee9697870a0ad (new) | 25 ++++++++
 ...-5700d989cc18889e1601c651ad69a41af8b32073 (new) | 39 ++++++++++++
 ...-d3e33dc214276498e73b61188be02b2863c9670a (new) | 25 ++++++++
 ...-cf52139b4170be13b51b62da11c208dc66e6eff0 (new) | 46 ++++++++++++++
 ...-356542324fa439de544b5e419b91ae68d42c306c (new) | 27 +++++++++
 textproc/libxml2/pkg-plist                         | 70 +---------------------
 textproc/py-libxml2/Makefile                       | 15 ++---
 10 files changed, 181 insertions(+), 126 deletions(-)
Comment 104 commit-hook freebsd_committer freebsd_triage 2025-06-21 14:11:27 UTC
A commit in branch main references this bug:

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

commit 111c861fe28ec58f350bcf102f5f9dc6a0a87b93
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-06-21 06:18:04 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-06-21 14:09:28 +0000

    graphics/librsvg2: Mark BROKEN

    Fails to build with libxml2 2.13+, error: unknown type name 'xmlParserCtxtPtr'

    PR:             279705

 graphics/librsvg2/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 105 commit-hook freebsd_committer freebsd_triage 2025-06-21 14:11:30 UTC
A commit in branch main references this bug:

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

commit 7ad9fa6d579830e296ac7ebb128a48344fa73a55
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-06-21 12:22:37 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-06-21 14:09:30 +0000

    net/liblinphone: Mark BROKEN

    Fails to build with libxml2 2.14, error: type 'union (unnamed union at /usr/local/include/libxml2/libxml/encoding.h:170:5)' does not provide a call operator

    PR:             279705

 net/liblinphone/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 106 commit-hook freebsd_committer freebsd_triage 2025-06-21 14:49:47 UTC
A commit in branch main references this bug:

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

commit 9010c59d1ce94c178f997b6c851154c850f4aff8
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-06-21 14:47:16 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-21 14:48:34 +0000

    Revert "textproc/libxml2: Update to 2.14.4"

    Commit goes way beyond strictly security purposes and is not approved
    by desktop@.

    PR: 279705

    This reverts commit a18dfb61a2c96a01f9536d70ad0f69390981833d.

 textproc/libxml2/Makefile                          | 21 ++++---
 textproc/libxml2/distinfo                          |  6 +-
 textproc/libxml2/files/patch-CMakeLists.txt (new)  | 33 ++++++++++
 ...19de8b47b1fe4b87b06bc6b89f5ee9697870a0ad (gone) | 25 --------
 ...5700d989cc18889e1601c651ad69a41af8b32073 (gone) | 39 ------------
 ...d3e33dc214276498e73b61188be02b2863c9670a (gone) | 25 --------
 ...cf52139b4170be13b51b62da11c208dc66e6eff0 (gone) | 46 --------------
 ...356542324fa439de544b5e419b91ae68d42c306c (gone) | 27 ---------
 textproc/libxml2/pkg-plist                         | 70 +++++++++++++++++++++-
 textproc/py-libxml2/Makefile                       | 15 +++--
 10 files changed, 126 insertions(+), 181 deletions(-)
Comment 107 Charlie Li freebsd_committer freebsd_triage 2025-06-21 14:57:39 UTC
Additional note about security in this software: upstream posted a notice on their README to clarify expectations, stating that security issues are treated as regular bugs. See https://gitlab.gnome.org/GNOME/libxml2/-/issues/913 for details.
Comment 108 Anton Saietskii 2025-06-21 15:05:31 UTC
(In reply to commit-hook from comment #106)

What about bumping PORTEPOCH?
Comment 109 Charlie Li freebsd_committer freebsd_triage 2025-06-21 15:11:21 UTC
(In reply to Anton Saietskii from comment #108)
That commit lasted for less than an hour and the package builders have not started yet. Ultimately this will get committed again but in a different manner, which I or another desktop@ member will handle directly.
Comment 110 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-21 17:54:23 UTC
(In reply to Don Lewis from comment #101)
Probably you are right, but as I said I didn't tested this yet.
Thanks for tips!
It would be much easier for me to debug this patch if this libxml update was in the ports tree.
Comment 111 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-21 18:01:10 UTC
(In reply to Don Lewis from comment #101)
> If you have:
>   const type *ptr1:
>   typedef type *typeptr;
>   const typeptr *ptr2;
Maybe:
   const typeptr ptr2;
?
Comment 112 Don Lewis freebsd_committer freebsd_triage 2025-06-22 06:00:12 UTC
(In reply to Vladimir Druzenko from comment #111)
Sorry, that was what I had intended to type.
Comment 113 Don Lewis freebsd_committer freebsd_triage 2025-06-22 06:06:26 UTC
(In reply to Vladimir Druzenko from comment #111)

Something like:
    typedef const type *consttypeptr;
    consttypeptr ptr3;
might work, but libxml2 doesn't provide that typedef.
Comment 114 Mikael Urankar freebsd_committer freebsd_triage 2025-06-25 09:20:53 UTC
(In reply to commit-hook from comment #106)
Now that you have reverted this update, how much longer do we have to wait for a supported, up-to-date version of libxml?

@desktop, can we move on and commit Daniel's update?
Comment 115 Matthias Andree freebsd_committer freebsd_triage 2025-06-25 09:50:05 UTC
(In reply to Charlie Li from comment #109)
What's your timeline? 

If you cannot commit to something that's due in well before 20252Q3, we ought to commit Daniel's update instead, and tweak to desktop@s decoration preferences later. 

We can't branch 2025Q3 with dead code if the same project has supported version.  Your own words are to go with what upstream does, and that first and foremost deals with actual source code.
Comment 116 Charlie Li freebsd_committer freebsd_triage 2025-06-25 14:24:46 UTC
(In reply to Mikael Urankar from comment #114)
It will land again at some point before the new quarterly branches. It will revert to autotools however. There are still open bugs on consumers that still need checked (marking BROKEN out of frustration doesn't cut it).
Comment 117 Matthias Andree freebsd_committer freebsd_triage 2025-06-25 14:26:48 UTC
We can't achieve perfection, so upgrade now and polish later. We have accepted arguments that the few ports can temporarily be broken.

What's your timeline? Concretely?
Comment 118 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-25 14:37:14 UTC
I need time after this update to unbreak java/openjfx14 and graphics/librsvg2 - may be 2-3 days (depends on "real-life").
Comment 119 Matthias Andree freebsd_committer freebsd_triage 2025-06-25 15:12:42 UTC
diizzy@ commented on both already.  librsvg2 is not a priority for the ports tree, and OpenJFX14 with six dependents doesn't look like we should stop the world from moving either, and both seems doable.
Comment 120 Mikael Urankar freebsd_committer freebsd_triage 2025-06-25 15:15:47 UTC
(In reply to Vladimir Druzenko from comment #118)
Are you aware that these ports have been dead for a long time. The only useful action is to set an expiration date and let them go.
Comment 121 Mikael Urankar freebsd_committer freebsd_triage 2025-06-25 15:16:27 UTC
(In reply to Charlie Li from comment #116)
Which ports / pr ?
Comment 122 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-25 15:29:10 UTC
As I said I need time _AFTER_ this update committed. But before 2025Q3.
I can't test patches from private ports tree - it takes too long to rebuild everything several times.
Therefore, I also ask for a more precise commit date and for it to be at least 2-3 days before the creation of 2025Q3.
Comment 123 Daniel Engberg freebsd_committer freebsd_triage 2025-06-25 16:29:34 UTC
(In reply to Charlie Li from comment #116)
You've yet again proven that there's no progress (you claimed to look into librsvg2 2 weeks ago, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279705#c86). We have people willing to look into some of the remaining ones once 2.14.4 lands and as Mikael have pointed out they're also considered "dead". To be more precise, librsvg2 is unsupported upstream because they've moved on (with Rust) and we have a recent version in tree which also is the default. OpenJFX is unsupported and outdated, even if we were to pull in a recent supported version, figure out what patches still are relevant and so on it's likely that consumers also needs updating etc but again, neither of the remaining ones are crucial compared the amount of affected (high profile) ports. Given the time PRs have been open we can also likely assume that overall interest is low.

Other members have also raised their concerns about lead times in other areas,
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279705#c60
Comment 124 Kurt Jaeger freebsd_committer freebsd_triage 2025-06-25 17:14:56 UTC
See the article on libxml2 at lwn.net:
https://lwn.net/SubscriberLink/1025971/14f8a882a606fd57/
Comment 125 George Mitchell 2025-06-25 23:10:17 UTC
Just a random user here, but count me in favor of committing this update soon.
Comment 126 commit-hook freebsd_committer freebsd_triage 2025-06-26 02:20:28 UTC
A commit in branch main references this bug:

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

commit 9acdf260eddc1fed2be63fca0115fb19ddaa1f4f
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-06-26 02:12:21 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-26 02:18:38 +0000

    graphics/librsvg2: fix build with newer libxml2

    - explicitly #include <libxml/tree.h>, probably from <libxml/SAX.h> before
    - account for changed xmlStructuredErrorFunc typedef in <libxml/xmlerror.h>

    While here, cosmetic ordering and fix gtk-doc typo; bump PORTREVISION
    for that.

    PR: 279705
    Co-authored-by: vvd

 graphics/librsvg2/Makefile                         | 38 +++++++++++-----------
 graphics/librsvg2/distinfo                         |  6 ++--
 graphics/librsvg2/files/patch-rsvg-css.c (new)     | 14 ++++++++
 graphics/librsvg2/files/patch-rsvg-private.h (new) | 10 ++++++
 4 files changed, 46 insertions(+), 22 deletions(-)
Comment 127 Mikael Urankar freebsd_committer freebsd_triage 2025-06-26 15:13:39 UTC
(In reply to Mikael Urankar from comment #121)
ping ?
Comment 128 Matthias Andree freebsd_committer freebsd_triage 2025-06-28 14:19:28 UTC
Irrelevant distractions, such as non-rust librsvg2 without users:

$ git log 9010c59d1ce94c178f997b6c851154c850f4aff8..origin/main --committer vishwin@ --pretty=oneline | tail -r
516ddee744c94bccd75edf2e571a8c04dd96084c security/vuxml: adjust affected textproc/libxml2 versions
fb3e1d5f3dd216ef419a40570c1a97f1ee28a47f textproc/libxml2: backport upstream commits fixing CVEs

31f5befbe383575c6318156a6f12c612d8e207a7 x11/xcb-proto: list Python bytecode directly in plist
486398d9219670b6da31d62207cd5e9e669c349b devel/glib20: remove unused USE_PYTHON=py3kplist
05b2c89250cdb2b5c8bc61e43e56f5c1d9398ff8 sysutils/py-azure-cli-base: list bytecode directly in plist
6831f6afeb3eb77913b171aa4b2ca2872d2407f2 devel/py-dbus: list bytecode directly in plist
9acdf260eddc1fed2be63fca0115fb19ddaa1f4f graphics/librsvg2: fix build with newer libxml2
c4743dd6da54850c1de14f91aa2ba76f47e33ce8 net/libproxy: pull in two upstream commits addressing non-GNU linkers
770150b5fa385ede2df62a799177a95b674298f6 lang/spidermonkey128: update to 128.12.0
Comment 129 Charlie Li freebsd_committer freebsd_triage 2025-06-28 17:03:47 UTC
There's nothing stopping anyone from looking into things before landing.

Non-rust librsvg2 is still an option in bsd.default-versions.mk, which gives it over 100 consumers when selected. As long as it remains an option, particularly because not every platform or emulation for the same can build or use rust, it has to be able to build to give those cases a fighting chance to have some semblance of a desktop (amongst other things). This is desktop@ after all.

However, the point is more about checking for the impact of skipped ports overall. I had to go back through every email pertaining to this bug around the time of the commit-then-revert just to check for this. Thankfully apart from librsvg2 the impact is minimal, with some cases aiming to deal with the fallout after commit. However I did not appreciate having to do all that, but it was necessary.

For the umpteenth time, this has never been about perfection. Otherwise this would be held back further.
Comment 130 Charlie Li freebsd_committer freebsd_triage 2025-06-28 17:06:49 UTC
Created attachment 261704 [details]
v22 (autotools)

Only two bug-fix upstream commits are included. The others included in the cmake version deal with cmake shortcomings that are otherwise irrelevant.

I will commit this after a last-minute test build of this exact port finishes.
Comment 131 Charlie Li freebsd_committer freebsd_triage 2025-06-28 17:15:21 UTC
Created attachment 261706 [details]
v23 (autotools)

do not use ${PORTNAME} in PATCH_SITES, because ${PORTNAME} is redefined in the child port
Comment 132 commit-hook freebsd_committer freebsd_triage 2025-06-28 17:34:43 UTC
A commit in branch main references this bug:

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

commit 4787aa27c29ece2241f9a5fdcdf2c3e42522c5ea
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-06-28 17:20:54 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-28 17:33:41 +0000

    textproc/libxml2-python: bump consumer PORTREVISIONs after move

    PR: 279705

 deskutils/virt-manager/Makefile | 1 +
 textproc/itstool/Makefile       | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Comment 133 commit-hook freebsd_committer freebsd_triage 2025-06-28 17:34:47 UTC
A commit in branch main references this bug:

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

commit 571565734d6e39acfcc11b043f3c105d1024f5b7
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-06-28 17:14:03 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-28 17:33:36 +0000

    textproc/libxml2: update to 2.14.4

    Changelog: https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.14.4/NEWS

    textproc/py-libxml2 child port is moved to textproc/libxml2-python
    to match the Python package name upstream specified; it now USES=python
    to build after do-configure. Consumers adjusted to match.

    Includes two bug-fix commits.

    PR: 279705

 MOVED                                              |  1 +
 deskutils/virt-manager/Makefile                    |  2 +-
 textproc/Makefile                                  |  2 +-
 textproc/itstool/Makefile                          |  4 +-
 textproc/libxml2-python/Makefile (new)             | 32 +++++++++
 textproc/{py-libxml2 => libxml2-python}/pkg-descr  |  0
 textproc/libxml2/Makefile                          | 77 ++++++++++----------
 textproc/libxml2/distinfo                          | 16 ++---
 textproc/libxml2/files/patch-CMakeLists.txt (gone) | 33 ---------
 textproc/libxml2/files/patch-uri.c (gone)          | 25 -------
 textproc/libxml2/pkg-plist                         | 82 ++--------------------
 textproc/py-libxml2/Makefile (gone)                | 32 ---------
 textproc/py-libxml2/pkg-plist (gone)               |  7 --
 13 files changed, 90 insertions(+), 223 deletions(-)
Comment 134 Charlie Li freebsd_committer freebsd_triage 2025-06-28 17:49:11 UTC
Won't allow CLOSED FIXED without closing or removing the remaining open dependent bugs, but this is committed, again.
Comment 135 Mikael Urankar freebsd_committer freebsd_triage 2025-06-28 19:25:06 UTC
(In reply to Mikael Urankar from comment #127)
Yet another ping ?
Comment 136 Daniel Engberg freebsd_committer freebsd_triage 2025-06-28 19:40:06 UTC
(In reply to Charlie Li from comment #134)
Since you've obstructed this long enough you can at least finish it up by marking the remaining PRs related PRs as broken.
Comment 137 Ale 2025-06-29 05:41:07 UTC
(In reply to commit-hook from comment #133)
...
--- a/textproc/libxml2/pkg-plist
+++ b/textproc/libxml2/pkg-plist
...
 lib/libxml2.so
-lib/libxml2.so.2
-lib/libxml2.so.%%LIBVERSION%%
+lib/libxml2.so.16
+lib/libxml2.so.16.0.4
...

what about dependent ports?

It seems that I have to rebuild the following:
AppStream-1.0.5_1              devel/appstream
atril-1.28.1_3                 graphics/atril
audacious-plugins-gtk3-4.4.2_3 multimedia/audacious-plugins
caja-1.28.0_1                  x11-fm/caja
eom-1.28.0_1                   graphics/eom
geany-plugin-pretty-printer-2.0 devel/geany-plugin-pretty-printer
glade-3.40.0_5                 devel/glade
gnote-47.2                     deskutils/gnote
gstreamer1-plugins-good-1.26.2 multimedia/gstreamer1-plugins-good
gtksourceview4-4.8.4           x11-toolkits/gtksourceview4
libgphoto2-2.5.31              graphics/libgphoto2
libmateweather-1.28.0          net/libmateweather
librsvg2-rust-2.60.0_2         graphics/librsvg2-rust
libsoup-2.74.3                 devel/libsoup
libxkbcommon-1.8.1_2           x11/libxkbcommon
libxklavier-5.3_3,1            x11/libxklavier
libxslt-1.1.43                 textproc/libxslt
llvm15-15.0.7_10               devel/llvm15
llvm17-17.0.6_8                devel/llvm17
llvm19-19.1.7_1                devel/llvm19
mate-applets-1.28.1_1          x11/mate-applets
mate-calc-1.28.0               math/mate-calc
mate-control-center-1.28.1_2   sysutils/mate-control-center
mate-media-1.28.1              audio/mate-media
mate-notification-daemon-1.28.3_1 deskutils/mate-notification-daemon
mate-system-monitor-1.28.1     sysutils/mate-system-monitor
pluma-1.28.0_1                 editors/pluma
py311-lxml-4.9.3_1             devel/py-lxml
shared-mime-info-2.4_1         misc/shared-mime-info
vlc-3.0.21_17,4                multimedia/vlc
wayland-1.23.1                 graphics/wayland
webkit2-gtk_40-2.46.6          www/webkit2-gtk@40
webkit2-gtk_41-2.46.6          www/webkit2-gtk@41
yelp-42.3                      x11/yelp
Comment 138 Mikael Urankar freebsd_committer freebsd_triage 2025-06-29 09:50:00 UTC
(In reply to Charlie Li from comment #116)
rust is only missing on riscv64. I don't expect anyone running a desktop on this arch given the poor hardware available.
For other arches, we provide binary packages for more than ten years now so people don't have to build ports on their machine.

So you basically reverted a perfectly fine commit for no valid reason : openjfx is dead and librsvg2 definitely not as important as you might think

Do you realize the message you send to contributors (whether they are FreeBSD committers or not)? Don't touch my port, I'm not a team player
and I don't care of your work. This is really not respectful and you should really change your attitude.

And thanks for ignoring my mail (c121 c127 c135)
Comment 139 George Mitchell 2025-07-15 14:00:52 UTC
Okay, I'm at a loss to understand the conflicting messages about what is or is not supported upstream.  On my machines, DOZENS of packages depend on libxml2 and libxslt, and it's very hard for me to believe that someone, somewhere isn't supporting these libraries upstream from us.  I'm willing to help get those changes brought into our ecosystem, but I need advice about what is needed and how to avoid stepping on anyone's toes.
Comment 140 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2025-07-15 15:50:24 UTC
(In reply to George Mitchell from comment #139)

There was a security fix published by upstream and just committed by us:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288242
Comment 141 George Mitchell 2025-07-15 17:44:46 UTC
Thanks for the libxml2 update.  The vulnerability database claims libxslt-1.1.43_1 is also compromised; any prospect of an update there?
Comment 142 George Mitchell 2025-07-18 14:22:43 UTC
Filed bug #288306 to anticipate the release of libxslt 1.1.44, which might come one of these days.