summaryrefslogtreecommitdiff
path: root/dev-perl/XML-LibXML
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/XML-LibXML
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/XML-LibXML')
-rw-r--r--dev-perl/XML-LibXML/Manifest8
-rw-r--r--dev-perl/XML-LibXML/XML-LibXML-2.12.800-r1.ebuild69
-rw-r--r--dev-perl/XML-LibXML/XML-LibXML-2.12.900.ebuild69
-rw-r--r--dev-perl/XML-LibXML/XML-LibXML-2.13.200.ebuild69
-rw-r--r--dev-perl/XML-LibXML/files/XML-LibXML-2.12.800-disable-expanding.patch72
-rw-r--r--dev-perl/XML-LibXML/metadata.xml47
6 files changed, 334 insertions, 0 deletions
diff --git a/dev-perl/XML-LibXML/Manifest b/dev-perl/XML-LibXML/Manifest
new file mode 100644
index 000000000000..2fd0b60b6fcf
--- /dev/null
+++ b/dev-perl/XML-LibXML/Manifest
@@ -0,0 +1,8 @@
+AUX XML-LibXML-2.12.800-disable-expanding.patch 2608 BLAKE2B b21eef9abb75a885c89d22efeff633a376576240808773b60f8ce271345994f5ad3d6c83d227350c4d11edb98ea869f72d7755606fd86cc47b2f152f7ea3fc95 SHA512 77d620da3315c930e42bbc4d0f5a528f6f2d3cbf70e5ea1d0ab461244a898260617c59aa92d41aab6b1c5b8c2ccc9cb0a9f0030bf0ece90a94e98994bfd3a0cf
+DIST XML-LibXML-2.0128.tar.gz 466334 BLAKE2B 7b7de24ed9cbafde79061e70247ed715e6009acf9d0ef75cc08d838d51c7b736ee7f4e57f069b1112c171ac398c28745082760f8e1d892834ab0c811c8a09e57 SHA512 c388570d0a140f3b92ab9922d9c917fba791e804b160822eeff91923891059ba189ad3743f2ffd13f7f4c92a3e8db1ee5fae588007d3fcf50251d9803e8e261b
+DIST XML-LibXML-2.0129.tar.gz 468838 BLAKE2B dce86bff8d4fcc87d5fc1e957ec7f89586ba8b34fd826680267995912ac54b1460850a22ea572a55d441fdb5719f8fbe6070b0d64f39f3e4fac9a5252ffd4396 SHA512 f17c61052975ecc188c285ee93dbb07926c880a28e49afdd5af0c7c997e8b12be72412d0964391f1232f853935ee0ff2838cd5d62f8f3b4f52c341904069ccea
+DIST XML-LibXML-2.0132.tar.gz 469983 BLAKE2B 66002c35adc1156af76f16af2a1b4617ef25470cb434ee73dd9242fdc37a20d5d417ce5003ca202f69de08e053705129c083e65d483ae7e85375ae2ad6cbedc5 SHA512 3df1cb67ea955133492f2b6f8def2b28079c59e99170a31820aca69ea81686c4b67171509f1b311faab9389d200c4a24942b3950d7c0730ff1233a009b398fce
+EBUILD XML-LibXML-2.12.800-r1.ebuild 1603 BLAKE2B 4c59491438f67a965483ed4c9018473d584a8a9fc1e756ea2de910dd3e35bdbbff685ea3551e9e457f7bf0889fbb72e0b6d85739f17284487b047f00e153c19b SHA512 cfe821fb467686cd4880964f6fc7530ac67bb95e341e6de550e7a9022d0bcf95830dc5781299e58f0b01a0e35dcd972dbf9d2897e587a4b25062350da367f493
+EBUILD XML-LibXML-2.12.900.ebuild 1623 BLAKE2B d90f917ca0c514d6f1be716196ae754bd051de0714dedd141d65c7703e3f6de11d03590fbdc7cc21c5f634e3aab475b0b8e21c57d3c78b9e9b37e4aa54a737da SHA512 65328151279a6f9183d4df179dcf561ae96f9d56769723d05c955784dcc2cebb602d725eaa2a7ba85923f7f8797372cc7f974db00da851a3d65b00fae75eefc2
+EBUILD XML-LibXML-2.13.200.ebuild 1641 BLAKE2B 55bb01c4bc319b306ee7976e0fc3278394e7246f78dfde7c30e6ef1c09993422d9dfbb9f75d2d85db55a7dcc847f004121638be370821e1aecdf4c75b90a56cc SHA512 08bb554e488bc4b68297686091c669d1884b95d496b53046631fb2f88d2c2d0692d5a35e3f906f106c15d5fa402c2d58c23ba0a27a9553c3bb35869d5329958b
+MISC metadata.xml 2782 BLAKE2B dd55f05f6dbaff2e8dad45ddc451309ef16896f9e4a8c60e89c8c6b8fc854654cd69363870cb4f6feabfef5c095656fab06e6ba48a9a9c31058d462e15870534 SHA512 6353b4890d24a2ab018caa0994913a4dd6b7dd753e089f9fb0570762f75517bc8ae4e8ed3a8990ae2c75957aec0791561f00a991f1e3976c225781317fdd82dc
diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.12.800-r1.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.12.800-r1.ebuild
new file mode 100644
index 000000000000..8c9eb17cd1ba
--- /dev/null
+++ b/dev-perl/XML-LibXML/XML-LibXML-2.12.800-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=SHLOMIF
+DIST_VERSION=2.0128
+DIST_EXAMPLES=("example/*")
+inherit perl-module
+
+DESCRIPTION="Perl binding for libxml2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="test minimal"
+
+RDEPEND="
+ >=dev-perl/XML-SAX-0.120.0
+ >=dev-libs/libxml2-2.6.21
+ dev-perl/XML-SAX-Base
+ >=dev-perl/XML-NamespaceSupport-1.70.0
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+ test? (
+ !minimal? (
+ dev-perl/Test-LeakTrace
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-disable-expanding.patch"
+)
+
+src_compile() {
+ export SKIP_SAX_INSTALL=1
+ perl-module_src_compile
+}
+
+src_test() {
+ perl_rm_files t/pod.t t/style-trailing-space.t t/cpan-changes.t
+ perl-module_src_test
+}
+
+pkg_postinst() {
+ pkg_update_parser add XML::LibXML::SAX::Parser
+ pkg_update_parser add XML::LibXML::SAX
+}
+
+pkg_postrm() {
+ pkg_update_parser remove XML::LibXML::SAX::Parser
+ pkg_update_parser remove XML::LibXML::SAX
+}
+
+pkg_update_parser() {
+ # pkg_update_parser [add|remove] $parser_module
+ local action=$1
+ local parser_module=$2
+
+ if [[ "$ROOT" = "/" ]] ; then
+ einfo "Update Parser: $1 $2"
+ perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
+ || ewarn "Update Parser: $1 $2 failed"
+ else
+ elog "To $1 $2 run:"
+ elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
+ fi
+}
diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.12.900.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.12.900.ebuild
new file mode 100644
index 000000000000..1d411d0f9bba
--- /dev/null
+++ b/dev-perl/XML-LibXML/XML-LibXML-2.12.900.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=SHLOMIF
+DIST_VERSION=2.0129
+DIST_EXAMPLES=("example/*")
+inherit perl-module
+
+DESCRIPTION="Perl binding for libxml2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="test minimal"
+
+RDEPEND="
+ >=dev-perl/XML-SAX-0.120.0
+ >=dev-libs/libxml2-2.6.21
+ dev-perl/XML-SAX-Base
+ >=dev-perl/XML-NamespaceSupport-1.70.0
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+ test? (
+ !minimal? (
+ dev-perl/Test-LeakTrace
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.12.800-disable-expanding.patch"
+)
+
+src_compile() {
+ export SKIP_SAX_INSTALL=1
+ perl-module_src_compile
+}
+
+src_test() {
+ perl_rm_files t/pod.t t/style-trailing-space.t t/cpan-changes.t
+ perl-module_src_test
+}
+
+pkg_postinst() {
+ pkg_update_parser add XML::LibXML::SAX::Parser
+ pkg_update_parser add XML::LibXML::SAX
+}
+
+pkg_postrm() {
+ pkg_update_parser remove XML::LibXML::SAX::Parser
+ pkg_update_parser remove XML::LibXML::SAX
+}
+
+pkg_update_parser() {
+ # pkg_update_parser [add|remove] $parser_module
+ local action=$1
+ local parser_module=$2
+
+ if [[ "$ROOT" = "/" ]] ; then
+ einfo "Update Parser: $1 $2"
+ perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
+ || ewarn "Update Parser: $1 $2 failed"
+ else
+ elog "To $1 $2 run:"
+ elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
+ fi
+}
diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.13.200.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.13.200.ebuild
new file mode 100644
index 000000000000..4a16a5d84483
--- /dev/null
+++ b/dev-perl/XML-LibXML/XML-LibXML-2.13.200.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=SHLOMIF
+DIST_VERSION=2.0132
+DIST_EXAMPLES=("example/*")
+inherit perl-module
+
+DESCRIPTION="Perl binding for libxml2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="test minimal"
+
+RDEPEND="
+ >=dev-perl/XML-SAX-0.120.0
+ >=dev-libs/libxml2-2.6.21
+ dev-perl/XML-SAX-Base
+ >=dev-perl/XML-NamespaceSupport-1.70.0
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+ test? (
+ !minimal? (
+ dev-perl/Test-LeakTrace
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.12.800-disable-expanding.patch"
+)
+
+PERL_RM_FILES=(
+ "t/cpan-changes.t" "t/pod-files-presence.t" "t/pod.t"
+ "t/release-kwalitee.t" "t/style-trailing-space.t"
+)
+
+src_compile() {
+ export SKIP_SAX_INSTALL=1
+ perl-module_src_compile
+}
+
+pkg_postinst() {
+ pkg_update_parser add XML::LibXML::SAX::Parser
+ pkg_update_parser add XML::LibXML::SAX
+}
+
+pkg_postrm() {
+ pkg_update_parser remove XML::LibXML::SAX::Parser
+ pkg_update_parser remove XML::LibXML::SAX
+}
+
+pkg_update_parser() {
+ # pkg_update_parser [add|remove] $parser_module
+ local action=$1
+ local parser_module=$2
+
+ if [[ "$ROOT" = "/" ]] ; then
+ einfo "Update Parser: $1 $2"
+ perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
+ || ewarn "Update Parser: $1 $2 failed"
+ else
+ elog "To $1 $2 run:"
+ elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
+ fi
+}
diff --git a/dev-perl/XML-LibXML/files/XML-LibXML-2.12.800-disable-expanding.patch b/dev-perl/XML-LibXML/files/XML-LibXML-2.12.800-disable-expanding.patch
new file mode 100644
index 000000000000..8be7783ef679
--- /dev/null
+++ b/dev-perl/XML-LibXML/files/XML-LibXML-2.12.800-disable-expanding.patch
@@ -0,0 +1,72 @@
+From 05749ae525317d05bd9d4232c080e530854f1d88 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Fri, 30 Sep 2016 14:31:26 +0200
+Subject: [PATCH] Do not enable expanding entities by default
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Expanding external entity is insecure.
+<https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing>.
+This patch makes expand_entities option disabled by default.
+
+CPAN RT#118032
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ LibXML.pm | 2 +-
+ docs/libxml.dbk | 2 +-
+ t/43options.t | 4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/LibXML.pm b/LibXML.pm
+index eb3cbd6..9ab4748 100644
+--- a/LibXML.pm
++++ b/LibXML.pm
+@@ -261,7 +261,7 @@ use constant {
+ HTML_PARSE_NOERROR => (1<<5), # suppress error reports
+ };
+
+-$XML_LIBXML_PARSE_DEFAULTS = ( XML_PARSE_NODICT | XML_PARSE_DTDLOAD | XML_PARSE_NOENT );
++$XML_LIBXML_PARSE_DEFAULTS = ( XML_PARSE_NODICT | XML_PARSE_DTDLOAD );
+
+ # this hash is made global so that applications can add names for new
+ # libxml2 parser flags as temporary workaround
+diff --git a/docs/libxml.dbk b/docs/libxml.dbk
+index 30f279b..2c6674b 100644
+--- a/docs/libxml.dbk
++++ b/docs/libxml.dbk
+@@ -1676,7 +1676,7 @@ local $XML::LibXML::setTagCompression = 1;</programlisting>
+ <term>expand_entities</term>
+ <listitem>
+ <para>/parser, reader/</para>
+- <para>substitute entities; possible values are 0 and 1; default is 1</para>
++ <para>substitute entities; possible values are 0 and 1; default is 0</para>
+ <para>Note that although this flag disables entity substitution, it
+ does not prevent the parser from loading external entities;
+ when substitution of an external entity is disabled, the
+diff --git a/t/43options.t b/t/43options.t
+index 826f0ad..53dd35e 100644
+--- a/t/43options.t
++++ b/t/43options.t
+@@ -50,7 +50,7 @@ no_network
+ {
+ my $p = XML::LibXML->new();
+ for my $opt (@all) {
+- my $ret = (($opt =~ /^(?:load_ext_dtd|expand_entities)$/) ? 1 : 0);
++ my $ret = (($opt =~ /^(?:load_ext_dtd)$/) ? 1 : 0);
+ # TEST*$all
+ ok(
+ ($p->get_option($opt)||0) == $ret
+@@ -110,7 +110,7 @@ no_network
+ ok( $p->get_option('recover') == 2, ' TODO : Add test name' );
+
+ # TEST
+- ok( $p->expand_entities() == 1, ' TODO : Add test name' );
++ ok( $p->expand_entities() == 0, ' TODO : Add test name' );
+ # TEST
+ ok( $p->load_ext_dtd() == 1, ' TODO : Add test name' );
+ $p->load_ext_dtd(0);
+--
+2.7.4
+
diff --git a/dev-perl/XML-LibXML/metadata.xml b/dev-perl/XML-LibXML/metadata.xml
new file mode 100644
index 000000000000..2bbbf693caf3
--- /dev/null
+++ b/dev-perl/XML-LibXML/metadata.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">XML-LibXML</remote-id>
+ <remote-id type="cpan-module">XML::LibXML</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Attr</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::AttributeHash</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Boolean</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::CDATASection</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Comment</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Common</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Devel</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Document</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::DocumentFragment</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Dtd</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Element</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::ErrNo</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Error</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::InputCallback</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Literal</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::NamedNodeMap</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Namespace</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Node</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::NodeList</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Number</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::PI</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Pattern</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Reader</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::RegExp</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::RelaxNG</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::SAX</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::SAX::AttributeNode</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::SAX::Builder</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::SAX::Generator</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::SAX::Parser</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Schema</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::Text</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::XPathContext</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::XPathExpression</remote-id>
+ <remote-id type="cpan-module">XML::LibXML::_SAXParser</remote-id>
+ </upstream>
+</pkgmetadata>