notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details on branch 2025Q2
py-libxml2 Python interface for XML parser library for GNOME
2.11.9_3 textproc on this many watch lists=0 search for ports that depend on this port An older version of this port was marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.11.9_3Version of this port present on the latest quarterly branch.
Maintainer: desktop@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-05-23 22:27:04
Last Update: 2025-06-22 17:00:00
Commit Hash: 42eb509
Also Listed In: gnome python
License: MIT
WWW:
http://xmlsoft.org/
Description:
Python interface for XML parser library for GNOME
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}libxml2>0:textproc/py-libxml2@${PY_FLAVOR}
To install the port:
cd /usr/ports/textproc/py-libxml2/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/py-libxml2
  • pkg install py311-libxml2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-libxml2 listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-libxml2
Package flavors (<flavor>: <package>)
  • py311: py311-libxml2
distinfo:
TIMESTAMP = 1750532030 SHA256 (gnome/libxml2-2.11.9.tar.xz) = 780157a1efdb57188ec474dca87acaee67a3a839c2525b2214d318228451809f SIZE (gnome/libxml2-2.11.9.tar.xz) = 2627500

Expand this list (6 items)

Collapse this list.

SHA256 (gnome/245b70d7d2768572ae1b05b3668ca858b9ec4ed4.patch) = 5fb5bed3c40fee5ecb60dbf96fd6c5071f08a54487f534540c54bc9cb6d5b16e SIZE (gnome/245b70d7d2768572ae1b05b3668ca858b9ec4ed4.patch) = 1273 SHA256 (gnome/858ca26c0689161a6b903a6682cc8a1cc10a0ea8.patch) = e3585a9e59f3146a53a1091fd00378e81676a824feab037cd8d71807cea73c73 SIZE (gnome/858ca26c0689161a6b903a6682cc8a1cc10a0ea8.patch) = 1806 SHA256 (gnome/d7657811964eac1cb9743bb98649278ad948f0d2.patch) = 3d7e10866d8be511da64bee6a998c4f68785326bf0d403af7be6745830d9bca2 SIZE (gnome/d7657811964eac1cb9743bb98649278ad948f0d2.patch) = 2526

Collapse this list.


No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Master port: textproc/libxml2
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. python3.11 : lang/python311
  2. cmake : devel/cmake-core
  3. ninja : devel/ninja
  4. pkgconf>=1.3.0_1 : devel/pkgconf
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
Library dependencies:
  1. libxml2.so : textproc/libxml2
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
textproc_py-libxml2
USES:
gnome python shebangfix cmake:testing cpe iconv localbase:ldflags pathfix pkgconfig tar:xz
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (10 items)
Collapse this list.
  1. ftp://ftp.belnet.be/mirror/ftp.gnome.org/gnomeftp/sources/libxml2/2.11/
  2. ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/libxml2/2.11/
  3. ftp://ftp.kddlabs.co.jp/pub/GNOME/sources/libxml2/2.11/
  4. ftp://ftp.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/libxml2/2.11/
  5. ftp://ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/libxml2/2.11/
  6. http://ftp.belnet.be/mirror/ftp.gnome.org/gnomeftp/sources/libxml2/2.11/
  7. https://download.gnome.org/sources/libxml2/2.11/
  8. https://fr2.rpmfind.net/linux/gnome.org/sources/libxml2/2.11/
  9. https://ftp.acc.umu.se/pub/GNOME/sources/libxml2/2.11/
  10. https://gitlab.gnome.org/GNOME/libxml2/-/archive/2.11.9/
Collapse this list.

Number of commits found: 2

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
This is a slave port. You may also want to view the commits to the master port: textproc/libxml2
CommitCreditsLog message
2.11.9_3
22 Jun 2025 17:00:00
commit hash: 42eb50947ae2250b300d5d185a9a2625d211f27ccommit hash: 42eb50947ae2250b300d5d185a9a2625d211f27ccommit hash: 42eb50947ae2250b300d5d185a9a2625d211f27ccommit hash: 42eb50947ae2250b300d5d185a9a2625d211f27c files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
textproc/libxml2: backport upstream commits fixing CVEs

[CVE-2024-56171] Fix use-after-free after xmlSchemaItemListAdd
[CVE-2025-24928] Fix stack-buffer-overflow in xmlSnprintfElements
[CVE-2025-32414] python: Read at most len/4 characters.

PR: 287391
(cherry picked from commit fb3e1d5f3dd216ef419a40570c1a97f1ee28a47f)
2.11.9_2
23 May 2025 22:23:25
commit hash: 0b3da26d11cf4048be6143b8b8684d737d0160abcommit hash: 0b3da26d11cf4048be6143b8b8684d737d0160abcommit hash: 0b3da26d11cf4048be6143b8b8684d737d0160abcommit hash: 0b3da26d11cf4048be6143b8b8684d737d0160ab files touched by this commit This port version is marked as vulnerable.
Don Lewis (truckman) search for other commits by this committer
textproc/py-pylibxml2: rm patch that scans garbage

Remove a local patch that scans stack garbage for a pattern and then uses
the pointer after the array has been filled with actual data.  This can
cause random segfaults.

The patch is under textproc/libxml2, but the patched file is only used by
textproc/py-pylibxml2.

The UTF-8 issue this was intended to fix was fixed upstream in a more
comprehensive way in 2.11.0 with this commit:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/76c6da420923f2721a2e16adfcef8707a2454a1b

PR:		286439 279034
Approved by:	desktop (makc)
Tested by:	vvd
MFH:		2025Q2

(cherry picked from commit d5b2d60fc76964a3e5b8f50d2992bd751f688f04)

Number of commits found: 2