Message ID | 20191027052754.569131-1-rpigott@berkeley.edu |
---|---|
Headers | show
Return-Path: <pacman-dev-bounces@archlinux.org> Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id C6A5D14B239C5 for <patchwork@archlinux.org>; Sun, 27 Oct 2019 05:28:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED=0.001, DKIM_INVALID=1,DKIM_SIGNED=0.1,FREEMAIL_FROM=0.5,MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DMARC_POLICY_NONE=0.01, T_DMARC_SIMPLE_DKIM=0.01 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: <dns:1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.8.0.6.0.6.1.0.8.f.4.0.1.0.a.2.list.dnswl.org> [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for <patchwork@archlinux.org>; Sun, 27 Oct 2019 05:28:46 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 03E80161E9D0CC; Sun, 27 Oct 2019 05:28:42 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sun, 27 Oct 2019 05:28:42 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 026562E53A; Sun, 27 Oct 2019 05:28:38 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RC1DdSL5 Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 9EEAD2DFA3 for <pacman-dev@lists.archlinux.org>; Sun, 27 Oct 2019 05:28:32 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for <pacman-dev@lists.archlinux.org>; Sun, 27 Oct 2019 05:28:32 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 46712161E9D0B8 for <pacman-dev@archlinux.org>; Sun, 27 Oct 2019 05:28:28 +0000 (UTC) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for <pacman-dev@archlinux.org>; Sun, 27 Oct 2019 05:28:28 +0000 (UTC) Received: by mail-pg1-x535.google.com with SMTP id w3so4315591pgt.5 for <pacman-dev@archlinux.org>; Sat, 26 Oct 2019 22:28:28 -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:mime-version :content-transfer-encoding; bh=gh6CUJc6cJDCtmbgDZFXm/VI2vCbD/2BIh1C+ROYBGI=; b=RC1DdSL56Xr/W66ob0I8ZlWKbzt3n4taKv2qrN+OeHQYnsACrgXNtcDn+Tn+fZjWgK nUNjJ2JI09m+7xfsNS7Kvm29o4T2LjekXOFI14YMe08AhD1OOzWVk9bGI8wauDxD2oWB aqBiutdxuRCsqoLEDsM7vng4dLeuoGcBmxfjnUa7FKAvqP1+n5Zzgp7aihz3XuMh8jL/ x5ASkdUpr14luzOfaBMIv4bdMZqq3Fa2dCq0nkzFSuIESk8R20YBU/Wvt9+Ni6GPCf6f y4BR//QaoEQJgfb7xXbPBoWiEvTyJ40WXK6Q6DHY/DGHoXZ7r0oOmG8tUeb9rrIATr51 WORA== 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:mime-version :content-transfer-encoding; bh=gh6CUJc6cJDCtmbgDZFXm/VI2vCbD/2BIh1C+ROYBGI=; b=Vga+a/fCl/Q6OZQJtqNvIrnF+2/5kz2V1iUVd/5Wz31dpl8y3lcarIPI0uHnCshsqQ jDicYq5CrAxvPYTZZgE8tKZqMz6iZI3M1KHmn5u6mTRKtW0tfvYjA3ERl2ov2jmf5Z8t NXTcE3yrH4VpLIKsoPAzuEHQJuJsgJ+aqrt4s6jUN9WN7F+7QIn2sO/ZU4UN3kM9Wac4 GG7Q61bjzfYqxwohS+BenjTBfUMAxyO918z/8im983xd3yYd5Qa9+LRR+LNnSTmOZ0/b 5sjCp0GLynaIgDdPddaWzh0lRKRmMjeJX3r5m4zfhueaIoqxRHSLhMGG12EOugkaQ7TD kJbw== X-Gm-Message-State: APjAAAWjH6RPXdwEpVkM5zPhB/AP+Za+TP7IijQDApLyS0s1Hlio4XPw yoCIYaN5jfKZygY1QS6q2NySpoU= X-Google-Smtp-Source: APXvYqx9S+OeoYoxsT9E2IpWv9zIU1s6pu1vJYZ19qFYcLYL4nBpSJQWCRrV2RN1C92PD28HxVI+LA== X-Received: by 2002:a63:ce4a:: with SMTP id r10mr13551237pgi.82.1572154106073; Sat, 26 Oct 2019 22:28:26 -0700 (PDT) Received: from rxps.home ([2600:8800:1e00:97d:40b9:56b3:ded7:33e0]) by smtp.gmail.com with ESMTPSA id z2sm8554481pgo.13.2019.10.26.22.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2019 22:28:25 -0700 (PDT) From: Ronan Pigott <rpigott314@gmail.com> X-Google-Original-From: Ronan Pigott To: pacman-dev@archlinux.org Date: Sat, 26 Oct 2019 22:27:52 -0700 Message-Id: <20191027052754.569131-1-rpigott@berkeley.edu> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [pacman-dev] [PATCH v2 0/2] Correct package size calculation in makepkg X-BeenThere: pacman-dev@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for pacman development <pacman-dev.archlinux.org> List-Unsubscribe: <https://lists.archlinux.org/options/pacman-dev>, <mailto:pacman-dev-request@archlinux.org?subject=unsubscribe> List-Archive: <https://lists.archlinux.org/pipermail/pacman-dev/> List-Post: <mailto:pacman-dev@archlinux.org> List-Help: <mailto:pacman-dev-request@archlinux.org?subject=help> List-Subscribe: <https://lists.archlinux.org/listinfo/pacman-dev>, <mailto:pacman-dev-request@archlinux.org?subject=subscribe> Reply-To: Discussion list for pacman development <pacman-dev@archlinux.org> Cc: Ronan Pigott <rpigott@berkeley.edu> Errors-To: pacman-dev-bounces@archlinux.org Sender: "pacman-dev" <pacman-dev-bounces@archlinux.org> |
From: Ronan Pigott <rpigott@berkeley.edu> V2 implements suggestions by Allan to separate dirsize calculation into a util library function and implement a two-pass approach for hard linked and non hard linked files. Ronan Pigott (2): makepkg: use null-delimited file lists when tracking inodes makepkg: do not count hard linked file sizes multiple times configure.ac | 6 ++-- meson.build | 6 ++-- scripts/Makefile.am | 1 + scripts/libmakepkg/tidy/zipman.sh.in | 9 +++--- scripts/libmakepkg/util/dirsize.sh.in | 45 +++++++++++++++++++++++++++ scripts/libmakepkg/util/meson.build | 1 + scripts/makepkg.sh.in | 2 +- 7 files changed, 59 insertions(+), 11 deletions(-) create mode 100644 scripts/libmakepkg/util/dirsize.sh.in