public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-XML_RSS/, dev-php/PEAR-XML_RSS/files/
Date: Tue, 11 Jan 2022 14:20:06 +0000 (UTC)	[thread overview]
Message-ID: <1641910802.d685c3a12a272861b198a30ca854b4eff1ded1e5.grknight@gentoo> (raw)

commit:     d685c3a12a272861b198a30ca854b4eff1ded1e5
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 11 14:14:03 2022 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Jan 11 14:20:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d685c3a1

dev-php/PEAR-XML_RSS: Revbump to fix under PHP 8

Errors occur when parsing due to stricter pass-by-value from
the xml extension.  The pass-by-reference definition fails under PHP 8.

Closes: https://bugs.gentoo.org/830811
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r2.ebuild  | 31 ++++++++++++++++++++++
 .../PEAR-XML_RSS/files/XML_RSS-1.1.0-php8.patch    | 12 +++++++++
 2 files changed, 43 insertions(+)

diff --git a/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r2.ebuild b/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r2.ebuild
new file mode 100644
index 000000000000..0511a5abb0a6
--- /dev/null
+++ b/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit php-pear-r2
+
+DESCRIPTION="PHP parser for RDF and RSS documents"
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=">=dev-php/PEAR-XML_Parser-1.3.8-r1"
+BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
+
+PATCHES=( "${FILESDIR}/XML_RSS-1.1.0-php8.patch" )
+
+src_prepare() {
+	default
+	sed -i \
+		-e 's/_Framework_/\\Framework\\/' \
+		-e 's/_TextUI_/\\TextUI\\/' \
+		tests/*.php
+}
+
+src_test() {
+	phpunit --bootstrap "${S}/XML/RSS.php" \
+		--cache-result-file="${T}/test-results.cache" tests || die
+}

diff --git a/dev-php/PEAR-XML_RSS/files/XML_RSS-1.1.0-php8.patch b/dev-php/PEAR-XML_RSS/files/XML_RSS-1.1.0-php8.patch
new file mode 100644
index 000000000000..b78765cb80ea
--- /dev/null
+++ b/dev-php/PEAR-XML_RSS/files/XML_RSS-1.1.0-php8.patch
@@ -0,0 +1,12 @@
+diff -aurN a/XML/RSS.php b/XML/RSS.php
+--- a/XML/RSS.php	2017-03-07 14:16:38.000000000 -0500
++++ b/XML/RSS.php	2022-01-11 09:09:34.745242886 -0500
+@@ -202,7 +202,7 @@
+      * @return void
+      * @access private
+      */
+-    function startHandler($parser, $element, &$attribs)
++    function startHandler($parser, $element, $attribs)
+     {
+         if (substr($element, 0, 4) == "RSS:") {
+             $element = substr($element, 4);


                 reply	other threads:[~2022-01-11 14:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1641910802.d685c3a12a272861b198a30ca854b4eff1ded1e5.grknight@gentoo \
    --to=grknight@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox