• [gentoo-dev] [PATCH 2/2] linux-info.eclass: getfilevar: pass dot-config

    From Mike Gilbert@21:1/5 to All on Mon Sep 13 18:30:02 2021
    This disables the kernel config check for versions prior to 5.4.

    Bug: https://bugs.gentoo.org/811726
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    eclass/linux-info.eclass | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
    index 97f7b5c06a9..9eae5ad589b 100644
    --- a/eclass/linux-info.eclass
    +++ b/eclass/linux-info.eclass
    @@ -205,9 +205,10 @@ getfilevar() {

    # We use nonfatal because we want the caller to take care of things #373151
    # Pass need-config= to make to avoid config check in kernel Makefile.
    + # Pass dot-config=0 to avoid the config check in kernels prior to 5.4.
    [[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; }
    echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
    - nonfatal emake -C "${basedname}" M="${T}" need-config= ${BUILD_FIXES} -s -f - 2>/dev/null
    + nonfatal emake -C "${basedname}" M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null

    ARCH=${myARCH}
    fi
    --
    2.33.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to Mike Gilbert on Tue Sep 14 00:30:02 2021
    On 9/13/21 12:27 PM, Mike Gilbert wrote:
    This disables the kernel config check for versions prior to 5.4.

    Bug: https://bugs.gentoo.org/811726
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    eclass/linux-info.eclass | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
    index 97f7b5c06a9..9eae5ad589b 100644
    --- a/eclass/linux-info.eclass
    +++ b/eclass/linux-info.eclass
    @@ -205,9 +205,10 @@ getfilevar() {

    # We use nonfatal because we want the caller to take care of things #373151
    # Pass need-config= to make to avoid config check in kernel Makefile.
    + # Pass dot-config=0 to avoid the config check in kernels prior to 5.4.
    [[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; }
    echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
    - nonfatal emake -C "${basedname}" M="${T}" need-config= ${BUILD_FIXES} -s -f - 2>/dev/null
    + nonfatal emake -C "${basedname}" M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null

    ARCH=${myARCH}
    fi


    --

    LGTM, will continue to run local tests

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)