Message ID | 20220913062213.9059-1-ynezz@true.cz |
---|---|
State | Accepted |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=bzROen6y; dkim=fail reason="key not found in DNS" header.d=true.cz header.i=@true.cz header.a=rsa-sha256 header.s=xnet header.b=k0XSdyHM; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MRYP608nGz1ypR for <incoming@patchwork.ozlabs.org>; Tue, 13 Sep 2022 16:25:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=k1DCBWI4HVEfCisr1zGVaBrLY62/z/jCJxY48NsOuYQ=; b=bzROen6ykFYgvl uNlQ/purXM8ilrcQVyjPZNUfrexB1APV8ue2xSiCAQmCGFGcSWsTarh7Z+k0ztrt5n6CYV8U/Tt75 5TINAhvqLlZV2Uz1R4Q8lbyNEhaSjpnA0xV1PHOR+Ma4ewh75VoFA/vCZqCssUlsJadV8pi/n+TGP QOsp2Ubo8mIifFsEFDTJvlIpkiYf+V7nhYRTIgC8KjFGvaFCqHy4SkxI8i7GFhk+PZbwRO3z8raLa D5rUP9pe3dbvAeXmV6Wtkm0zsKtPtfHTmJG+FooMqBd5g48b0RTz/zYyj1tSzH1ZMjwGt3RBK9RS3 ejcA9zNiZ89O1QdpT5bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXzJc-002vN0-Ln; Tue, 13 Sep 2022 06:22:37 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXzJR-002vCY-SQ for openwrt-devel@lists.openwrt.org; Tue, 13 Sep 2022 06:22:28 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id AC5801816A; Tue, 13 Sep 2022 08:22:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=true.cz; s=xnet; t=1663050138; bh=Q1FiYT65ASY2LMKqPMp82kwS990UCfYfFDLdrRP9+Ho=; h=From:To:Cc:Subject:Date; b=k0XSdyHMGPV2Bzk8u6CFoZ8EUSUUNNlnaP1XIz2VHxsN2HE6ptgQU01XoH1uIPuvA keAgJweUVaBajDu7Lk/jGYwmYToQrV6zQfmSu9nYjI3UpwMGrpo6rleXmK8JRoIhXR ImlcuDq705Dc4xfmnJpK/THiSrGQN0CJl7AcErdQ= Received: by meh.true.cz (OpenSMTPD) with ESMTP id 7d06ad25; Tue, 13 Sep 2022 08:21:55 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= <ynezz@true.cz> To: openwrt-devel@lists.openwrt.org Cc: =?utf-8?q?Petr_=C5=A0tetiar?= <ynezz@true.cz> Subject: [PATCH 1/2] scripts/download.pl: silence can't exec curl warning Date: Tue, 13 Sep 2022 08:22:12 +0200 Message-Id: <20220913062213.9059-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220912_232226_519555_2943EF21 X-CRM114-Status: GOOD ( 10.27 ) X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: When running build in verbose mode `make V=s` we can see a lot of following warnings when curl is not available in the system: Can't exec "curl": No such file or directory at scripts/download.pl line 77. Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
[1/2] scripts/download.pl: silence can't exec curl warning
|
expand
|
diff --git a/scripts/download.pl b/scripts/download.pl index ab1801aad5ae..90a1be4e2614 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -74,7 +74,7 @@ sub download_cmd($) { my $url = shift; my $have_curl = 0; - if (open CURL, '-|', 'curl', '--version') { + if (open CURL, "curl --version 2>/dev/null |") { if (defined(my $line = readline CURL)) { $have_curl = 1 if $line =~ /^curl /; }
When running build in verbose mode `make V=s` we can see a lot of following warnings when curl is not available in the system: Can't exec "curl": No such file or directory at scripts/download.pl line 77. So lets fix it by redirecting of the stderr to null hole. Signed-off-by: Petr Štetiar <ynezz@true.cz> --- scripts/download.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)