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

Bot filter coming soon

To deter bots pegging the database CPU to 100%, a bot testing filter to be added to the website. This should not affect newsfeeds etc. Anubis seems light-weight - it is already in use within the FreeBSD Project. This notice is just a heads up in case you see something odd. This notice will be updated after Anubis is installed.

Port details on branch 2025Q2
libxml2 XML parser library for GNOME
2.11.9_1 textproc on this many watch lists=0 search for ports that depend on this port This port version is marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.14.5Version 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
License: MIT
WWW:
http://xmlsoft.org/
Description:
Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform). XML itself is a metalanguage to design markup languages, i.e. text language where semantic and structure are added to the content using extra "markup" information enclosed between angle brackets.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (189 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/libxml2-2.11.9_1/catalog.mk
  3. /usr/local/share/licenses/libxml2-2.11.9_1/LICENSE
  4. /usr/local/share/licenses/libxml2-2.11.9_1/MIT
  5. bin/xml2-config
  6. bin/xmlcatalog
  7. bin/xmllint
  8. include/libxml2/libxml/HTMLparser.h
  9. include/libxml2/libxml/HTMLtree.h
  10. include/libxml2/libxml/SAX.h
  11. include/libxml2/libxml/SAX2.h
  12. include/libxml2/libxml/c14n.h
  13. include/libxml2/libxml/catalog.h
  14. include/libxml2/libxml/chvalid.h
  15. include/libxml2/libxml/debugXML.h
  16. include/libxml2/libxml/dict.h
  17. include/libxml2/libxml/encoding.h
  18. include/libxml2/libxml/entities.h
  19. include/libxml2/libxml/globals.h
  20. include/libxml2/libxml/hash.h
  21. include/libxml2/libxml/list.h
  22. include/libxml2/libxml/nanoftp.h
  23. include/libxml2/libxml/nanohttp.h
  24. include/libxml2/libxml/parser.h
  25. include/libxml2/libxml/parserInternals.h
  26. include/libxml2/libxml/pattern.h
  27. include/libxml2/libxml/relaxng.h
  28. include/libxml2/libxml/schemasInternals.h
  29. include/libxml2/libxml/schematron.h
  30. include/libxml2/libxml/threads.h
  31. include/libxml2/libxml/tree.h
  32. include/libxml2/libxml/uri.h
  33. include/libxml2/libxml/valid.h
  34. include/libxml2/libxml/xinclude.h
  35. include/libxml2/libxml/xlink.h
  36. include/libxml2/libxml/xmlIO.h
  37. include/libxml2/libxml/xmlautomata.h
  38. include/libxml2/libxml/xmlerror.h
  39. include/libxml2/libxml/xmlexports.h
  40. include/libxml2/libxml/xmlmemory.h
  41. include/libxml2/libxml/xmlmodule.h
  42. include/libxml2/libxml/xmlreader.h
  43. include/libxml2/libxml/xmlregexp.h
  44. include/libxml2/libxml/xmlsave.h
  45. include/libxml2/libxml/xmlschemas.h
  46. include/libxml2/libxml/xmlschemastypes.h
  47. include/libxml2/libxml/xmlstring.h
  48. include/libxml2/libxml/xmlunicode.h
  49. include/libxml2/libxml/xmlversion.h
  50. include/libxml2/libxml/xmlwriter.h
  51. include/libxml2/libxml/xpath.h
  52. include/libxml2/libxml/xpathInternals.h
  53. include/libxml2/libxml/xpointer.h
  54. lib/cmake/libxml2-2.11.9/libxml2-config-version.cmake
  55. lib/cmake/libxml2-2.11.9/libxml2-config.cmake
  56. lib/cmake/libxml2-2.11.9/libxml2-export-release.cmake
  57. lib/cmake/libxml2-2.11.9/libxml2-export.cmake
  58. lib/libxml2.so
  59. lib/libxml2.so.2
  60. lib/libxml2.so.2.11.9
  61. libdata/pkgconfig/libxml-2.0.pc
  62. share/man/man1/xml2-config.1.gz
  63. share/man/man1/xmlcatalog.1.gz
  64. share/man/man1/xmllint.1.gz
  65. share/aclocal/libxml.m4
  66. share/doc/libxml2/devhelp/general.html
  67. share/doc/libxml2/devhelp/home.png
  68. share/doc/libxml2/devhelp/index.html
  69. share/doc/libxml2/devhelp/left.png
  70. share/doc/libxml2/devhelp/libxml2-HTMLparser.html
  71. share/doc/libxml2/devhelp/libxml2-HTMLtree.html
  72. share/doc/libxml2/devhelp/libxml2-SAX.html
  73. share/doc/libxml2/devhelp/libxml2-SAX2.html
  74. share/doc/libxml2/devhelp/libxml2-c14n.html
  75. share/doc/libxml2/devhelp/libxml2-catalog.html
  76. share/doc/libxml2/devhelp/libxml2-chvalid.html
  77. share/doc/libxml2/devhelp/libxml2-debugXML.html
  78. share/doc/libxml2/devhelp/libxml2-dict.html
  79. share/doc/libxml2/devhelp/libxml2-encoding.html
  80. share/doc/libxml2/devhelp/libxml2-entities.html
  81. share/doc/libxml2/devhelp/libxml2-globals.html
  82. share/doc/libxml2/devhelp/libxml2-hash.html
  83. share/doc/libxml2/devhelp/libxml2-list.html
  84. share/doc/libxml2/devhelp/libxml2-nanoftp.html
  85. share/doc/libxml2/devhelp/libxml2-nanohttp.html
  86. share/doc/libxml2/devhelp/libxml2-parser.html
  87. share/doc/libxml2/devhelp/libxml2-parserInternals.html
  88. share/doc/libxml2/devhelp/libxml2-pattern.html
  89. share/doc/libxml2/devhelp/libxml2-relaxng.html
  90. share/doc/libxml2/devhelp/libxml2-schemasInternals.html
  91. share/doc/libxml2/devhelp/libxml2-schematron.html
  92. share/doc/libxml2/devhelp/libxml2-threads.html
  93. share/doc/libxml2/devhelp/libxml2-tree.html
  94. share/doc/libxml2/devhelp/libxml2-uri.html
  95. share/doc/libxml2/devhelp/libxml2-valid.html
  96. share/doc/libxml2/devhelp/libxml2-xinclude.html
  97. share/doc/libxml2/devhelp/libxml2-xlink.html
  98. share/doc/libxml2/devhelp/libxml2-xmlIO.html
  99. share/doc/libxml2/devhelp/libxml2-xmlautomata.html
  100. share/doc/libxml2/devhelp/libxml2-xmlerror.html
  101. share/doc/libxml2/devhelp/libxml2-xmlexports.html
  102. share/doc/libxml2/devhelp/libxml2-xmlmemory.html
  103. share/doc/libxml2/devhelp/libxml2-xmlmodule.html
  104. share/doc/libxml2/devhelp/libxml2-xmlreader.html
  105. share/doc/libxml2/devhelp/libxml2-xmlregexp.html
  106. share/doc/libxml2/devhelp/libxml2-xmlsave.html
  107. share/doc/libxml2/devhelp/libxml2-xmlschemas.html
  108. share/doc/libxml2/devhelp/libxml2-xmlschemastypes.html
  109. share/doc/libxml2/devhelp/libxml2-xmlstring.html
  110. share/doc/libxml2/devhelp/libxml2-xmlunicode.html
  111. share/doc/libxml2/devhelp/libxml2-xmlversion.html
  112. share/doc/libxml2/devhelp/libxml2-xmlwriter.html
  113. share/doc/libxml2/devhelp/libxml2-xpath.html
  114. share/doc/libxml2/devhelp/libxml2-xpathInternals.html
  115. share/doc/libxml2/devhelp/libxml2-xpointer.html
  116. share/doc/libxml2/devhelp/libxml2.devhelp2
  117. share/doc/libxml2/devhelp/right.png
  118. share/doc/libxml2/devhelp/style.css
  119. share/doc/libxml2/devhelp/up.png
  120. share/doc/libxml2/examples/index.html
  121. share/doc/libxml2/examples/io1.c
  122. share/doc/libxml2/examples/io2.c
  123. share/doc/libxml2/examples/parse1.c
  124. share/doc/libxml2/examples/parse2.c
  125. share/doc/libxml2/examples/parse3.c
  126. share/doc/libxml2/examples/parse4.c
  127. share/doc/libxml2/examples/reader1.c
  128. share/doc/libxml2/examples/reader2.c
  129. share/doc/libxml2/examples/reader3.c
  130. share/doc/libxml2/examples/reader4.c
  131. share/doc/libxml2/examples/testWriter.c
  132. share/doc/libxml2/examples/tree1.c
  133. share/doc/libxml2/examples/tree2.c
  134. share/doc/libxml2/examples/xpath1.c
  135. share/doc/libxml2/examples/xpath2.c
  136. share/doc/libxml2/tutorial/apa.html
  137. share/doc/libxml2/tutorial/apb.html
  138. share/doc/libxml2/tutorial/apc.html
  139. share/doc/libxml2/tutorial/apd.html
  140. share/doc/libxml2/tutorial/ape.html
  141. share/doc/libxml2/tutorial/apf.html
  142. share/doc/libxml2/tutorial/apg.html
  143. share/doc/libxml2/tutorial/aph.html
  144. share/doc/libxml2/tutorial/api.html
  145. share/doc/libxml2/tutorial/ar01s02.html
  146. share/doc/libxml2/tutorial/ar01s03.html
  147. share/doc/libxml2/tutorial/ar01s04.html
  148. share/doc/libxml2/tutorial/ar01s05.html
  149. share/doc/libxml2/tutorial/ar01s06.html
  150. share/doc/libxml2/tutorial/ar01s07.html
  151. share/doc/libxml2/tutorial/ar01s08.html
  152. share/doc/libxml2/tutorial/ar01s09.html
  153. share/doc/libxml2/tutorial/images/blank.png
  154. share/doc/libxml2/tutorial/images/callouts/1.png
  155. share/doc/libxml2/tutorial/images/callouts/10.png
  156. share/doc/libxml2/tutorial/images/callouts/2.png
  157. share/doc/libxml2/tutorial/images/callouts/3.png
  158. share/doc/libxml2/tutorial/images/callouts/4.png
  159. share/doc/libxml2/tutorial/images/callouts/5.png
  160. share/doc/libxml2/tutorial/images/callouts/6.png
  161. share/doc/libxml2/tutorial/images/callouts/7.png
  162. share/doc/libxml2/tutorial/images/callouts/8.png
  163. share/doc/libxml2/tutorial/images/callouts/9.png
  164. share/doc/libxml2/tutorial/images/caution.png
  165. share/doc/libxml2/tutorial/images/draft.png
  166. share/doc/libxml2/tutorial/images/home.png
  167. share/doc/libxml2/tutorial/images/important.png
  168. share/doc/libxml2/tutorial/images/next.png
  169. share/doc/libxml2/tutorial/images/note.png
  170. share/doc/libxml2/tutorial/images/prev.png
  171. share/doc/libxml2/tutorial/images/tip.png
  172. share/doc/libxml2/tutorial/images/toc-blank.png
  173. share/doc/libxml2/tutorial/images/toc-minus.png
  174. share/doc/libxml2/tutorial/images/toc-plus.png
  175. share/doc/libxml2/tutorial/images/up.png
  176. share/doc/libxml2/tutorial/images/warning.png
  177. share/doc/libxml2/tutorial/includeaddattribute.c
  178. share/doc/libxml2/tutorial/includeaddkeyword.c
  179. share/doc/libxml2/tutorial/includeconvert.c
  180. share/doc/libxml2/tutorial/includegetattribute.c
  181. share/doc/libxml2/tutorial/includekeyword.c
  182. share/doc/libxml2/tutorial/includexpath.c
  183. share/doc/libxml2/tutorial/index.html
  184. share/doc/libxml2/tutorial/ix01.html
  185. share/doc/libxml2/xmlcatalog.html
  186. share/doc/libxml2/xmllint.html
  187. @owner
  188. @group
  189. @mode
Collapse this list.
Dependency lines:
  • libxml2>0:textproc/libxml2
To install the port:
cd /usr/ports/textproc/libxml2/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/libxml2
  • pkg install libxml2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: libxml2
Flavors: there is no flavor information for this port.
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
Slave ports:
  1. textproc/libxml2-python
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
  3. pkgconf>=1.3.0_1 : devel/pkgconf
Library dependencies:
  1. libreadline.so : devel/readline
This port is required by:
for Libraries
  1. databases/akonadi
  2. databases/mariadb1011-server
  3. databases/mariadb105-server
  4. databases/mariadb106-server
  5. databases/mariadb114-server
  6. devel/electron34
  7. devel/kf6-kdoctools
Expand this list (47 items / 40 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. devel/kf6-kio
  3. devel/umbrello
  4. dns/bind-tools
  5. dns/bind9-devel
  6. dns/bind920
  7. graphics/libkdcraw
  8. graphics/qgis-ltr
  9. lang/php83
  10. lang/php84
  11. misc/parley
  12. net/kitinerary
  13. net/php83-soap
  14. net/php84-soap
  15. sysutils/bacula-libs3
  16. sysutils/khelpcenter
  17. textproc/libxslt
  18. textproc/php83-dom
  19. textproc/php83-simplexml
  20. textproc/php83-xml
  21. textproc/php83-xmlreader
  22. textproc/php83-xmlwriter
  23. textproc/php83-xsl
  24. textproc/php84-dom
  25. textproc/php84-simplexml
  26. textproc/php84-xml
  27. textproc/php84-xmlreader
  28. textproc/php84-xmlwriter
  29. textproc/php84-xsl
  30. textproc/py-libxml2
  31. textproc/yelp-xsl
  32. www/angie-module-dav-ext
  33. www/angie-module-njs
  34. www/chromium
  35. www/mod_php83
  36. www/mod_php84
  37. www/mod_security
  38. www/nginx-full
  39. www/qt5-webengine
  40. www/ungoogled-chromium
  41. x11/yelp
  42. Collapse this list.

Configuration Options:
===> The following configuration options are available for libxml2-2.11.9_1: DOCS=on: Build and/or install documentation ICU=off: Unicode support via ICU MEM_DEBUG=off: Memory debugging (DEVELOPERS ONLY!) READLINE=on: History for xmllint THREAD_ALLOC=off: Per-thread memory (DEVELOPERS ONLY!) ===> Use 'make config' to modify these settings
Options name:
textproc_libxml2
USES:
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)
CommitCreditsLog message
2.11.9_1
22 Jun 2025 17:00:00
commit hash: 42eb50947ae2250b300d5d185a9a2625d211f27ccommit hash: 42eb50947ae2250b300d5d185a9a2625d211f27ccommit hash: 42eb50947ae2250b300d5d185a9a2625d211f27ccommit hash: 42eb50947ae2250b300d5d185a9a2625d211f27c files touched by this commit This port version is marked as vulnerable.
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
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