• [gentoo-dev] [PATCH 4/8] linux-mod.eclass: improve error handling for m

    From Sam James@21:1/5 to All on Wed Oct 12 01:00:02 2022
    doins will 'die for us' in newer EAPIs, and add missing || dies to compressor calls.

    Signed-off-by: Sam James <[email protected]>
    ---
    eclass/linux-mod.eclass | 18 +++++++++---------
    1 file changed, 9 insertions(+), 9 deletions(-)

    diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
    index e837916b881a..e4c71cdf2c15 100644
    --- a/eclass/linux-mod.eclass
    +++ b/eclass/linux-mod.eclass
    @@ -716,22 +716,22 @@ linux-mod_src_install() {
    # and similarily compress the module being built if != NONE.

    if linux_chkconfig_present MODULE_COMPRESS_XZ; then
    - xz -T$(makeopts_jobs) ${modulename}.${KV_OBJ}
    - doins ${modulename}.${KV_OBJ}.xz || die "doins ${modulename}.${KV_OBJ}.xz failed"
    + xz -T$(makeopts_jobs) ${modulename}.${KV_OBJ} || die "Compressing ${modulename}.${KV_OBJ} with xz failed"
    + doins ${modulename}.${KV_OBJ}.xz
    elif linux_chkconfig_present MODULE_COMPRESS_GZIP; then
    if type -P pigz ; then
    - pigz -n$(makeopts_jobs) ${modulename}.${KV_OBJ} + pigz -n$(makeopts_jobs) ${modulename}.${KV_OBJ} || die "Compressing ${modulename}.${KV_OBJ} with pigz failed"
    else
    - gzip ${modulename}