Mon Jun 5 15:22:56 2017 UTC ()
Update ruby-nokogiri to 1.8.0.

# 1.8.0 / 2017-06-04

## Backwards incompatibilities

This release ends support for Ruby 2.1 on Windows in the `x86-mingw32` and `x64-mingw32` platform gems (containing pre-compiled DLLs). Official support ended for Ruby 2.1 on 2017-04-01.

Please note that this deprecation note only applies to the precompiled Windows gems. Ruby 2.1 continues to be supported (for now) in the default gem when compiled on installation.

## Dependencies

* [Windows] Upgrade iconv from 1.14 to 1.15 (unless --use-system-libraries)
* [Windows] Upgrade zlib from 1.2.8 to 1.2.11 (unless --use-system-libraries)
* [MRI] Upgrade rake-compiler dependency from 0.9.2 to 1.0.3
* [MRI] Upgrade mini-portile2 dependency from `~> 2.1.0` to `~> 2.2.0`

## Compatibility notes

* [JRuby] Removed support for `jruby --1.8` code paths. [#1607] (Thanks, @kares!)
* [MRI Windows] Retrieve zlib source from http://zlib.net/fossils to avoid deprecation issues going forward. See #1632 for details around this problem.

## Features

* NodeSet#clone is not an alias for NodeSet#dup [#1503] (Thanks, @stephankaag!)
* Allow Processing Instructions and Comments as children of a document root. [#1033] (Thanks, @windwiny!)
* [MRI] PushParser#replace_entities and #replace_entities= will control whether entities are replaced or not. [#1017] (Thanks, @spraints!)
* [MRI] SyntaxError#to_s now includes line number, column number, and log level if made available by the parser. [#1304, #1637] (Thanks, @spk and @ccarruitero!)
* [MRI] Cross-built Windows gems now support Ruby 2.4
* [MRI] Support for frozen string literals. [#1413]
* [MRI] Support for installing Nokogiri on a machine in FIPS-enabled mode [#1544]
* [MRI] Vendored libraries are verified with SHA-256 hashes (formerly some MD5 hashes were used) [#1544]
* [JRuby] (performance) remove unnecessary synchronization of class-cache [#1563] (Thanks, @kares!)
* [JRuby] (performance) remove unnecessary cloning of objects in XPath searches [#1563] (Thanks, @kares!)
* [JRuby] (performance) more performance improvements, particularly in XPath, Reader, XmlNode, and XmlNodeSet [#1597] (Thanks, @kares!)

## Bugs

* HTML::SAX::Parser#parse_io now correctly parses HTML and not XML [#1577] (Thanks for the test case, @gregors!)
* Support installation on systems with a `lib64` site config. [#1562]
* [MRI] on OpenBSD, do not require gcc if using system libraries [#1515] (Thanks, @jeremyevans!)
* [MRI] XML::Attr.new checks type of Document arg to prevent segfaults. [#1477]
* [MRI] Prefer xmlCharStrdup (and friends) to strdup (and friends), which can cause problems on some platforms. [#1517] (Thanks, @jeremy!)
* [JRuby] correctly append a text node before another text node [#1318] (Thanks, @jkraemer!)
* [JRuby] custom xpath functions returning an integer now work correctly [#1595] (Thanks, @kares!)
* [JRuby] serializing (`#to_html`, `#to_s`, et al) a document with explicit encoding now works correctly. [#1281, #1440] (Thanks, @kares!)
* [JRuby] XML::Reader now returns parse errors [#1586] (Thanks, @kares!)
* [JRuby] Empty NodeSets are now decorated properly. [#1319] (Thanks, @kares!)
* [JRuby] Merged nodes no longer results in Java exceptions during XPath queries. [#1320] (Thanks, @kares!)

# 1.7.2 / 2017-05-09

## Security Notes

[MRI] Upstream libxslt patches are applied to the vendored libxslt 1.1.29 which address CVE-2017-5029 and CVE-2016-4738.

For more information:

* https://github.com/sparklemotion/nokogiri/issues/1634
* http://people.canonical.com/~ubuntu-security/cve/2017/CVE-2017-5029.html
* http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-4738.html


(taca)
diff -r1.35 -r1.36 pkgsrc/textproc/ruby-nokogiri/Makefile
diff -r1.22 -r1.23 pkgsrc/textproc/ruby-nokogiri/PLIST
diff -r1.24 -r1.25 pkgsrc/textproc/ruby-nokogiri/distinfo

cvs diff -r1.35 -r1.36 pkgsrc/textproc/ruby-nokogiri/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/ruby-nokogiri/Makefile 2017/03/20 15:36:43 1.35
+++ pkgsrc/textproc/ruby-nokogiri/Makefile 2017/06/05 15:22:56 1.36
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1# $NetBSD: Makefile,v 1.35 2017/03/20 15:36:43 taca Exp $ 1# $NetBSD: Makefile,v 1.36 2017/06/05 15:22:56 taca Exp $
2 2
3DISTNAME= nokogiri-1.7.1 3DISTNAME= nokogiri-1.8.0
4CATEGORIES= textproc 4CATEGORIES= textproc
5 5
6MAINTAINER= pkgsrc-users@NetBSD.org 6MAINTAINER= pkgsrc-users@NetBSD.org
7HOMEPAGE= http://nokogiri.org/ 7HOMEPAGE= http://nokogiri.org/
8COMMENT= HTML, XML, SAX, and Reader parser with XPath and CSS selector support 8COMMENT= HTML, XML, SAX, and Reader parser with XPath and CSS selector support
9LICENSE= mit 9LICENSE= mit
10 10
11DEPENDS+= ${RUBY_PKGPREFIX}-mini_portile2>=2.1.0:../../misc/ruby-mini_portile2 11DEPENDS+= ${RUBY_PKGPREFIX}-mini_portile2>=2.2.0:../../misc/ruby-mini_portile2
12 12
13USE_GCC_RUNTIME= yes 13USE_GCC_RUNTIME= yes
14USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
15MAKE_ENV+= NOKOGIRI_USE_SYSTEM_LIBRARIES=yes 15MAKE_ENV+= NOKOGIRI_USE_SYSTEM_LIBRARIES=yes
16RUBYGEM_OPTIONS+= --format-executable 16RUBYGEM_OPTIONS+= --format-executable
17OVERRIDE_GEMSPEC+= :files ports/archives/libxml2-2.9.2.tar.gz= \ 17OVERRIDE_GEMSPEC+= :files ports/archives/libxml2-2.9.2.tar.gz= \
18 ports/archives/libxslt-1.1.28.tar.gz= 18 ports/archives/libxslt-1.1.28.tar.gz=
19 19
20.include "../../textproc/libxml2/buildlink3.mk" 20.include "../../textproc/libxml2/buildlink3.mk"
21.include "../../textproc/libxslt/buildlink3.mk" 21.include "../../textproc/libxslt/buildlink3.mk"
22.include "../../lang/ruby/gem.mk" 22.include "../../lang/ruby/gem.mk"
23.include "../../mk/bsd.pkg.mk" 23.include "../../mk/bsd.pkg.mk"

cvs diff -r1.22 -r1.23 pkgsrc/textproc/ruby-nokogiri/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/ruby-nokogiri/PLIST 2017/03/20 15:36:43 1.22
+++ pkgsrc/textproc/ruby-nokogiri/PLIST 2017/06/05 15:22:56 1.23
@@ -1,28 +1,30 @@ @@ -1,28 +1,30 @@
1@comment $NetBSD: PLIST,v 1.22 2017/03/20 15:36:43 taca Exp $ 1@comment $NetBSD: PLIST,v 1.23 2017/06/05 15:22:56 taca Exp $
2bin/nokogiri${RUBY_SUFFIX} 2bin/nokogiri${RUBY_SUFFIX}
3${GEM_HOME}/cache/${GEM_NAME}.gem 3${GEM_HOME}/cache/${GEM_NAME}.gem
4${GEM_EXTSDIR}/gem.build_complete 4${GEM_EXTSDIR}/gem.build_complete
5${GEM_EXTSDIR}/nokogiri/nokogiri.${RUBY_DLEXT} 5${GEM_EXTSDIR}/nokogiri/nokogiri.${RUBY_DLEXT}
6${GEM_LIBDIR}/.autotest 6${GEM_LIBDIR}/.autotest
7${GEM_LIBDIR}/.cross_rubies 7${GEM_LIBDIR}/.cross_rubies
8${GEM_LIBDIR}/.editorconfig 8${GEM_LIBDIR}/.editorconfig
9${GEM_LIBDIR}/.gemtest 9${GEM_LIBDIR}/.gemtest
10${GEM_LIBDIR}/.travis.yml 10${GEM_LIBDIR}/.travis.yml
11${GEM_LIBDIR}/CHANGELOG.md 11${GEM_LIBDIR}/CHANGELOG.md
12${GEM_LIBDIR}/CONTRIBUTING.md 12${GEM_LIBDIR}/CONTRIBUTING.md
13${GEM_LIBDIR}/C_CODING_STYLE.rdoc 13${GEM_LIBDIR}/C_CODING_STYLE.rdoc
14${GEM_LIBDIR}/Gemfile 14${GEM_LIBDIR}/Gemfile
15${GEM_LIBDIR}/LICENSE.txt 15${GEM_LIBDIR}/Gemfile-libxml-ruby
 16${GEM_LIBDIR}/LICENSE-DEPENDENCIES.md
 17${GEM_LIBDIR}/LICENSE.md
16${GEM_LIBDIR}/Manifest.txt 18${GEM_LIBDIR}/Manifest.txt
17${GEM_LIBDIR}/README.md 19${GEM_LIBDIR}/README.md
18${GEM_LIBDIR}/ROADMAP.md 20${GEM_LIBDIR}/ROADMAP.md
19${GEM_LIBDIR}/Rakefile 21${GEM_LIBDIR}/Rakefile
20${GEM_LIBDIR}/STANDARD_RESPONSES.md 22${GEM_LIBDIR}/STANDARD_RESPONSES.md
21${GEM_LIBDIR}/Y_U_NO_GEMSPEC.md 23${GEM_LIBDIR}/Y_U_NO_GEMSPEC.md
22${GEM_LIBDIR}/appveyor.yml 24${GEM_LIBDIR}/appveyor.yml
23${GEM_LIBDIR}/bin/nokogiri 25${GEM_LIBDIR}/bin/nokogiri
24${GEM_LIBDIR}/build_all 26${GEM_LIBDIR}/build_all
25${GEM_LIBDIR}/dependencies.yml 27${GEM_LIBDIR}/dependencies.yml
26${GEM_LIBDIR}/ext/nokogiri/depend 28${GEM_LIBDIR}/ext/nokogiri/depend
27${GEM_LIBDIR}/ext/nokogiri/extconf.rb 29${GEM_LIBDIR}/ext/nokogiri/extconf.rb
28${GEM_LIBDIR}/ext/nokogiri/html_document.c 30${GEM_LIBDIR}/ext/nokogiri/html_document.c
@@ -149,32 +151,30 @@ ${GEM_LIBDIR}/lib/nokogiri/xml/sax/push_ @@ -149,32 +151,30 @@ ${GEM_LIBDIR}/lib/nokogiri/xml/sax/push_
149${GEM_LIBDIR}/lib/nokogiri/xml/schema.rb 151${GEM_LIBDIR}/lib/nokogiri/xml/schema.rb
150${GEM_LIBDIR}/lib/nokogiri/xml/searchable.rb 152${GEM_LIBDIR}/lib/nokogiri/xml/searchable.rb
151${GEM_LIBDIR}/lib/nokogiri/xml/syntax_error.rb 153${GEM_LIBDIR}/lib/nokogiri/xml/syntax_error.rb
152${GEM_LIBDIR}/lib/nokogiri/xml/text.rb 154${GEM_LIBDIR}/lib/nokogiri/xml/text.rb
153${GEM_LIBDIR}/lib/nokogiri/xml/xpath.rb 155${GEM_LIBDIR}/lib/nokogiri/xml/xpath.rb
154${GEM_LIBDIR}/lib/nokogiri/xml/xpath/syntax_error.rb 156${GEM_LIBDIR}/lib/nokogiri/xml/xpath/syntax_error.rb
155${GEM_LIBDIR}/lib/nokogiri/xml/xpath_context.rb 157${GEM_LIBDIR}/lib/nokogiri/xml/xpath_context.rb
156${GEM_LIBDIR}/lib/nokogiri/xslt.rb 158${GEM_LIBDIR}/lib/nokogiri/xslt.rb
157${GEM_LIBDIR}/lib/nokogiri/xslt/stylesheet.rb 159${GEM_LIBDIR}/lib/nokogiri/xslt/stylesheet.rb
158${GEM_LIBDIR}/lib/xsd/xmlparser/nokogiri.rb 160${GEM_LIBDIR}/lib/xsd/xmlparser/nokogiri.rb
159${GEM_LIBDIR}/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch 161${GEM_LIBDIR}/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch
160${GEM_LIBDIR}/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch 162${GEM_LIBDIR}/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch
161${GEM_LIBDIR}/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch 163${GEM_LIBDIR}/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch
 164${GEM_LIBDIR}/patches/libxslt/0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch
 165${GEM_LIBDIR}/patches/libxslt/0002-Check-for-integer-overflow-in-xsltAddTextString.patch
162${GEM_LIBDIR}/patches/sort-patches-by-date 166${GEM_LIBDIR}/patches/sort-patches-by-date
163${GEM_LIBDIR}/suppressions/README.txt 167${GEM_LIBDIR}/suppressions/README.txt
164${GEM_LIBDIR}/suppressions/nokogiri_ree-1.8.7.358.supp 
165${GEM_LIBDIR}/suppressions/nokogiri_ruby-1.8.7.370.supp 
166${GEM_LIBDIR}/suppressions/nokogiri_ruby-1.9.2.320.supp 
167${GEM_LIBDIR}/suppressions/nokogiri_ruby-1.9.3.327.supp 
168${GEM_LIBDIR}/tasks/test.rb 168${GEM_LIBDIR}/tasks/test.rb
169${GEM_LIBDIR}/test/css/test_nthiness.rb 169${GEM_LIBDIR}/test/css/test_nthiness.rb
170${GEM_LIBDIR}/test/css/test_parser.rb 170${GEM_LIBDIR}/test/css/test_parser.rb
171${GEM_LIBDIR}/test/css/test_tokenizer.rb 171${GEM_LIBDIR}/test/css/test_tokenizer.rb
172${GEM_LIBDIR}/test/css/test_xpath_visitor.rb 172${GEM_LIBDIR}/test/css/test_xpath_visitor.rb
173${GEM_LIBDIR}/test/decorators/test_slop.rb 173${GEM_LIBDIR}/test/decorators/test_slop.rb
174${GEM_LIBDIR}/test/files/2ch.html 174${GEM_LIBDIR}/test/files/2ch.html
175${GEM_LIBDIR}/test/files/GH_1042.html 175${GEM_LIBDIR}/test/files/GH_1042.html
176${GEM_LIBDIR}/test/files/address_book.rlx 176${GEM_LIBDIR}/test/files/address_book.rlx
177${GEM_LIBDIR}/test/files/address_book.xml 177${GEM_LIBDIR}/test/files/address_book.xml
178${GEM_LIBDIR}/test/files/atom.xml 178${GEM_LIBDIR}/test/files/atom.xml
179${GEM_LIBDIR}/test/files/bar/bar.xsd 179${GEM_LIBDIR}/test/files/bar/bar.xsd
180${GEM_LIBDIR}/test/files/bogus.xml 180${GEM_LIBDIR}/test/files/bogus.xml
@@ -264,15 +264,14 @@ ${GEM_LIBDIR}/test/xml/test_node_set.rb @@ -264,15 +264,14 @@ ${GEM_LIBDIR}/test/xml/test_node_set.rb
264${GEM_LIBDIR}/test/xml/test_parse_options.rb 264${GEM_LIBDIR}/test/xml/test_parse_options.rb
265${GEM_LIBDIR}/test/xml/test_processing_instruction.rb 265${GEM_LIBDIR}/test/xml/test_processing_instruction.rb
266${GEM_LIBDIR}/test/xml/test_reader.rb 266${GEM_LIBDIR}/test/xml/test_reader.rb
267${GEM_LIBDIR}/test/xml/test_reader_encoding.rb 267${GEM_LIBDIR}/test/xml/test_reader_encoding.rb
268${GEM_LIBDIR}/test/xml/test_relax_ng.rb 268${GEM_LIBDIR}/test/xml/test_relax_ng.rb
269${GEM_LIBDIR}/test/xml/test_schema.rb 269${GEM_LIBDIR}/test/xml/test_schema.rb
270${GEM_LIBDIR}/test/xml/test_syntax_error.rb 270${GEM_LIBDIR}/test/xml/test_syntax_error.rb
271${GEM_LIBDIR}/test/xml/test_text.rb 271${GEM_LIBDIR}/test/xml/test_text.rb
272${GEM_LIBDIR}/test/xml/test_unparented_node.rb 272${GEM_LIBDIR}/test/xml/test_unparented_node.rb
273${GEM_LIBDIR}/test/xml/test_xinclude.rb 273${GEM_LIBDIR}/test/xml/test_xinclude.rb
274${GEM_LIBDIR}/test/xml/test_xpath.rb 274${GEM_LIBDIR}/test/xml/test_xpath.rb
275${GEM_LIBDIR}/test/xslt/test_custom_functions.rb 275${GEM_LIBDIR}/test/xslt/test_custom_functions.rb
276${GEM_LIBDIR}/test/xslt/test_exception_handling.rb 276${GEM_LIBDIR}/test/xslt/test_exception_handling.rb
277${GEM_LIBDIR}/test_all 
278${GEM_HOME}/specifications/${GEM_NAME}.gemspec 277${GEM_HOME}/specifications/${GEM_NAME}.gemspec

cvs diff -r1.24 -r1.25 pkgsrc/textproc/ruby-nokogiri/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/ruby-nokogiri/distinfo 2017/03/20 15:36:43 1.24
+++ pkgsrc/textproc/ruby-nokogiri/distinfo 2017/06/05 15:22:56 1.25
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.24 2017/03/20 15:36:43 taca Exp $ 1$NetBSD: distinfo,v 1.25 2017/06/05 15:22:56 taca Exp $
2 2
3SHA1 (nokogiri-1.7.1.gem) = 5731c2d494381be8440f6ace6e5fcb62e7850581 3SHA1 (nokogiri-1.8.0.gem) = 8312ece43d8dd00eccb29c302eff98df20a65f19
4RMD160 (nokogiri-1.7.1.gem) = 5b49924884b89befe9489f7c106df1841fe25cfb 4RMD160 (nokogiri-1.8.0.gem) = a85e99f3b6281bebeb402801a62ce903a5cda577
5SHA512 (nokogiri-1.7.1.gem) = 86ae6d09d6daf0be2d6b46c4a5c8ebe6e9c00e7a4dfe86a2d1c7972726696a87d89e95fa390697a9cb3bae5f7d419c9a4f6d70b1a02c47ab0119bb14bc67efb3 5SHA512 (nokogiri-1.8.0.gem) = 958b402325e8428d7a6299356dd31cfa191fd6e8ced78e4333395d6a18718c838b810c2dc9c0864553e5e247ed92d6629b985f4076241ad45affd04cae11a75f
6Size (nokogiri-1.7.1.gem) = 9152000 bytes 6Size (nokogiri-1.8.0.gem) = 9171456 bytes