From patchwork Tue Dec 29 11:01:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1421185 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=rT7g99Sa; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D4s1X23GVz9sVq for ; Tue, 29 Dec 2020 22:01:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4525386D17; Tue, 29 Dec 2020 11:01:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A-Tz3ke6YR3M; Tue, 29 Dec 2020 11:01:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 00B9886D2C; Tue, 29 Dec 2020 11:01:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 81FD81BF3DA for ; Tue, 29 Dec 2020 11:01:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6AD7E871C7 for ; Tue, 29 Dec 2020 11:01:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BnDs5qcqcyVs for ; Tue, 29 Dec 2020 11:01:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8B40C871A4 for ; Tue, 29 Dec 2020 11:01:28 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id a12so14282847wrv.8 for ; Tue, 29 Dec 2020 03:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jh16zZOitaCaBUaGmi9zjv0BuyePv+cwzYFNh/v4vW8=; b=rT7g99SaN025TG1qJBnHlBcSRIbSFQaznOKXOyurfT4io3HoAZgEwBSTcJucrBqwcV 40AYC6Qi/cJBXAUqz4nmKmEMVCNnEn0L0Y8+L+rT6JMAJfg5sJa7Rc9lshHuXNHdaiqt qWH+l7jXbYBFgUDbIjhUU5AIOwl0/b9TG7xHkOCl1/SkDMcdr7Uutgy28TO+pSZ6Hqxn p3oDcwBrjR72T6Bo12w/MwfhFx/AkTne4uciwNdjMcH7/Mk6uqlrpI0RH1aoAav2t+fh wpMzrVUsUScn2HpLhYPhL6LCxwgiZ2FOS28IuwcOqgHtNQmgESaAPtyfkhsCDQsH32Yp rxqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Jh16zZOitaCaBUaGmi9zjv0BuyePv+cwzYFNh/v4vW8=; b=jNz+62Q4fMocc/9NzVrgYsFs2FXTDsLt1OFQOeHfZfTidF9eGtvAOX2nkdezvoe3KM pOAvhoF/5yp3BbYRSEFq4r/4vvkZ0g01/RoT6ap5VKsIjc37BarpuxQuoaJsyMp5Ew13 vCb562XQyoB7dzKuoL5QYGXGhsDcG7wA84379k+MWe94n8QLiXVZ1nTG2jbGIBMIvDX2 UiG/hSf/qTgST2Xypl/rZhHqU+BNi9pxbj6AHr6mCpf8DMgczmR8WCU0iETmkkhLhE4U sbK7jJknirZyNCH5/PKVXe91fwSZmy1jqBGLa/8NOij/b1bHZH9KGVROpv5xVDAITxXa EL/w== X-Gm-Message-State: AOAM532US33i/WrEGLZuKAvdEZ5H6wkyxfzeSKZ8FlrZBuoqlX59CmOq NYsQYQTBgwiAgB1wFd4f7c+hjRYaV+c= X-Google-Smtp-Source: ABdhPJxqzB80Jza/CAEwk5tElqefiy+k7NkQ/KFlFVekKMxFy7uoZmyOL6Y4oGqMnFyzpxsLmmmRoQ== X-Received: by 2002:adf:d84e:: with SMTP id k14mr55235709wrl.104.1609239687110; Tue, 29 Dec 2020 03:01:27 -0800 (PST) Received: from scaer.home ([2a01:cb19:8b51:cb00:5459:5fc6:57c1:a482]) by smtp.gmail.com with ESMTPSA id u9sm2986787wmb.32.2020.12.29.03.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Dec 2020 03:01:26 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 29 Dec 2020 12:01:15 +0100 Message-Id: <7077b14d19b9d645fa45dcc39f8c62212216c4af.1609239666.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 07/10 v3] support/download: cleanup svn backend 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: Heiko Thiery , "Yann E. MORIN" , Thomas Petazzoni , Vincent Fazio Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Commit 89f5e9893 (support/download/svn: generate reproducible svn archives) did what it said, but can be siplified a bit. Indeed, we are doing an svn export, so we won't have any of the .svn directories, neither at the root of the extract, nor in any of the sub-directories. As such, we do not need to filter them out when we generate the list of files to include in the archive. Signed-off-by: Yann E. MORIN Cc: Heiko Thiery Cc: Thomas Petazzoni Cc: Vincent Fazio Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Vincent Fazio --- support/download/svn | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/support/download/svn b/support/download/svn index 012f286dd9..b7a6ac7443 100755 --- a/support/download/svn +++ b/support/download/svn @@ -46,10 +46,9 @@ _svn export ${verbose} "${@}" "'${uri}@${rev}'" "'${basename}'" date="$( _svn info --show-item last-changed-date "'${uri}@${rev}'" |tail -n 1 )" # Generate the archive, sort with the C locale so that it is reproducible. -# We do not want the .svn dir; we keep other .svn files, in case they are the -# only files in their directory. -find "${basename}" -not -type d \ - -and -not -path "./.svn/*" >"${output}.list" +# We did a 'svn export' above, so it's not a working copy (there is no .svn +# directory or file to ignore). +find "${basename}" -not -type d >"${output}.list" LC_ALL=C sort <"${output}.list" >"${output}.list.sorted" # Create GNU-format tarballs, since that's the format of the tarballs on