pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/ruby-nokogiri
Module Name: pkgsrc
Committed By: tsutsui
Date: Sun Jan 9 19:19:23 UTC 2022
Modified Files:
pkgsrc/textproc/ruby-nokogiri: Makefile PLIST distinfo
Removed Files:
pkgsrc/textproc/ruby-nokogiri/patches: patch-ext_nokogiri_extconf.rb
Log Message:
ruby-nokogiri: update to 1.13.0.
Upstream changes:
https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.0
1.13.0 / 2022-01-06
Notes
Ruby
This release introduces native gem support for Ruby 3.1. Please note that
Windows users should use the x64-mingw-ucrt platform gem for Ruby 3.1, and
x64-mingw32 for Ruby 2.6-3.0 (see RubyInstaller 3.1.0 release notes).
This release ends support for:
* Ruby 2.5, for which official support ended 2021-03-31.
* JRuby 9.2, which is a Ruby 2.5-compatible release.
Faster, more reliable installation: Native Gem for ARM64 Linux
This version of Nokogiri ships experimental native gem support for the
aarch64-linux platform, which should support AWS Graviton and other ARM Linux
platforms. We don't yet have CI running for this platform, and so we're
interested in hearing back from y'all whether this is working, and what
problems you're seeing. Please send us feedback here: Feedback: Have you used
the aarch64-linux native gem?
Publishing
This version of Nokogiri opts-in to the "MFA required to publish" setting on
Rubygems.org. This and all future Nokogiri gem files must be published to
Rubygems by an account with multi-factor authentication enabled. This should
provide some additional protection against supply-chain attacks.
A related discussion about Trust exists at #2357 in which I invite you to
participate if you have feelings or opinions on this topic.
Dependencies
* [CRuby] Vendored libiconv is updated from 1.15 to 1.16. (Note that libiconv
is only redistributed in the native windows and native darwin gems, see
LICENSE-DEPENDENCIES.md for more information.) [#2206]
* [CRuby] Upgrade mini_portile2 dependency from ~> 2.6.1 to ~> 2.7.0. ("ruby"
platform gem only.)
Improved
* {XML,HTML4}::DocumentFragment constructors all now take an optional parse
options parameter or block (similar to Document constructors). [#1692]
(Thanks, @JackMc!)
* Nokogiri::CSS.xpath_for allows an XPathVisitor to be injected, for
finer-grained control over how CSS queries are translated into XPath.
* [CRuby] XML::Reader#encoding will return the encoding detected by the
parser when it's not passed to the constructor. [#980]
* [CRuby] Handle abruptly-closed HTML comments as recommended by WHATWG.
(Thanks to tehryanx for reporting!)
* [CRuby] Node#line is no longer capped at 65535. libxml v2.9.0 and later
support a new parse option, exposed as
Nokogiri::XML::ParseOptions::PARSE_BIG_LINES, which is turned on by default
in ParseOptions::DEFAULT_{XML,XSLT,HTML,SCHEMA} (Note that JRuby already
supported large line numbers.) [#1764, #1493, #1617, #1505, #1003, #533]
* [CRuby] If a cycle is introduced when reparenting a node (i.e., the node
becomes its own ancestor), a RuntimeError is raised. libxml2 does no
checking for this, which means cycles would otherwise result in infinite
loops on subsequent operations. (Note that JRuby already did this.) [#1912]
* [CRuby] Source builds will download zlib and libiconv via HTTPS. ("ruby"
platform gem only.) [#2391] (Thanks, @jmartin-r7!)
* [JRuby] Node#line behavior has been modified to return the line number of
the node in the final DOM structure. This behavior is different from CRuby,
which returns the node's position in the input string. Ideally the two
implementations would be the same, but at least is now officially
documented and tested. The real-world impact of this change is that the
value returned in JRuby is greater by 1 to account for the XML prolog in
the output. [#2380] (Thanks, @dabdine!)
Fixed
* CSS queries on HTML5 documents now correctly match foreign elements (SVG,
MathML) when namespaces are not specified in the query. [#2376]
* XML::Builder blocks restore context properly when exceptions are raised.
[#2372] (Thanks, @ric2b and @rinthedev!)
* The Nokogiri::CSS::Parser cache now uses the XPathVisitor configuration as
part of the cache key, preventing incorrect cache results from being
returned when multiple XPathVisitor options are being used.
* Error recovery from in-context parsing (e.g., Node#parse) now always uses
the correct DocumentFragment class. Previously
Nokogiri::HTML4::DocumentFragment was always used, even for XML documents.
[#1158]
* DocumentFragment#> now works properly, matching a CSS selector against only
the fragment roots. [#1857]
* XML::DocumentFragment#errors now correctly contains any parsing errors
encountered. Previously this was always empty. (Note that
HTML::DocumentFragment#errors already did this.)
* [CRuby] Fix memory leak in Document#canonicalize when inclusive namespaces
are passed in. [#2345]
* [CRuby] Fix memory leak in Document#canonicalize when an argument type
error is raised. [#2345]
* [CRuby] Fix memory leak in EncodingHandler where iconv handlers were not
being cleaned up. [#2345]
* [CRuby] Fix memory leak in XPath custom handlers where string arguments
were not being cleaned up. [#2345]
* [CRuby] Fix memory leak in Reader#base_uri where the string returned by
libxml2 was not freed. [#2347]
* [JRuby] Deleting a Namespace from a NodeSet no longer modifies the href to
be the default namespace URL.
* [JRuby] Fix XHTML formatting of closing tags for non-container elements.
[#2355]
Deprecated
* Passing a Nokogiri::XML::Node as the second parameter to Node.new is
deprecated and will generate a warning. This parameter should be a kind of
Nokogiri::XML::Document. This will become an error in a future version of
Nokogiri. [#975]
* Nokogiri::CSS::Parser, Nokogiri::CSS::Tokenizer, and Nokogiri::CSS::Node
are now internal-only APIs that are no longer documented, and should not be
considered stable. With the introduction of XPathVisitor injection into
Nokogiri::CSS.xpath_for there should be no reason to rely on these internal
APIs.
* CSS-to-XPath utility classes Nokogiri::CSS::XPathVisitorAlwaysUseBuiltins
and XPathVisitorOptimallyUseBuiltins are deprecated. Prefer
Nokogiri::CSS::XPathVisitor with appropriate constructor arguments. These
classes will be removed in a future version of Nokogiri.
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 pkgsrc/textproc/ruby-nokogiri/Makefile
cvs rdiff -u -r1.34 -r1.35 pkgsrc/textproc/ruby-nokogiri/PLIST
cvs rdiff -u -r1.46 -r1.47 pkgsrc/textproc/ruby-nokogiri/distinfo
cvs rdiff -u -r1.1 -r0 \
pkgsrc/textproc/ruby-nokogiri/patches/patch-ext_nokogiri_extconf.rb
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-nokogiri/Makefile
diff -u pkgsrc/textproc/ruby-nokogiri/Makefile:1.66 pkgsrc/textproc/ruby-nokogiri/Makefile:1.67
--- pkgsrc/textproc/ruby-nokogiri/Makefile:1.66 Tue Dec 28 00:01:31 2021
+++ pkgsrc/textproc/ruby-nokogiri/Makefile Sun Jan 9 19:19:23 2022
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.66 2021/12/28 00:01:31 taca Exp $
+# $NetBSD: Makefile,v 1.67 2022/01/09 19:19:23 tsutsui Exp $
-DISTNAME= nokogiri-1.12.5
-PKGREVISION= 2
+DISTNAME= nokogiri-1.13.0
CATEGORIES= textproc
MAINTAINER= tsutsui%NetBSD.org@localhost
@@ -9,14 +8,13 @@ HOMEPAGE= https://nokogiri.org/
COMMENT= HTML, XML, SAX, and Reader parser with XPath and CSS selector support
LICENSE= mit
-DEPENDS+= ${RUBY_PKGPREFIX}-mini_portile2>=2.6.1:../../misc/ruby-mini_portile2
+DEPENDS+= ${RUBY_PKGPREFIX}-mini_portile2>=2.7.0:../../misc/ruby-mini_portile2
USE_GCC_RUNTIME= yes
USE_TOOLS+= pkg-config
MAKE_ENV+= NOKOGIRI_USE_SYSTEM_LIBRARIES=yes
RUBYGEM_OPTIONS+= --format-executable
-OVERRIDE_GEMSPEC+= mini_portile2>=2.6.1 \
- :files ports/archives/libxml2-2.9.12.tar.gz= \
+OVERRIDE_GEMSPEC+= :files ports/archives/libxml2-2.9.12.tar.gz= \
ports/archives/libxslt-1.1.34.tar.gz=
# XXX: work around bug in bootstrap-mk-files, remove when fixed
Index: pkgsrc/textproc/ruby-nokogiri/PLIST
diff -u pkgsrc/textproc/ruby-nokogiri/PLIST:1.34 pkgsrc/textproc/ruby-nokogiri/PLIST:1.35
--- pkgsrc/textproc/ruby-nokogiri/PLIST:1.34 Sat Aug 21 18:27:13 2021
+++ pkgsrc/textproc/ruby-nokogiri/PLIST Sun Jan 9 19:19:23 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.34 2021/08/21 18:27:13 tsutsui Exp $
+@comment $NetBSD: PLIST,v 1.35 2022/01/09 19:19:23 tsutsui Exp $
bin/nokogiri${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_EXTSDIR}/gem.build_complete
@@ -93,6 +93,7 @@ ${GEM_LIBDIR}/gumbo-parser/src/util.h
${GEM_LIBDIR}/gumbo-parser/src/vector.c
${GEM_LIBDIR}/gumbo-parser/src/vector.h
${GEM_LIBDIR}/lib/nokogiri.rb
+${GEM_LIBDIR}/lib/nokogiri/class_resolver.rb
${GEM_LIBDIR}/lib/nokogiri/css.rb
${GEM_LIBDIR}/lib/nokogiri/css/node.rb
${GEM_LIBDIR}/lib/nokogiri/css/parser.rb
@@ -173,6 +174,8 @@ ${GEM_LIBDIR}/patches/libxml2/0004-use-g
${GEM_LIBDIR}/patches/libxml2/0005-avoid-isnan-isinf.patch
${GEM_LIBDIR}/patches/libxml2/0006-update-automake-files-for-arm64.patch
${GEM_LIBDIR}/patches/libxml2/0007-Fix-XPath-recursion-limit.patch
+${GEM_LIBDIR}/patches/libxml2/0008-htmlParseComment-handle-abruptly-closed-comments.patch
+${GEM_LIBDIR}/patches/libxml2/0009-allow-wildcard-namespaces.patch
${GEM_LIBDIR}/patches/libxslt/0001-update-automake-files-for-arm64.patch
${GEM_LIBDIR}/patches/libxslt/0002-Fix-xml2-config-check-in-configure-script.patch
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
Index: pkgsrc/textproc/ruby-nokogiri/distinfo
diff -u pkgsrc/textproc/ruby-nokogiri/distinfo:1.46 pkgsrc/textproc/ruby-nokogiri/distinfo:1.47
--- pkgsrc/textproc/ruby-nokogiri/distinfo:1.46 Tue Oct 26 11:23:25 2021
+++ pkgsrc/textproc/ruby-nokogiri/distinfo Sun Jan 9 19:19:23 2022
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.46 2021/10/26 11:23:25 nia Exp $
+$NetBSD: distinfo,v 1.47 2022/01/09 19:19:23 tsutsui Exp $
-BLAKE2s (nokogiri-1.12.5.gem) = 4387bd6ed9b1d101d0fc59c8f545589cb1153c0227d5efe8a78d4f17ac1a708f
-SHA512 (nokogiri-1.12.5.gem) = 29ef38133906f3ffc4b8a3d8f980b5b684dcab21360a46fa618cc47caf1f98f51654a64648a1cc638d784a33336f24ce45a6ea43aa365caf39702e36ab75dbcf
-Size (nokogiri-1.12.5.gem) = 9588736 bytes
-SHA1 (patch-ext_nokogiri_extconf.rb) = bed43fcfa1e984727d71da270768c29e7017a074
+BLAKE2s (nokogiri-1.13.0.gem) = 2c5f6545ab0b6e98bca53cd5ce526844103f4f1fada22f3096e21af54dc318af
+SHA512 (nokogiri-1.13.0.gem) = 9541a8dc9c8568bd2a81a268cc6fadeacbc9be84093389050cc5d7fc3498a7c9c42cf9d0992a2bae4997ae3b05d04e1547bb9ce8911bdb97a5b5e35ee3c31d1a
+Size (nokogiri-1.13.0.gem) = 9597952 bytes
Home |
Main Index |
Thread Index |
Old Index