Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949735 - dev-lang/perl-5.40.0-r1: Incorrect use of REPLACING_VERSIONS
Summary: dev-lang/perl-5.40.0-r1: Incorrect use of REPLACING_VERSIONS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 589444
  Show dependency tree
 
Reported: 2025-02-14 16:43 UTC by Ulrich Müller
Modified: 2025-02-22 08:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for perl-5.40.0-r1.ebuild (perl-5.40.0-r1.ebuild.diff,1.46 KB, patch)
2025-02-14 16:44 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2025-02-14 16:43:23 UTC
In check_rebuild():

    elif [[ "${REPLACING_VERSIONS%.*}" != "${PV%.*}" ]]; then

REPLACING_VERSIONS is a space-separated list and can contain zero or more version elements, therefore it cannot be used in a comparison like this.
Comment 1 Ulrich Müller gentoo-dev 2025-02-14 16:44:51 UTC
Created attachment 918934 [details, diff]
Patch for perl-5.40.0-r1.ebuild

Something like this patch should fix it.
(Only included one ebuild, the others are the same.)
Comment 2 Ulrich Müller gentoo-dev 2025-02-15 10:05:48 UTC
Fix added to https://github.com/gentoo/gentoo/pull/40573
Comment 3 Larry the Git Cow gentoo-dev 2025-02-22 08:02:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de0b9ff858352a9278a8f000627eb970c0f80ed3

commit de0b9ff858352a9278a8f000627eb970c0f80ed3
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2025-02-15 09:57:48 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2025-02-22 07:57:49 +0000

    dev-lang/perl: Fix incorrect REPLACING_VERSIONS usage
    
    Closes: https://bugs.gentoo.org/949735
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 dev-lang/perl/perl-5.40.0-r1.ebuild  | 17 ++++++++++-------
 dev-lang/perl/perl-5.40.1_rc1.ebuild | 17 ++++++++++-------
 2 files changed, 20 insertions(+), 14 deletions(-)