From patchwork Fri Feb 19 21:21:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Fazio X-Patchwork-Id: 1442458 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=xes-inc.com header.i=@xes-inc.com header.a=rsa-sha256 header.s=mail header.b=jy9l4/vM; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Dj4KJ3sRbz9sVw for ; Sat, 20 Feb 2021 08:22:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A4C1586C72; Fri, 19 Feb 2021 21:22:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7jC2KC3XPD7u; Fri, 19 Feb 2021 21:22:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 846DE86C56; Fri, 19 Feb 2021 21:22:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 7D2AA1BF32E for ; Fri, 19 Feb 2021 21:22:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6C15A60690 for ; Fri, 19 Feb 2021 21:22:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lV5FJQqWFdHW for ; Fri, 19 Feb 2021 21:22:03 +0000 (UTC) Received: by smtp3.osuosl.org (Postfix, from userid 1001) id BCD2260707; Fri, 19 Feb 2021 21:22:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mail.xes-mad.com (mail.xes-mad.com [162.248.234.2]) by smtp3.osuosl.org (Postfix) with ESMTPS id 7B0B460690 for ; Fri, 19 Feb 2021 21:22:02 +0000 (UTC) Received: from vfazio1.xes-mad.com (vfazio1.xes-mad.com [10.52.16.140]) by mail.xes-mad.com (Postfix) with ESMTP id 61C1520365; Fri, 19 Feb 2021 15:22:01 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xes-inc.com; s=mail; t=1613769721; bh=/9sb1fejIVzCZuvWVrmGQwWCBUqTt7rgMvfo/t+Zp2Y=; h=From:To:Cc:Subject:Date:From; b=jy9l4/vMSPza2ant8Xpvx0IZZJV2x6ng6dKuTkndlKyrppFT3jWnG2IxsHCr6ybbg xhluEwfWDYo0KHhf5Q+ZRQdYoEQq/5cWb6sRdLIU4fmWCNtTp9WnLUV8BAKdsWgieO NmbrV7hQWflVfQz1EdhhOUdMrugIF9/8StCdIuO4= From: Vincent Fazio To: buildroot@buildroot.org Date: Fri, 19 Feb 2021 15:21:54 -0600 Message-Id: <20210219212154.27107-1-vfazio@xes-inc.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] support/download/svn: fix date format for archive creation X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E . MORIN" , Vincent Fazio Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Previously we would use the date provided by: `svn info --show-item last-changed-date ...` The date returned from this command could include sub-second precision which is not compatible with the PAX options we specify to GNU tar. Now the returned date is massaged to drop the sub-seconds. Signed-off-by: Vincent Fazio --- support/download/svn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/download/svn b/support/download/svn index 839dccaf62..ea1032267f 100755 --- a/support/download/svn +++ b/support/download/svn @@ -52,6 +52,9 @@ _svn export ${verbose} "${@}" "'${uri}@${rev}'" "'${basename}'" # last line (svn outputs everything on stdout) date="$( _svn info --show-item last-changed-date "'${uri}@${rev}'" |tail -n 1 )" +# Drop sub-second precision to play nice with GNU tar's valid_timespec check +date="$( date -d "${date}" -uIseconds )" + # Generate the archive. # We did a 'svn export' above, so it's not a working copy (there is no .svn # directory or file to ignore).