| Message ID | 20190527034922.27316-1-jamespharvey20@gmail.com |
|---|---|
| Headers | show
Return-Path: <arch-projects-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 4C188EE9B8A8 for <patchwork@archlinux.org>; Mon, 27 May 2019 03:49:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED=0.1, DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DKIMWL_WL_HIGH=-0.01, T_DMARC_POLICY_NONE=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>; Mon, 27 May 2019 03:49:38 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id EE42112D9F752F; Mon, 27 May 2019 03:49:36 +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; Mon, 27 May 2019 03:49:36 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id C0F0D2C5FA; Mon, 27 May 2019 03:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1558928976; bh=SqVy1xxFQunSGitqhbinSgR1RgLuvGeW0mQmciogAdA=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc; b=GhtX5EvMw2jWtYZDcY/Zx6/5Kc+afs/Z6JeZdYsztePir2h9TsQET1NBLP6wO/nR4 HX63Y7fY+mwPpFNmljyIt+7rhcDzgGEidOdqMrP3RKtoJzv1yV8MgSGXMKCB83iigo Nawss9mNUluJmsmOKh5bLuaOCKXOq3Qx6EaLnyX1NRrZU/OY+umLSjL/SmlV63AKRI gqWrxefL1OtL8rNzKmj9osmCuWx944bFwGIlWfZS7JnfNBQ00cWrE65qp0bKES6Toh YN16de/cavWFYFDWqYbR6M230xhNpMQPu5ghjo6SVk2wMvv/TYiJ6X2AfgA9ePoeAu LaKS1MkUm3ZXwOsxNc64I5iuGWL62Jpy0g1YqCovYnxaV50hAoLq9L1vRgZ6l16BOr tkvHU5MB/QhJg4skv9/kcHsF/RH0a5gCAOgVZiIpWmAcubnclEalPLFCp6JSnUVUYB 0VVb3vdCK2+hYHSkZHipI2uwXzkVelHkeMpYfhQUy1E/NvFiqxnqiBHJEHnTiW4Kj/ PWQi+I1HL8QfPVoLSxr128BRnuS2LFVX8eECOwa7vUi/oWVBH6AdGrQiOQlYz1yWuM yNFcWgp1jEoTtj7+xcE02kspJntDWhsk/tkVbjicTBnmjZiEqZ+tafHD9Q4vEPwFnY 4m4YjY/uIJ2xoBvuq33so5ag= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E6C8D2C5C6 for <arch-projects@lists.archlinux.org>; Mon, 27 May 2019 03:49:33 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for <arch-projects@lists.archlinux.org>; Mon, 27 May 2019 03:49:33 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 7553D12D9F752C for <arch-projects@archlinux.org>; Mon, 27 May 2019 03:49:29 +0000 (UTC) Received: from mail-it1-x12b.google.com (mail-it1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (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 <arch-projects@archlinux.org>; Mon, 27 May 2019 03:49:29 +0000 (UTC) Received: by mail-it1-x12b.google.com with SMTP id t184so7487517itf.2 for <arch-projects@archlinux.org>; Sun, 26 May 2019 20:49:29 -0700 (PDT) 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=ezgePbODuqnS/Da5tIvyfUkNRfjdE8wv/0qTAsawpxI=; b=C4pjqZh3WUKy9mnkmq0Mcvz3LtVbxHLO34AxtXg30GHinAVeZyrT0oBOnoyrsqkG4v MxxCeKrrDC9/MG4X/TKIFyejcuTWOlVhbCrVtP1m5Mzj3eBMvtcRpgd6zN3/KezQ9CTI unqjhI1CZrUreX9Jr+BQp1pHNPsKMlcT1t3vWr1p8bMSEWqK0DnyYVikHDmds4RxwFsq 0YAruTdi2pKRBt8jCUm4s2XcUpIJjXZwChA7nTV9l6R57l1eZL7EukJDiOYegErX15Lr EAJqv3p/72f3Z1Pafo/oYpoN8uWWhYkB/wum9DEHtRWp22v+7A3Po0H/dR+WTxZe6CxH Z6Wg== X-Gm-Message-State: APjAAAWiSbE71iGBs9IAKdPUfRiv2EtMAojx3dO8tgl+YsEFlYTUuVPk cxAZt1L9g4vAWR7h/giMiPZVD2/q X-Google-Smtp-Source: APXvYqzTpH6ECsCwoPmFMTuDmJ5sLO+z1TZvyj6gXEGWno1/L0gei2y9r/iXcJuUfudEKNXcm2UU9w== X-Received: by 2002:a02:3b55:: with SMTP id i21mr75907590jaf.128.1558928967919; Sun, 26 May 2019 20:49:27 -0700 (PDT) Received: from newKvm.localdomain ([2601:402:4580:e98::9943]) by smtp.gmail.com with ESMTPSA id m64sm4414072itg.4.2019.05.26.20.49.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 20:49:27 -0700 (PDT) To: arch-projects@archlinux.org Date: Sun, 26 May 2019 23:49:18 -0400 Message-Id: <20190527034922.27316-1-jamespharvey20@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [arch-projects] [namcap] [PATCH 0/4] Add a rule against common filenames in source() without overridden name X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion <arch-projects.archlinux.org> List-Unsubscribe: <https://lists.archlinux.org/options/arch-projects>, <mailto:arch-projects-request@archlinux.org?subject=unsubscribe> List-Archive: <https://lists.archlinux.org/pipermail/arch-projects/> List-Post: <mailto:arch-projects@archlinux.org> List-Help: <mailto:arch-projects-request@archlinux.org?subject=help> List-Subscribe: <https://lists.archlinux.org/listinfo/arch-projects>, <mailto:arch-projects-request@archlinux.org?subject=subscribe> From: "James P. Harvey via arch-projects" <arch-projects@archlinux.org> Reply-To: Arch Linux projects development discussion <arch-projects@archlinux.org> Cc: "James P. Harvey" <jamespharvey20@gmail.com> Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" <arch-projects-bounces@archlinux.org> |
| Series |
Add a rule against common filenames in source() without overridden name
|
expand
|
There's no good way for namcap to ensure source() filenames are unique across all packages, required for users with SRCDEST. But, I think by far the most common offending filename would be LICENSE, as non-standard ones are required to be included, but sometimes there's no upstream tarball or there is but it's not in there. Mostly an issue for AUR packages, but maybe there are official ones violating this too. We can at least check that if common names are in source(), they're given an overridden name. (Personally, I'm going with "${pkgname}-LICENSE::", but this patch doesn't force this form.) While adding this, split off the recently added non-unique versioned source filenames (non-overridden versioned tarballs) from pkginfo rules. This was originally there using PkgInfoRule, but when it was switched to PkgbuildRule, it was left in pkginfo.py. Also add tests for the recently added non-unique versioned source filenames rule. James P. Harvey (4): Split warning for non-unique source filenames from pkginfo rules Add test for non-unique source filenames nonuniquesources: Also warn on common filenames not overriding name to be unique nonuniquesources: Add test for common filenames Namcap/rules/__init__.py | 1 + Namcap/rules/nonuniquesources.py | 52 ++++++++++ Namcap/rules/pkginfo.py | 11 +-- .../tests/pkgbuild/test_nonuniquesources.py | 94 +++++++++++++++++++ 4 files changed, 148 insertions(+), 10 deletions(-) create mode 100644 Namcap/rules/nonuniquesources.py create mode 100644 Namcap/tests/pkgbuild/test_nonuniquesources.py