Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-HTML-Parser for 
openSUSE:Factory checked in at 2026-11-24 12:23:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-HTML-Parser (Old)
 and      /work/SRC/openSUSE:Factory/.perl-HTML-Parser.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-HTML-Parser"

Tue Nov 24 12:23:36 2026 rev:46 rq:1399976 version:3.870.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-HTML-Parser/perl-HTML-Parser.changes        
2026-11-06 19:38:00.080017814 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-HTML-Parser.new.1340718/perl-HTML-Parser.changes
   2026-11-24 12:26:18.193127053 +0100
@@ -1,0 +2,10 @@
+Thu Nov 19 14:28:37 UTC 2026 - Tina Müller <[email protected]>
+
+- updated to 3.870.0 (3.87)
+   see /usr/share/doc/packages/perl-HTML-Parser/Changes
+
+  3.87      2026-11-18
+      - Retain entity values across stringification callbacks (GH#72)
+        (Yves Orton)
+
+-------------------------------------------------------------------

Old:
----
  HTML-Parser-3.86.tar.gz

New:
----
  HTML-Parser-3.87.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-HTML-Parser.spec ++++++
--- /var/tmp/diff_new_pack.Dzcep6/_old  2026-11-24 12:26:20.288215744 +0100
+++ /var/tmp/diff_new_pack.Dzcep6/_new  2026-11-24 12:26:20.291215871 +0100
@@ -18,10 +18,10 @@
 
 %define cpan_name HTML-Parser
 Name:           perl-HTML-Parser
-Version:        3.860.0
+Version:        3.870.0
 Release:        0
-# 3.86 -> normalize -> 3.860.0
-%define cpan_version 3.86
+# 3.87 -> normalize -> 3.870.0
+%define cpan_version 3.87
 License:        Artistic-1.0 OR GPL-1.0-or-later
 Summary:        HTML parser class
 URL:            https://metacpan.org/release/%{cpan_name}

++++++ HTML-Parser-3.86.tar.gz -> HTML-Parser-3.87.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/Changes new/HTML-Parser-3.87/Changes
--- old/HTML-Parser-3.86/Changes        2026-09-19 23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/Changes        2026-11-18 17:19:02.000000000 +0100
@@ -1,5 +1,9 @@
 Change history for HTML-Parser
 
+3.87      2026-11-18
+    - Retain entity values across stringification callbacks (GH#72)
+      (Yves Orton)
+
 3.86      2026-09-19
     - Expand an entity whose value is the string being decoded to the
       value that string had when the call began (GH#69) (Paul Johnson)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/META.json 
new/HTML-Parser-3.87/META.json
--- old/HTML-Parser-3.86/META.json      2026-09-19 23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/META.json      2026-11-18 17:19:02.000000000 +0100
@@ -88,32 +88,32 @@
    "provides" : {
       "HTML::Entities" : {
          "file" : "lib/HTML/Entities.pm",
-         "version" : "3.86"
+         "version" : "3.87"
       },
       "HTML::Filter" : {
          "file" : "lib/HTML/Filter.pm",
-         "version" : "3.86",
+         "version" : "3.87",
          "x_deprecated" : 1
       },
       "HTML::HeadParser" : {
          "file" : "lib/HTML/HeadParser.pm",
-         "version" : "3.86"
+         "version" : "3.87"
       },
       "HTML::LinkExtor" : {
          "file" : "lib/HTML/LinkExtor.pm",
-         "version" : "3.86"
+         "version" : "3.87"
       },
       "HTML::Parser" : {
          "file" : "lib/HTML/Parser.pm",
-         "version" : "3.86"
+         "version" : "3.87"
       },
       "HTML::PullParser" : {
          "file" : "lib/HTML/PullParser.pm",
-         "version" : "3.86"
+         "version" : "3.87"
       },
       "HTML::TokeParser" : {
          "file" : "lib/HTML/TokeParser.pm",
-         "version" : "3.86"
+         "version" : "3.87"
       }
    },
    "release_status" : "stable",
@@ -128,7 +128,7 @@
          "web" : "https://github.com/libwww-perl/HTML-Parser";
       }
    },
-   "version" : "3.86",
+   "version" : "3.87",
    "x_contributors" : [
       "Andy Lester <[email protected]>",
       "Antonio Radici <[email protected]>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/META.yml 
new/HTML-Parser-3.87/META.yml
--- old/HTML-Parser-3.86/META.yml       2026-09-19 23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/META.yml       2026-11-18 17:19:02.000000000 +0100
@@ -33,26 +33,26 @@
 provides:
   HTML::Entities:
     file: lib/HTML/Entities.pm
-    version: '3.86'
+    version: '3.87'
   HTML::Filter:
     file: lib/HTML/Filter.pm
-    version: '3.86'
+    version: '3.87'
     x_deprecated: 1
   HTML::HeadParser:
     file: lib/HTML/HeadParser.pm
-    version: '3.86'
+    version: '3.87'
   HTML::LinkExtor:
     file: lib/HTML/LinkExtor.pm
-    version: '3.86'
+    version: '3.87'
   HTML::Parser:
     file: lib/HTML/Parser.pm
-    version: '3.86'
+    version: '3.87'
   HTML::PullParser:
     file: lib/HTML/PullParser.pm
-    version: '3.86'
+    version: '3.87'
   HTML::TokeParser:
     file: lib/HTML/TokeParser.pm
-    version: '3.86'
+    version: '3.87'
 requires:
   Carp: '0'
   Exporter: '0'
@@ -68,7 +68,7 @@
   bugtracker: https://github.com/libwww-perl/HTML-Parser/issues
   homepage: https://github.com/libwww-perl/HTML-Parser
   repository: https://github.com/libwww-perl/HTML-Parser.git
-version: '3.86'
+version: '3.87'
 x_contributors:
   - 'Andy Lester <[email protected]>'
   - 'Antonio Radici <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/Makefile.PL 
new/HTML-Parser-3.87/Makefile.PL
--- old/HTML-Parser-3.86/Makefile.PL    2026-09-19 23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/Makefile.PL    2026-11-18 17:19:02.000000000 +0100
@@ -37,7 +37,7 @@
     "URI" => 0,
     "strict" => 0
   },
-  "VERSION" => "3.86",
+  "VERSION" => "3.87",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/Entities.pm 
new/HTML-Parser-3.87/lib/HTML/Entities.pm
--- old/HTML-Parser-3.86/lib/HTML/Entities.pm   2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/Entities.pm   2026-11-18 17:19:02.000000000 
+0100
@@ -144,7 +144,7 @@
 =cut
 
 use strict;
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 our (%entity2char, %char2entity);
 
 require 5.008;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/Filter.pm 
new/HTML-Parser-3.87/lib/HTML/Filter.pm
--- old/HTML-Parser-3.86/lib/HTML/Filter.pm     2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/Filter.pm     2026-11-18 17:19:02.000000000 
+0100
@@ -4,7 +4,7 @@
 
 require HTML::Parser;
 our @ISA = qw(HTML::Parser);
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 
 sub declaration { $_[0]->output("<!$_[1]>")     }
 sub process     { $_[0]->output($_[2])          }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/HeadParser.pm 
new/HTML-Parser-3.87/lib/HTML/HeadParser.pm
--- old/HTML-Parser-3.86/lib/HTML/HeadParser.pm 2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/HeadParser.pm 2026-11-18 17:19:02.000000000 
+0100
@@ -91,7 +91,7 @@
 use strict;
 our $DEBUG;
 #$DEBUG = 1;
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 
 =item $hp = HTML::HeadParser->new
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/LinkExtor.pm 
new/HTML-Parser-3.87/lib/HTML/LinkExtor.pm
--- old/HTML-Parser-3.86/lib/HTML/LinkExtor.pm  2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/LinkExtor.pm  2026-11-18 17:19:02.000000000 
+0100
@@ -2,7 +2,7 @@
 
 require HTML::Parser;
 our @ISA = qw(HTML::Parser);
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 
 =head1 NAME
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/Parser.pm 
new/HTML-Parser-3.87/lib/HTML/Parser.pm
--- old/HTML-Parser-3.86/lib/HTML/Parser.pm     2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/Parser.pm     2026-11-18 17:19:02.000000000 
+0100
@@ -2,7 +2,7 @@
 
 use strict;
 
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 
 require HTML::Entities;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/PullParser.pm 
new/HTML-Parser-3.87/lib/HTML/PullParser.pm
--- old/HTML-Parser-3.86/lib/HTML/PullParser.pm 2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/PullParser.pm 2026-11-18 17:19:02.000000000 
+0100
@@ -4,7 +4,7 @@
 
 require HTML::Parser;
 our @ISA = qw(HTML::Parser);
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 
 use Carp ();
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/lib/HTML/TokeParser.pm 
new/HTML-Parser-3.87/lib/HTML/TokeParser.pm
--- old/HTML-Parser-3.86/lib/HTML/TokeParser.pm 2026-09-19 23:41:47.000000000 
+0200
+++ new/HTML-Parser-3.87/lib/HTML/TokeParser.pm 2026-11-18 17:19:02.000000000 
+0100
@@ -4,7 +4,7 @@
 
 require HTML::PullParser;
 our @ISA = qw(HTML::PullParser);
-our $VERSION = '3.86';
+our $VERSION = '3.87';
 
 use Carp ();
 use HTML::Entities qw(decode_entities);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/t/entities2.t 
new/HTML-Parser-3.87/t/entities2.t
--- old/HTML-Parser-3.86/t/entities2.t  2026-09-19 23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/t/entities2.t  2026-11-18 17:19:02.000000000 +0100
@@ -3,7 +3,53 @@
 use utf8;
 
 use HTML::Entities qw(_decode_entities);
-use Test::More tests => 9;
+use Test::More tests => 15;
+
+{
+    package EntityValueDeletesKey;
+    use overload '""' => sub {
+        delete $main::entity_table{foo};
+        return "\x{100}";
+    };
+}
+
+{
+    our %entity_table = (
+        foo   => bless({}, 'EntityValueDeletesKey'),
+        other => 'unused',
+    );
+    my $text = '&foo;';
+    _decode_entities($text, \%entity_table);
+    is($text, "\x{100}", 'entity value survives deletion during 
stringification');
+}
+
+{
+    our %entity_table = (
+        foo   => bless({}, 'EntityValueDeletesKey'),
+        other => 'unused',
+    );
+    my $text = '&foobar;';
+    _decode_entities($text, \%entity_table, 1);
+    is($text, "\x{100}bar;", 'prefix entity value survives deletion during 
stringification');
+}
+
+{
+    my %entity_table = (foo => undef);
+    my $warnings = 0;
+    local $SIG{__WARN__} = sub {
+        $warnings++;
+        delete $entity_table{foo};
+    };
+    my $text = '&foo;';
+    my $error = do { local $@; eval { _decode_entities($text, \%entity_table) 
}; $@ };
+    like("$error", qr/^Entity value is undefined/, 'undefined entity value is 
rejected');
+    is($warnings, 0, 'undefined value does not invoke a warning hook');
+
+    my $prefix = '&foobar;';
+    $error = do { local $@; eval { _decode_entities($prefix, \%entity_table, 
1) }; $@ };
+    like("$error", qr/^Entity value is undefined/, 'undefined prefix value is 
rejected');
+    is($warnings, 0, 'undefined prefix does not invoke a warning hook');
+}
 
 {
     local $@;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/util.c new/HTML-Parser-3.87/util.c
--- old/HTML-Parser-3.86/util.c 2026-09-19 23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/util.c 2026-11-18 17:19:02.000000000 +0100
@@ -194,6 +194,9 @@
                STRLEN cur = SvCUR(sv);
                STRLEN alloc = SvLEN(sv);
                U32 utf8 = SvUTF8(sv);
+               /* SvPV can call magic or overload. A callback may change 
entity2char
+                * and invalidate svp, so retain the value until its text is 
copied.
+                * A plain undefined value is not a valid replacement. */
                if (              (svp = hv_fetch(entity2char, ent_name, s - 
ent_name, 0)) ||
                    (s < end && *s == ';' && (svp = hv_fetch(entity2char, 
ent_name, s - ent_name + 1, 0)))
                   )
@@ -204,8 +207,17 @@
                        repl_len = len;
                        repl_utf8 = orig_utf8;
                    } else {
-                       repl = SvPV(*svp, repl_len);
-                       repl_utf8 = SvUTF8(*svp);
+                       SV *repl_sv = *svp;
+                       /* Check magic first: it may make the scalar defined or 
undef. */
+                       bool may_call_perl = SvGAMAGIC(repl_sv);
+                       if (!may_call_perl && !SvOK(repl_sv))
+                           croak("Entity value is undefined");
+                       if (may_call_perl) {
+                           SvREFCNT_inc_simple_void(repl_sv);
+                           SAVEFREESV(repl_sv);
+                       }
+                       repl = SvPV(repl_sv, repl_len);
+                       repl_utf8 = SvUTF8(repl_sv);
                    }
                }
                else if (expand_prefix) {
@@ -219,8 +231,17 @@
                                repl_len = len;
                                repl_utf8 = orig_utf8;
                            } else {
-                               repl = SvPV(*svp, repl_len);
-                               repl_utf8 = SvUTF8(*svp);
+                               SV *repl_sv = *svp;
+                               /* Check magic first: it may make the scalar 
defined or undef. */
+                               bool may_call_perl = SvGAMAGIC(repl_sv);
+                               if (!may_call_perl && !SvOK(repl_sv))
+                                   croak("Entity value is undefined");
+                               if (may_call_perl) {
+                                   SvREFCNT_inc_simple_void(repl_sv);
+                                   SAVEFREESV(repl_sv);
+                               }
+                               repl = SvPV(repl_sv, repl_len);
+                               repl_utf8 = SvUTF8(repl_sv);
                            }
                            s = ss;
                            break;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Parser-3.86/xt/release/changes_has_content.t 
new/HTML-Parser-3.87/xt/release/changes_has_content.t
--- old/HTML-Parser-3.86/xt/release/changes_has_content.t       2026-09-19 
23:41:47.000000000 +0200
+++ new/HTML-Parser-3.87/xt/release/changes_has_content.t       2026-11-18 
17:19:02.000000000 +0100
@@ -2,7 +2,7 @@
 
 note 'Checking Changes';
 my $changes_file = 'Changes';
-my $newver = '3.86';
+my $newver = '3.87';
 my $trial_token = '-TRIAL';
 my $encoding = 'UTF-8';
 

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.Dzcep6/_old  2026-11-24 12:26:20.767236023 +0100
+++ /var/tmp/diff_new_pack.Dzcep6/_new  2026-11-24 12:26:20.773236277 +0100
@@ -1,6 +1,6 @@
-mtime: 1789897869
-commit: 5db239745deef404546b0820ac870f51604cc4e75d68586e7b202a07f984864a
+mtime: 1795098518
+commit: 1f0381a160a3d6b226390682222350bd2884cc262336bec5addd28b4f4dd5058
 url: https://src.opensuse.org/perl/perl-HTML-Parser
-revision: 5db239745deef404546b0820ac870f51604cc4e75d68586e7b202a07f984864a
+revision: 1f0381a160a3d6b226390682222350bd2884cc262336bec5addd28b4f4dd5058
 projectscmsync: https://src.opensuse.org/perl/_ObsPrj
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-19 15:28:38.000000000 +0100
@@ -0,0 +1 @@
+.osc

Reply via email to