Message ID | 20191027031134.479556-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 BE91114B1A3C1 for <patchwork@archlinux.org>; Sun, 27 Oct 2019 03:12:13 +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:70.91.198.88.list.dnswl.org> [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for <patchwork@archlinux.org>; Sun, 27 Oct 2019 03:12:13 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 6D923161E68071; Sun, 27 Oct 2019 03:12:09 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (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 03:12:09 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 1E8EF2E5C2; Sun, 27 Oct 2019 03:12:05 +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=j2WmQy8g Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id ECEE62E5B2 for <pacman-dev@lists.archlinux.org>; Sun, 27 Oct 2019 03:12:01 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for <pacman-dev@lists.archlinux.org>; Sun, 27 Oct 2019 03:12:01 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 613E0161E6804F for <pacman-dev@archlinux.org>; Sun, 27 Oct 2019 03:11:57 +0000 (UTC) Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (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 03:11:57 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id y5so4332179pfo.4 for <pacman-dev@archlinux.org>; Sat, 26 Oct 2019 20:11:57 -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=DA5L3ooleYYbvouDEOrOof9o7qe097eCO06kMy8at7E=; b=j2WmQy8gFs7m7UlTNHd9KhWv83ODTsuTDs9XIxPi46rPURtvlX2RHllTAHmIhyzc2i ik+in0CZbV1RvrpsshBenIY18X4crephiKbc9yafcqBz2MT3iwL02697/mf+lnfwgkWD 5PFtJzNVnceMt2Wj81ZYfSw8XDhnV3hveZUoTDV3YhFbwpQizHSjFHFT8f/aLorEXXMk F+tTzZwMiKx3Jw9i+m46TycP9m0IioGEdx3IZj7tmRB2ZSPdA19+xY1c5qK6dfV0Z7Zc 08I9erZJfWrxnd1rCQ+ait7k6TBcfTxzjNHgz/mp+Unj3OMQYZeCvUBHtLUGgLrl51q2 oNUw== 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=DA5L3ooleYYbvouDEOrOof9o7qe097eCO06kMy8at7E=; b=KJ5KEc0p5QcZECGTt3yLH+MFJGT/NhnxcudH38mJhIvHp1NhuXAp7UyxQk2nJg1g7X kDoq3go6mWzuNXKGBSQGeDFDsq0BbMXarv09ZEvybmV3raTVIn14RYsJFkE2caV7lNH+ uX7zFeh936T08NThiomDS8wZyJpCoq0q+TVuUVzGlBnr6XC2+Jb1FaBcjkUOq0q1YoXU LzJyNccsCkrJd0cMqlf6dT9EsDeyKocTqx6xL7mQN7CpDLZb7rdlpPnSVxO5FyROSsic Mqfh3UCIc12atPLRCG6h+DI7YYSNGwWSJHPBKlXWxIwBOaKPxoI2myi3a75SZAgdOgCX K/Jw== X-Gm-Message-State: APjAAAXFvhoH35ewcnr8y1VuD1BjFc4S2aFT4vFT80f2FBZC1C22Y1IO YAi1uu/xooC+Pn2mUerB+USTTQA= X-Google-Smtp-Source: APXvYqxQ9+q4AFf8/bG3qtCvINAAovjqmj5R9onuD/dEUTyIv2LrkHx65cZqg0ZSDjwjqo5DoDOEKw== X-Received: by 2002:a63:5949:: with SMTP id j9mr5559909pgm.371.1572145914974; Sat, 26 Oct 2019 20:11:54 -0700 (PDT) Received: from rxps.home ([2600:8800:1e00:97d:40b9:56b3:ded7:33e0]) by smtp.gmail.com with ESMTPSA id 26sm6954492pjg.21.2019.10.26.20.11.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2019 20:11:54 -0700 (PDT) From: Ronan Pigott <rpigott314@gmail.com> X-Google-Original-From: Ronan Pigott To: pacman-dev@archlinux.org Date: Sat, 26 Oct 2019 20:11:32 -0700 Message-Id: <20191027031134.479556-1-rpigott@berkeley.edu> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [pacman-dev] [PATCH 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> This patchset is a fix for FS#64252 and is mostly the result of some discussion there. The goal is to fix the double counting of hard linked files and also to correct some errors counting the size of certain file names that coincide with valid cat flag options. To make supporting whitespace in filenames easier, I changed INODECMD to output only the inode and instead rely on find's -print0 to reliably parse complete filenames. This fixes some errors for files that begin or end in whitespace. It was noted in discussion that -print0 is not POSIX, but it seems portable regardless. Note it is possible to get a null-delimited list of file names in pure bash using a combination of bash's printf and globbing, if it is necessary. 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/libmakepkg/tidy/zipman.sh.in | 9 +++++---- scripts/makepkg.sh.in | 10 +++++++++- 4 files changed, 20 insertions(+), 11 deletions(-)