pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/ruby-libxml



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Apr 12 15:06:57 UTC 2026

Modified Files:
        pkgsrc/textproc/ruby-libxml: Makefile PLIST distinfo

Log Message:
textproc/ruby-libxml: update to 6.0.0

5.0.6 (2026-04-03)

* Test fix - Make the memory leak test threshold more generous to avoid
  false positives
* Test fix - Call get_handler on Error class instead of module
* Fix XML::Writer.string buffer leak
* Update assertion to comply with minitest deprecations
* Allow libdir to match Rubies with double digit patch numbers

6.0.0 (2026-04-08)

This release is a major refresh of libxml-ruby. The most important changes
include:

* Migration to Ruby's modern TypedData API which replaces the old
  Data_Wrap_Struct API
* libxml-ruby no longer uses libxml2's _private field.  Instead, it now uses
  an internal registry. This removes a long-standing compatibility issue
  where libxml-ruby's use of _private could collide with other libxml2
  consumers
* Brand-new documentation site available at
  https://xml4r.github.io/libxml-ruby/ with guides on parsing, XPath,
  validation, the Writer API, and the internal architecture
* Updated reference documentation to Ruby's new Aliki theme
* Expanded tests
* Finally removed require 'xml' which has been deprecated for a very long time

Breaking changes:

* Remove deprecated Document methods: dump, format_dump, debug_dump,
  debug_dump_head, debug_format_dump, reader
* Remove deprecated Parser.register_error_handler (use Error.set_handler)
* Remove deprecated HTMLParser#file=, #io=, #string= (use class methods
  HTMLParser.file, .io, .string)
* Remove deprecated require paths: require 'libxml', require 'xml/libxml',
  and require 'xml' (use require 'libxml-ruby')
* Fix misspelled Schema::Type#annonymus_subtypes -> anonymous_subtypes

The release also includes a number of smaller improvements, including:

* Support Ruby 4.0 (no changes were required)
* Fix RelaxNG factories to raise on parse failure instead of wrapping NULL
* Fix read callback to clamp to buffer size, preventing overflow
* Fix write callback to use len parameter instead of strlen for StringIO
* Fix Schema @version ivar reading name instead of version
* Remove no-op free functions from Schema::Type, Element, Attribute, Facet
* Fix incorrect types in TypedData_Get_Struct for attr_decl and document
  node_type
