From 2329d89c8c33a959aeb553f20aebc8b34d6102b0 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 13 Feb 2024 16:54:33 +0100 Subject: [PATCH] share/containers/, .github/workflows/: Don't make(1) twice It was being done so that the second one prints errors without races. However, the same thing can be achieved by passing -Orecurse to make(1). And this makes the logs even more readable, since there's no racy output at all. Fixes: 97f79e3b2715 ("CI: Make build logs more readable") Link: Link: Acked-by: Iker Pedrosa Cc: Andrew Clayton Cc: Konstantin Pavlov Cc: Dylan Arbour Signed-off-by: Alejandro Colomar --- .github/workflows/static-code-analysis.yml | 5 +---- share/containers/alpine.dockerfile | 3 +-- share/containers/debian.dockerfile | 3 +-- share/containers/fedora.dockerfile | 3 +-- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index b9cfb4e9da..59e4a16d98 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -32,10 +32,7 @@ jobs: - name: Build shadow-utils run: | PROCESSORS=$(/usr/bin/getconf _NPROCESSORS_ONLN) - make -kj$PROCESSORS || true - - - name: Check build errors - run: make + make -Orecurse -j$PROCESSORS - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/share/containers/alpine.dockerfile b/share/containers/alpine.dockerfile index 07d496c3fe..04abd86987 100644 --- a/share/containers/alpine.dockerfile +++ b/share/containers/alpine.dockerfile @@ -9,8 +9,7 @@ COPY ./ /usr/local/src/shadow/ WORKDIR /usr/local/src/shadow/ RUN ./autogen.sh --without-selinux --disable-man --disable-nls --with-yescrypt -RUN make -kj4 || true -RUN make +RUN make -Orecurse -j4 RUN make check RUN make install diff --git a/share/containers/debian.dockerfile b/share/containers/debian.dockerfile index 09492939d0..bf997d7977 100644 --- a/share/containers/debian.dockerfile +++ b/share/containers/debian.dockerfile @@ -15,8 +15,7 @@ COPY ./ /usr/local/src/shadow/ WORKDIR /usr/local/src/shadow/ RUN ./autogen.sh --without-selinux --enable-man --with-yescrypt -RUN make -kj4 || true -RUN make +RUN make -Orecurse -j4 RUN make check RUN make install diff --git a/share/containers/fedora.dockerfile b/share/containers/fedora.dockerfile index 85e8b4808c..f4c91e39c8 100644 --- a/share/containers/fedora.dockerfile +++ b/share/containers/fedora.dockerfile @@ -12,8 +12,7 @@ RUN ./autogen.sh --enable-shadowgrp --enable-man --with-audit \ --with-sha-crypt --with-bcrypt --with-yescrypt --with-selinux \ --without-libpam --enable-shared --without-libbsd \ --with-group-name-max-length=32 --enable-lastlog --enable-logind=no -RUN make -kj4 || true -RUN make +RUN make -Orecurse -j4 RUN make check RUN make install