From 7a18846c609c1ddc4d5fd952a563b4906c662b1d Mon Sep 17 00:00:00 2001 From: Alex Belkin Date: Mon, 6 Nov 2023 09:39:37 +0300 Subject: [PATCH] CI: Workaround build failures on Alpine It's confirmed that neither Alpine nor Musl will fix ioctl warnings[1] that making alpine build to fail and that these warnings are harmless[2]. sanei_usb.c:4042:34: error: overflow in conversion from 'long unsigned int' to 'int' changes value from '3221771554' to '-1073195742' [-Werror=overflow] 4042 | if (ioctl (devices[dn].fd, SCANNER_IOCTL_CTRLMSG, &c) < 0) | ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Link: https://gitlab.alpinelinux.org/alpine/aports/-/issues/7580 Link: https://www.openwall.com/lists/musl/2020/01/20/3 --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6334acbd9..f68aa3602 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,8 +38,8 @@ make-dist: - mkdir build - cd build - tar xzf ../sane-backends-*.tar.gz --strip-components=1 - - ./configure $CONFIGURE_OPTS - - make -j2 -k $MAKE_FLAGS + - (set -x; ./configure $CONFIGURE_OPTS) + - eval "(set -x; make -j2 -k $MAKE_FLAGS)" debian-10-full: image: $REGISTRY_HUB:debian-buster-full @@ -87,9 +87,8 @@ alpine-3.15-musl: image: $REGISTRY_HUB:alpine-3.15-musl variables: CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL" - MAKE_FLAGS: "CFLAGS=-Werror CXXFLAGS=-Werror" + MAKE_FLAGS: "CFLAGS='-Werror -Wno-pedantic' CXXFLAGS=-Werror" <<: *compile_definition - allow_failure: true ubuntu-22.04-lts: image: $REGISTRY_HUB:ubuntu-jammy-dist