[gparted] Fix make distcheck in Alpine Linux CI test job (!104)



commit b7f951bcb8b02cad394f3f0c8cdcc96b41678590
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sun Jun 19 09:32:27 2022 +0100

    Fix make distcheck in Alpine Linux CI test job (!104)
    
    The make distcheck step of the CI test job fails like this on Alpine
    Linux:
        $ make distcheck
        ...
        make[1]: Leaving directory '/home/alpine/programming/c/gparted'
        if test -d "gparted-1.4.0-git"; then find "gparted-1.4.0-git" -type d ! -perm -200 -exec chmod u+w {} 
';' && rm -rf "gparted-1.4.0-git" || { sleep 5 && rm -rf "gparted-1.4.0-git"; }; else :; fi
        case 'gparted-1.4.0-git.tar.gz' in \
        *.tar.gz*) \
          eval GZIP= gzip --best -dc gparted-1.4.0-git.tar.gz | ${TAR-tar} xf - ;;\
        *.tar.bz2*) \
          bzip2 -dc gparted-1.4.0-git.tar.bz2 | ${TAR-tar} xf - ;;\
        *.tar.lz*) \
          lzip -dc gparted-1.4.0-git.tar.lz | ${TAR-tar} xf - ;;\
        *.tar.xz*) \
          xz -dc gparted-1.4.0-git.tar.xz | ${TAR-tar} xf - ;;\
        *.tar.Z*) \
          uncompress -c gparted-1.4.0-git.tar.Z | ${TAR-tar} xf - ;;\
        *.shar.gz*) \
          eval GZIP= gzip --best -dc gparted-1.4.0-git.shar.gz | unshar ;;\
        *.zip*) \
          unzip gparted-1.4.0-git.zip ;;\
        *.tar.zst*) \
          zstd -dc gparted-1.4.0-git.tar.zst | ${TAR-tar} xf - ;;\
        esac
        gzip: unrecognized option: best
        BusyBox v1.35.0 (2022-05-09 17:27:12 UTC) multi-call binary.
    
        Usage: gzip [-cfkdt123456789] [FILE]...
    
        Compress FILEs (or stdin)
    
                -1..9   Compression level
                -d      Decompress
                -c      Write to stdout
                -f      Force
                -k      Keep input files
                -t      Test integrity
        tar: short read
        make: *** [Makefile:844: distcheck] Error 1
    
    Busybox gzip is erroring because it doesn't make sense to request best
    compression when decompressing to stdout in this command:
        eval GZIP= gzip --best -dc gparted-1.4.0-git.tar.gz | ${TAR-tar} xf -
    
    Fix by installing the GNU gzip package into Alpine Linux test CI job docker
    image.
    
    Closes !104 - Add Alpine Linux CI jobs and resolve label and UUID issues
                  with FAT16/32

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7b3c8613..5a01535b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ stages:
     # Extra packages only needed during the test stage.
     - apk add btrfs-progs btrfs-progs-extra e2fsprogs e2fsprogs-extra exfatprogs
               dosfstools mtools f2fs-tools jfsutils cryptsetup lvm2 udftools
-              xfsprogs xfsprogs-extra xvfb-run kmod
+              xfsprogs xfsprogs-extra xvfb-run kmod gzip
 
 .centos_image_template: &centos_image_definition
   # Use official CentOS image https://hub.docker.com/_/centos/.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]