]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool: recognize perldelta.pod as a changelog file
authorDaniel Turull <daniel.turull@ericsson.com>
Wed, 22 Jul 2026 07:31:37 +0000 (09:31 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jul 2026 10:27:20 +0000 (11:27 +0100)
perl's changelog extraction was picking up dist/Attribute-Handlers/Changes
instead of perl's own release notes. perl bundles dozens of dual-life CPAN
modules under dist/*/{Changes,ChangeLog}, and since perl's own top-level
Changes file is not updated per-release, none of the known
_CHANGELOG_BASENAMES matched the intended file. The extraction fell back to
picking the largest diff among the bundled subcomponent changelogs, which
is unrelated to the perl core changes being upgraded.

perl's actual per-version release notes live in pod/perldelta.pod, which
is large enough to still win the "largest diff" comparison once
recognized. Add it to _CHANGELOG_BASENAMES so it is considered like any
other known changelog filename.

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py

index 74adb294021891ccb44bbdc24796727746ca8dd9..13d51bf9527d27070102aa79c421cea0bd87fd00 100644 (file)
@@ -43,6 +43,7 @@ logger = logging.getLogger('devtool')
 # history.rst - python3-idna, python3-docutils
 # releases.md - rust, cargo (includes CVEs)
 # whatsnew.txt - libsdl2
+# perldelta.pod - perl
 _CHANGELOG_BASENAMES = {
     'changelog', 'changelog.md', 'changelog.rst', 'changelog.txt',
     'changes', 'changes.md', 'changes.rst', 'changes.txt',
@@ -51,6 +52,7 @@ _CHANGELOG_BASENAMES = {
     'releasenotes.md', 'releasenotes.rst',
     'releases.md',
     'whatsnew.txt',
+    'perldelta.pod',
 }
 
 def _run(cmd, cwd=''):