From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UNEhCGfH5GBc1QAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 23:13:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id h2PIA2fH5GApKQAA1q6Kng (envelope-from ) for ; Tue, 06 Jul 2021 21:13:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A8C2714E15 for ; Tue, 6 Jul 2021 23:13:10 +0200 (CEST) Received: from localhost ([::1]:34838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0sNR-0008Jq-M2 for larch@yhetil.org; Tue, 06 Jul 2021 17:13:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0sNL-0008He-N8 for guix-patches@gnu.org; Tue, 06 Jul 2021 17:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0sNL-0004Jq-AG for guix-patches@gnu.org; Tue, 06 Jul 2021 17:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0sNL-0000vi-4v for guix-patches@gnu.org; Tue, 06 Jul 2021 17:13:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49348] [PATCH v2 4/4] build: pack: Mute error output when checking if tar supports --sort. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Jul 2021 21:13:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49348 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49348@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 49348-submit@debbugs.gnu.org id=B49348.16256059483511 (code B ref 49348); Tue, 06 Jul 2021 21:13:03 +0000 Received: (at 49348) by debbugs.gnu.org; 6 Jul 2021 21:12:28 +0000 Received: from localhost ([127.0.0.1]:50350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0sMm-0000uZ-DX for submit@debbugs.gnu.org; Tue, 06 Jul 2021 17:12:28 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:40834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0sMl-0000uA-0e for 49348@debbugs.gnu.org; Tue, 06 Jul 2021 17:12:27 -0400 Received: by mail-qk1-f179.google.com with SMTP id t19so7011817qkg.7 for <49348@debbugs.gnu.org>; Tue, 06 Jul 2021 14:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Enlo/v+uwX3DqIqK0rv0/tx/vOVYUd27LjmnXtaM8oI=; b=GU+BmQPMOlIsD0rc5PpBLGv6OH0xvuLimbtRGug+08hsGXNUn+0PCIQZI9Too1pgLt 2/LXZxLlJ1WcDfHabpmm0IuM2fNafcBZdH+Z05+54Y1QMxB+TcGlJoQuKD3Q7ln0rZxB MQjAvC9i5O2GEl/XLieDZhfxA9tXX9Hk+xI1hEfJ0zUxOHQNhuzFNeZgULmX/hMl4SBU p6IPp1ZceLVobNGN8MqrU+GCWK/ynh54bHuKVIbXqfJltQ1LhjvmI4PMfWFBwfSKMIcM Yl6z7HTtL8XjenTHUfsP+drF9lnSh7Ws44wMsf2ZeEFP6OVGqv2506RESceiy1LAydyw r0fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Enlo/v+uwX3DqIqK0rv0/tx/vOVYUd27LjmnXtaM8oI=; b=RwQDMYcI+crGGCFtwpBkPMj4bKy1QTPe9cG4ycyS7LbFkn2o3vqFxat+/0lhhSlcZU hsBt5qH2gY4fJXKz3X3ADkX3nivmevO7KzqvFwH2rVLU91wM7uBscr+frnUSlzvD8hFS 5p8nP5SmNT/x8Bhj2CTSZZTptXjQSqDr7BslBxpxhdHMO2+q/71ZdSNequH180loIg9n K5qlrwqhN0MuvaMyjnC7CtQm4f0vJO6xd8nr/rzm/rH4x+Z0XwVusrBjDQAKDddqeBr+ wN/3qV77Z9u8tqeKnagGnNpz1yXuszCopHQzewka++yFKV/bbb8sp9djSB2VK4OLYUtQ FqpA== X-Gm-Message-State: AOAM530rbGAeg7pyCQ0MFfQWqzA08SlEa5ieRTjRJoR6AtV6FWmdqF+p 6CXmCxBGlSv88TozmD7qgxY7mFgbAGNO3Q== X-Google-Smtp-Source: ABdhPJwDhRitq5MoI7ltxvcIPnUPF0AEdXbQGTGfe2pxGGcw7yUvDP4Z/LnD6kKiqg9cSY2uwRe6lQ== X-Received: by 2002:a37:5886:: with SMTP id m128mr21725868qkb.414.1625605941583; Tue, 06 Jul 2021 14:12:21 -0700 (PDT) Received: from localhost.localdomain (dsl-205-233-125-111.b2b2c.ca. [205.233.125.111]) by smtp.gmail.com with ESMTPSA id s19sm7240662qks.77.2021.07.06.14.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 14:12:21 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 6 Jul 2021 17:11:39 -0400 Message-Id: <20210706211139.2806-4-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210706211139.2806-1-maxim.cournoyer@gmail.com> References: <20210703060642.2424-1-maxim.cournoyer@gmail.com> <20210706211139.2806-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625605990; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Enlo/v+uwX3DqIqK0rv0/tx/vOVYUd27LjmnXtaM8oI=; b=V5Kh1HlgfJu3j/DYcC+ZKTqY7JomYaw0TzhAZP50YYF4rigIS3hrxcqlZk2XvlMv9UngOn YuQs6emEUJMKF5+HHcFI49+Obij+pgR/FqADk4o2s9N0oo+6rLIlHwsBVf5/UNSI0GYep0 c41q8N8m9nubOlQTWNMGa4uRtuRRWu/eOb2riA2ZeZgzr+4AUnJH54sXFa6cf+MGeHA/Dj KuPv/eNAalz6gLQ4dE5uEvfMywYhXK9coDScRH7P7L+rUcMGKhqkUjash02yAGGvoocgNV hz09CjnCNNVYNDOLLzow/EFEAFjc/Au5+AAer3uRUlWkrBJpzS9OG/4wrgbLPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625605990; a=rsa-sha256; cv=none; b=bfdsvI8LIuvlmY9sEg1zDXLzF+AHGGIesNZnojUZ7iL1zKsSufjiY4eYDOUljiZoqXGoHd 8dbjxlXLERMhgXMma5YAidzJp6EP1Wdo9KSKI7dyvxWWg3Ni1lNeSvesEgv1ShnzZ6BAMj GE8cWyvMZHPa/KgK1HQA7OTGK1dvFQoJnn6eHRDhQTudSupdkxRwc17N0m9bzR/QIaJwPx hmkQrSs5LZS+byXG4jbViYwc2tGB24lTkczV3XN1O1QmU9TpFuJKW22HMTwmYT3LAdY+pN OSyyxyFQyk80hOohZN5xbXev9hW9aEtFINQtq3eqeENXi9Sb2CBDJOwcZvFuZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=GU+BmQPM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=GU+BmQPM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A8C2714E15 X-Spam-Score: 2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: rKBCXsaquGJP * guix/build/pack.scm (tar-base-options) [tar-supports-sort?]: Redirect error output to void. --- guix/build/pack.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/guix/build/pack.scm b/guix/build/pack.scm index 05c7a3c594..3b73d1b227 100644 --- a/guix/build/pack.scm +++ b/guix/build/pack.scm @@ -27,8 +27,10 @@ deterministically. When TAR, a GNU tar command file name, is provided, the '(\"gzip\" \"-9n\"), is provided, the compressor is explicitly specified via the `-I' option." (define (tar-supports-sort? tar) - (zero? (system* tar "cf" "/dev/null" "--files-from=/dev/null" - "--sort=name"))) + (with-error-to-port (%make-void-port "w") + (lambda () + (zero? (system* tar "cf" "/dev/null" "--files-from=/dev/null" + "--sort=name"))))) `(,@(if compressor (list "-I" (string-join compressor)) -- 2.32.0