From patchwork Thu Dec 8 16:20:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 631889 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp321801pvb; Thu, 8 Dec 2022 08:21:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6QeLiivzrJ5CMOM2Uf8Wfvhb8ZEloYVEpIxd/flweySJ4eKGKcBVVd/inCZ3Cor/DlbDMt X-Received: by 2002:a05:622a:1b89:b0:39c:da21:6c13 with SMTP id bp9-20020a05622a1b8900b0039cda216c13mr4548740qtb.21.1670516494443; Thu, 08 Dec 2022 08:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670516494; cv=none; d=google.com; s=arc-20160816; b=zPMmrcIPJSGU7kXGC8lyYqg+jrSQEQYTwDzY57UpGFbuNHGXHpkLd/SY/6UxXY6WCm LXwLYQ/hejbqELI/3SR3BrHAoF2ZI7HSgw/oM1OW7NC8QAQUl0OwNrOZet+KhI5hEKBA U1caxNN1ZYWGkRFNIlJME1b+HsCX3t7GQSx1eHMxQYVtke8iLo871SWZeaCCPLAhcOXL 3Ou80mvyWv1nFt483N6DJML+lSpNDmVcsFcG6nJim4JsjakXojO4YDyqUfHHrnamdrzr jK4e3o2H14Sl0bmjSe55hUoveURFBYlQOJMmplo9rX9/qchyl7Tft5Nx8BWeM/sskWhQ 9DUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ORV8lB1xtzAjtK0MGnq2okA7cpON1mRvSayS0/wGNEE=; b=J+MZqJXPh2ocuZeEM+BPOgBd7PrqX+NBjZuUAnMwq4l8TXFciGrG1tRA5D1EWUjFIW qHFxM5UknmRFWDozCWmYctKKhmw62X7ULS5u6Ep7XHLSmA2fZec4i/DaTuhfn2OBunDO b9mwl5FYf9xhFKvZDwcPtjNt4ErCs/qMqLns9Ro4V0AUZfTLB5mkEFPniS2ENRQL7r1j LCAggsujmJBXJIsUWaXISUt1hI0Nje3ImTFcVTDEKSaXDNm+yXRS68iE6BndGr8Xs96m Gadu3XAVkAIzRo+r71V1KuhH5hY65bfG1uCPnMg2PrBZjxkoI36LYgGNQpyFPE20C3im eczA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HlO9UStz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q14-20020a05620a0d8e00b006fa4afd27a2si12760200qkl.592.2022.12.08.08.21.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Dec 2022 08:21:34 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HlO9UStz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Jdv-0008FJ-7a; Thu, 08 Dec 2022 11:21:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3Jdr-0008Eo-5b for qemu-devel@nongnu.org; Thu, 08 Dec 2022 11:21:00 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3Jdp-0005PI-AI for qemu-devel@nongnu.org; Thu, 08 Dec 2022 11:20:58 -0500 Received: by mail-wr1-x431.google.com with SMTP id y16so2222431wrm.2 for ; Thu, 08 Dec 2022 08:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ORV8lB1xtzAjtK0MGnq2okA7cpON1mRvSayS0/wGNEE=; b=HlO9UStzLMGfTv3rmS+tRDICU0t5dkCEU+fbqoDZRdE/3VVAUcakooXA0lJjXKwach PRl7oXD8oGLS+v8XaBduMnJP1x6+nhWvDHlkrc64DVu9Oe2uamXfzA9py/KAoWPBhJTu yWfZ+3c7J4l2i3/sq9DWh58meoXhUGTAYYOBFVRB+WTIkKw9Qe5PouuNZpIsd5AbNIgR PKmVnpXYcNisYKEw9kjgAEI4ifYE+jPOjjHcdN3TsqOwj+Dp3fv0GcaO8gei+Ra/FqkZ 2Lob3FWFbWlp62JJpnGzeTdU5r4afxhZg4dddFAFyyw3+AeLt6sY89jKOdpqoDL6U9DK 79Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ORV8lB1xtzAjtK0MGnq2okA7cpON1mRvSayS0/wGNEE=; b=GFse3o5CrWhTtLFZTT2XUuyemNeqqsx1SlIfsf7vWeC/K3Yccu66d0CJU8y8BNamJw aFWfTPerkj0zhQIwUwinoG3uqcVk+CNooArZwreDw4B3JcVhyJiy3+3bA0cuxPHQpdl1 ywBQ/e05y/O2h45do0r+esgcLzhAmCyze3JQ6cHxPFiM7NCcB/cnWLk87f/MFh0Nr8/+ VgFwUKELyuZPcm9ZGWwcoMkWuMO5p9kt3U6TGvalv0NEIlD+cLz8MZmvT7Yo5/4x0dSt eBv4I3nJxIT2Qovf5mDz7gqeOSlIKL2RzLio2fOGgDI9tcCuM6CH+iyCwLdIf67BUaVH bqAA== X-Gm-Message-State: ANoB5pnOxmctndFcBbRrpMd1GrsWY/XPEJrWw4sMbuJnTkeDdZdpXfIZ LhOiLie+nj+W/UScqdak/5xsrflOmDyWQRFLzqs= X-Received: by 2002:a5d:4746:0:b0:242:931:6f63 with SMTP id o6-20020a5d4746000000b0024209316f63mr1735859wrs.64.1670516455235; Thu, 08 Dec 2022 08:20:55 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id w1-20020a5d5441000000b002422b462975sm21608850wrv.34.2022.12.08.08.20.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 08 Dec 2022 08:20:54 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , qemu-trivial@nongnu.org, Thomas Huth , Eric Blake , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Beraldo Leal , Gerd Hoffmann Subject: [PATCH] scripts/archive-source: Use more portable argument with tar command Date: Thu, 8 Dec 2022 17:20:51 +0100 Message-Id: <20221208162051.29509-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org When using the archive-source.sh script on Darwin we get: tar: Option --concatenate is not supported Usage: List: tar -tf Extract: tar -xf Create: tar -cf [filenames...] Help: tar --help Replace the long argument added by commit 8fc76176f6 ("scripts: use git-archive in archive-source") by their short form to keep this script functional. Signed-off-by: Philippe Mathieu-Daudé --- scripts/archive-source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh index 23e042dacd..6a710a212e 100755 --- a/scripts/archive-source.sh +++ b/scripts/archive-source.sh @@ -67,7 +67,7 @@ for sm in $submodules; do esac (cd $sm; git archive --format tar --prefix "$sm/" $(tree_ish)) > "$sub_file" test $? -ne 0 && error "failed to archive submodule $sm ($smhash)" - tar --concatenate --file "$tar_file" "$sub_file" + tar -c -f "$tar_file" "$sub_file" test $? -ne 0 && error "failed append submodule $sm to $tar_file" done exit 0