Source: uwsgi
Version: 2.0.21-4
Severity: normal
Tags: patch

Hi,

please skip running shellcheck if checks are requested not to be run
during the build. The attached patch fixes this problem.

Thanks!

cheers, josch
>From 676e896c01cab3c91813ac39abf1ba692f38e98f Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <jo...@mister-muffin.de>
Date: Fri, 24 Feb 2023 10:45:29 +0100
Subject: [PATCH] debian/rules: do not run shellcheck for
 DEB_BUILD_OPTIONS=nocheck

---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 6a0d6a33..aa57e660 100755
--- a/debian/rules
+++ b/debian/rules
@@ -568,11 +568,13 @@ clean::
 
 common-build-indep:: debian/test-shellcheck
 debian/test-shellcheck:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
        find debian \
                -type f -not -empty -regextype egrep \
                -regex '.*(postinst|prerm|rtupdate|init\.d).*' \
                -exec shellcheck -e SC1090,SC1091,SC2034,SC2043 -s sh {} +
        shellcheck -e SC1091,SC2001,SC2034,SC2162 -s bash 
debian/uwsgi-files/init/*
+endif
        touch $@
 clean::
        rm -f debian/test-shellcheck
-- 
2.37.2

Reply via email to