* Remove dead Check_Type after NUM2INT in HTML parser context
* Use rb_ensure in namespaces.each to free nsList on exception
* Remove dead Float::INFINITY definition for Ruby 1.8.7
* Add mswin CI job using vcpkg for libxml2
* Minimum Ruby version is now 3.2
* Revert require_relative back to require for loading the C extension (fixes
  #226)
* Allow nil for external and system IDs when creating a DTD (fixes #215)
* Fix C14N document subset canonicalization with namespace nodes
* Enable W3C C14N spec tests 3.5 (entity references) and 3.7 (document subsets)
* Rename HISTORY to CHANGELOG.md, README.rdoc to README.md


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 pkgsrc/textproc/ruby-libxml/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/textproc/ruby-libxml/PLIST
cvs rdiff -u -r1.34 -r1.35 pkgsrc/textproc/ruby-libxml/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/ruby-libxml/Makefile
diff -u pkgsrc/textproc/ruby-libxml/Makefile:1.53 pkgsrc/textproc/ruby-libxml/Makefile:1.54
--- pkgsrc/textproc/ruby-libxml/Makefile:1.53   Wed Jan  7 08:49:08 2026
+++ pkgsrc/textproc/ruby-libxml/Makefile        Sun Apr 12 15:06:57 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.53 2026/01/07 08:49:08 wiz Exp $
+# $NetBSD: Makefile,v 1.54 2026/04/12 15:06:57 taca Exp $
 
-DISTNAME=      libxml-ruby-5.0.5
+DISTNAME=      libxml-ruby-6.0.0
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:C/ruby-//}
-PKGREVISION=   1
 CATEGORIES=    textproc
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/textproc/ruby-libxml/PLIST
diff -u pkgsrc/textproc/ruby-libxml/PLIST:1.25 pkgsrc/textproc/ruby-libxml/PLIST:1.26
--- pkgsrc/textproc/ruby-libxml/PLIST:1.25      Sat Feb  3 16:44:40 2024
+++ pkgsrc/textproc/ruby-libxml/PLIST   Sun Apr 12 15:06:57 2026
@@ -1,13 +1,12 @@
-@comment $NetBSD: PLIST,v 1.25 2024/02/03 16:44:40 taca Exp $
+@comment $NetBSD: PLIST,v 1.26 2026/04/12 15:06:57 taca Exp $
 ${GEM_HOME}/build_info/${GEM_NAME}.info
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/gem.build_complete
 ${GEM_EXTSDIR}/libxml_ruby.${RUBY_DLEXT}
-${GEM_LIBDIR}/HISTORY
+${GEM_LIBDIR}/CHANGELOG.md
 ${GEM_LIBDIR}/LICENSE
-${GEM_LIBDIR}/README.rdoc
+${GEM_LIBDIR}/README.md
 ${GEM_LIBDIR}/Rakefile
-${GEM_LIBDIR}/ext/libxml/extconf.h
 ${GEM_LIBDIR}/ext/libxml/extconf.rb
 ${GEM_LIBDIR}/ext/libxml/libxml.c
 ${GEM_LIBDIR}/ext/libxml/libxml_ruby.def
@@ -20,7 +19,6 @@ ${GEM_LIBDIR}/ext/libxml/ruby_xml_attr_d
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_attr_decl.h
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_attributes.c
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_attributes.h
-${GEM_LIBDIR}/ext/libxml/ruby_xml_cbg.c
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_document.c
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_document.h
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_dtd.c
@@ -53,6 +51,8 @@ ${GEM_LIBDIR}/ext/libxml/ruby_xml_parser
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_parser_options.h
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_reader.c
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_reader.h
+${GEM_LIBDIR}/ext/libxml/ruby_xml_registry.c
+${GEM_LIBDIR}/ext/libxml/ruby_xml_registry.h
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_relaxng.c
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_relaxng.h
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_sax2_handler.c
@@ -83,14 +83,17 @@ ${GEM_LIBDIR}/ext/libxml/ruby_xml_xpath_
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_xpath_object.c
 ${GEM_LIBDIR}/ext/libxml/ruby_xml_xpath_object.h
 ${GEM_LIBDIR}/ext/vc/libxml_ruby.sln
+${GEM_LIBDIR}/ext/vc/libxml_ruby/libxml_ruby.vcxproj
+${GEM_LIBDIR}/ext/xcode/libxml-ruby.xcodeproj/project.pbxproj
+${GEM_LIBDIR}/ext/xcode/libxml-ruby.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+${GEM_LIBDIR}/ext/xcode/libxml-ruby.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+${GEM_LIBDIR}/ext/xcode/libxml-ruby.xcodeproj/xcshareddata/xcschemes/libxml-ruby.xcscheme
 ${GEM_LIBDIR}/lib/libxml-ruby.rb
-${GEM_LIBDIR}/lib/libxml.rb
 ${GEM_LIBDIR}/lib/libxml/attr.rb
 ${GEM_LIBDIR}/lib/libxml/attr_decl.rb
 ${GEM_LIBDIR}/lib/libxml/attributes.rb
 ${GEM_LIBDIR}/lib/libxml/document.rb
 ${GEM_LIBDIR}/lib/libxml/error.rb
-${GEM_LIBDIR}/lib/libxml/hpricot.rb
 ${GEM_LIBDIR}/lib/libxml/html_parser.rb
 ${GEM_LIBDIR}/lib/libxml/namespace.rb
 ${GEM_LIBDIR}/lib/libxml/namespaces.rb
@@ -104,15 +107,7 @@ ${GEM_LIBDIR}/lib/libxml/schema/element.
 ${GEM_LIBDIR}/lib/libxml/schema/type.rb
 ${GEM_LIBDIR}/lib/libxml/tree.rb
 ${GEM_LIBDIR}/lib/libxml_ruby.${RUBY_DLEXT}
-${GEM_LIBDIR}/lib/xml.rb
-${GEM_LIBDIR}/lib/xml/libxml.rb
 ${GEM_LIBDIR}/libxml-ruby.gemspec
-${GEM_LIBDIR}/script/benchmark/depixelate
-${GEM_LIBDIR}/script/benchmark/hamlet.xml
-${GEM_LIBDIR}/script/benchmark/parsecount
-${GEM_LIBDIR}/script/benchmark/sock_entries.xml
-${GEM_LIBDIR}/script/benchmark/throughput
-${GEM_LIBDIR}/script/test
 ${GEM_LIBDIR}/test/c14n/given/doc.dtd
 ${GEM_LIBDIR}/test/c14n/given/example-1.xml
 ${GEM_LIBDIR}/test/c14n/given/example-2.xml
@@ -164,12 +159,10 @@ ${GEM_LIBDIR}/test/model/shiporder_bad.x
 ${GEM_LIBDIR}/test/model/shiporder_import.xsd
 ${GEM_LIBDIR}/test/model/soap.xml
 ${GEM_LIBDIR}/test/model/xinclude.xml
-${GEM_LIBDIR}/test/test.rb
 ${GEM_LIBDIR}/test/test_attr.rb
 ${GEM_LIBDIR}/test/test_attr_decl.rb
 ${GEM_LIBDIR}/test/test_attributes.rb
 ${GEM_LIBDIR}/test/test_canonicalize.rb
-${GEM_LIBDIR}/test/test_deprecated_require.rb
 ${GEM_LIBDIR}/test/test_document.rb
 ${GEM_LIBDIR}/test/test_document_write.rb
 ${GEM_LIBDIR}/test/test_dtd.rb
@@ -179,6 +172,7 @@ ${GEM_LIBDIR}/test/test_error.rb
 ${GEM_LIBDIR}/test/test_helper.rb
 ${GEM_LIBDIR}/test/test_html_parser.rb
 ${GEM_LIBDIR}/test/test_html_parser_context.rb
+${GEM_LIBDIR}/test/test_input_callbacks.rb
 ${GEM_LIBDIR}/test/test_namespace.rb
 ${GEM_LIBDIR}/test/test_namespaces.rb
 ${GEM_LIBDIR}/test/test_node.rb

Index: pkgsrc/textproc/ruby-libxml/distinfo
diff -u pkgsrc/textproc/ruby-libxml/distinfo:1.34 pkgsrc/textproc/ruby-libxml/distinfo:1.35
--- pkgsrc/textproc/ruby-libxml/distinfo:1.34   Sat Aug  2 05:07:37 2025
+++ pkgsrc/textproc/ruby-libxml/distinfo        Sun Apr 12 15:06:57 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.34 2025/08/02 05:07:37 taca Exp $
+$NetBSD: distinfo,v 1.35 2026/04/12 15:06:57 taca Exp $
 
-BLAKE2s (libxml-ruby-5.0.5.gem) = 7306ddd273b53f733f171832bd56b65044802a678cc9ad9a5a577a93a812c47e
-SHA512 (libxml-ruby-5.0.5.gem) = 7ff96a3a61e0e0e4715369c797890a8b3295184974d6476b0311703209be1382f0817af94bdac35e85cb8b5d0d7041aa313b1d87c0a54dadc69ac3e49bc15eea
-Size (libxml-ruby-5.0.5.gem) = 364544 bytes
+BLAKE2s (libxml-ruby-6.0.0.gem) = 537be99929efbdfdb36da931413c5ee30679b3aef5b101b1ad03d96cf8a87393
+SHA512 (libxml-ruby-6.0.0.gem) = 189a4d843b93a5fc05ad428ef7f2ab77feb517d45af726e058f0f15667848d0a21deea85fd159d44b02b7ae8965d7956476c736cbc626fc54e33fd05a9d3aae9
+Size (libxml-ruby-6.0.0.gem) = 277504 bytes



Home | Main Index | Thread Index | Old Index