• [gentoo-dev] [PATCH 1/3] perl-module.eclass: remove EAPI 5

    From David Seifert@21:1/5 to All on Sat Jul 2 20:10:01 2022
    Signed-off-by: David Seifert <soap@gentoo.org>
    ---
    eclass/perl-module.eclass | 209 ++++++++++----------------------------
    1 file changed, 56 insertions(+), 153 deletions(-)

    diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
    index 273cc2bc805..f243be201ce 100644
    --- a/eclass/perl-module.eclass
    +++ b/eclass/perl-module.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2021 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: perl-module.eclass
    @@ -7,7 +7,7 @@
    # @AUTHOR:
    # Seemant Kulleen <seemant@gentoo.org>
    # Andreas K. Hüttel <dilfridge@gentoo.org>
    -# @SUPPORTED_EAPIS: 5 6 7 8
    +# @SUPPORTED_EAPIS: 6 7 8
    # @PROVIDES: perl-functions
    # @BLURB: eclass for installing Perl module distributions
    # @DESCRIPTION:
    @@ -19,11 +19,7 @@
    # ExtUtils::MakeMaker or Module::Build), we recommend to use perl-functions.eclass
    # instead.

    -case ${EAPI:-0} in
    - 5)
    - inherit eutils multiprocessing unpacker perl-functions
    - PERL_EXPF="src_unpack src_pr
  • From David Seifert@21:1/5 to All on Sat Jul 2 20:10:01 2022
    Signed-off-by: David Seifert <soap@gentoo.org>
    ---
    eclass/perl-functions.eclass | 18 ++++++++----------
    1 file changed, 8 insertions(+), 10 deletions(-)

    diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
    index 4adba921485..c1b67f54fa7 100644
    --- a/eclass/perl-functions.eclass
    +++ b/eclass/perl-functions.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2019 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: perl-functions.eclass
    @@ -8,7 +8,7 @@
    # Seemant Kulleen <seemant@gentoo.org>
    # Andreas K. Huettel <dilfridge@gentoo.org>
    # Kent Fredric <kentnl@gentoo.org>
    -# @SUPPORTED_EAPIS: 5 6 7 8
    +# @SUPPORTED_EAPIS: 6 7 8
    # @BLURB: helper functions eclass for perl modules
    # @DESCRIPTION:
    # The perl-functions eclass is designed to allow easier installation of perl @@ -16,16 +16,16 @@
    # It provides helper functions, no phases or variable manipulation in
    # global scope.

    -[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives
    -
    -
  • From David Seifert@21:1/5 to All on Sat Jul 2 20:10:01 2022
    Signed-off-by: David Seifert <soap@gentoo.org>
    ---
    eclass/perl-functions.eclass | 14 +++++++-------
    1 file changed, 7 insertions(+), 7 deletions(-)

    diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
    index c1b67f54fa7..106394afa15 100644
    --- a/eclass/perl-functions.eclass
    +++ b/eclass/perl-functions.eclass
    @@ -161,7 +161,7 @@ perl_fix_packlist() {

    # remove files that dont exist
    cat "${f}" | while read -r entry; do
    - if [ ! -e "${D}/${entry}" ]; then
    + if [[ ! -e ${D}/${entry} ]]; then
    einfo "Pruning surplus packlist entry ${entry}"
    grep -v -x -F "${entry}" "${f}" > "${packlist_temp}"
    mv "${packlist_temp}" "${f}"
    @@ -276,12 +276,12 @@ perl_check_env() {

    for i in PERL_MM_OPT PERL5LIB PERL5OPT PERL_MB_OPT PERL_CORE PERLPREFIX; do
    # Next unless match
    - [ -v $i ] || continue;
    + [[ -v $i ]] || continue;

    # Warn only once, and warn only when one of the bad values are set.
    # record failure here.
    - if [ ${errored:-0} == 0 ]; then
    - if [ -n "${I_KNOW_WHAT_I_AM_DOING