| Message ID | CA+X5Wn4KpTcHpWjgS9xvoOx7EtgA5h2sK3wiBYdiwBAKmavddQ@mail.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 68A62EE92B6A for <patchwork@archlinux.org>; Mon, 27 May 2019 02:36:11 +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: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>; Mon, 27 May 2019 02:36:11 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 6132512D9AD909; Mon, 27 May 2019 02:36:10 +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; Mon, 27 May 2019 02:36:10 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 4EEA02C54E; Mon, 27 May 2019 02:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1558924570; bh=hd/W+/O9WP4Eoj2MsEorWrkTJEQCWmfyLhfQUb3qaJ4=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc; b=PqrZlznykzi+19gbyXsx69cjTtVKboF6a5Yawf0tSEJTN5T8sY9d/DmwCRF1cjTjW T6SorBjTw1J+LcvHO6O3efWo59axHTfrS0C1AnN0E4yKlicI2PYs6uHWwtsa1qqX8h r5zikhwx2N3OMSXmARs6msjVhPPhm2IdHT2jW3/6MVB/KNss2P3iNKG7eGSFlrp9IP W9ISsULURXRi66XPiiI21cd5jr/gSwj94Y2RezvNCNoZ7i+l4ytcQfq1RIkKrFD1pU XK78KV6G1ZFi9AjqUtUUOf2Xlf5aQC46YtPbJGgFHaZRUblC97mpcJakPYyxpfsUC9 e9LAjUxf344TqQy/ukM9qTvWdF9cmH5M1ueamUOqPNxXoZlPsznasllHTbHBPmIwyh 5uXXqz/jJZsLs9TuSkBZkbFe/PIIEcPBFFB8l0LspLrPzn2kMG/cm/W5qVFGHOniB2 cXW51oq/gSjVY371ZuZtDPh8bJzWEKsIg3kaoTLD/qYi+3cSSW5ZlEsEelFPA5B9mM aF1mqxXQldQJN+IS3X8x01O+6DWY2g7tE5sh0YEv+UN72mEw20y/hgqnszB0PmhodV PqucEBVJaIo4tXEytUcC5bkAJzirHbJaX4MYNK1XnkexLg59qxeHgLOA5NGMYOjQd7 +oYIEYuRKbeYqwCDgJkwYQr4= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 5AE202C534 for <arch-projects@lists.archlinux.org>; Mon, 27 May 2019 02:36:07 +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 02:36:07 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 6E7E312D9AD907 for <arch-projects@archlinux.org>; Mon, 27 May 2019 02:36:06 +0000 (UTC) Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) (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 02:36:06 +0000 (UTC) Received: by mail-vs1-xe33.google.com with SMTP id w124so9605628vsb.11 for <arch-projects@archlinux.org>; Sun, 26 May 2019 19:36:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UvOAm2KWn9yNUGL1IrFVq3OOCTXdI8SznRD13LzASgc=; b=T3QIToKonmoUi4iwlK4h6y+xNS3w/cLNdUrIRcPq3agP+EeX06C1Nu2lSXazveA9lp ER8GC3166xRTRHDMTjxpjugXTi1RPnWvtr/K0jdaOp6DmDoRx0ZjNaGGvXyh22lGjR0P dbgNh7h3uEiKontcNd9RrVmsBIRvxL2rjhnLFZqss9eEqXj2/1hjDHgX70Z8AeAOP8fq /lT04BjdeUk08p5Pr5u7b2BhfPG806HEFMiixzqCyIaT93WRwYtCkr17+Cf36aTClazG soImUb1RGXr9DpQR6KxY9LMMhwbw6rmKOiH96ah9QD6z2SQ0BkiqOhFfcCcP6plU/Opi v18Q== X-Gm-Message-State: APjAAAWHYz6L4tf1mlHGyBnlSt/szQZ74enbn2FhRSh22dJpkumv1OAZ dsFyLoTwyTwyIaUK7aG+IIfHuz46lzNK4/gMdN4XKA== X-Google-Smtp-Source: APXvYqy8/wgFBeQH/nFjPcYMiYHmyPwjnOT+8S7DvfjQiKbUCjZgttOWaXcb1+6JkzVIQKRTXG4raiidZS3xb2SVAwE= X-Received: by 2002:a67:ce96:: with SMTP id c22mr58239489vse.204.1558924564939; Sun, 26 May 2019 19:36:04 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 26 May 2019 22:35:29 -0400 Message-ID: <CA+X5Wn4KpTcHpWjgS9xvoOx7EtgA5h2sK3wiBYdiwBAKmavddQ@mail.gmail.com> To: Arch Linux projects development discussion <arch-projects@archlinux.org> Content-Type: text/plain; charset="UTF-8" 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 Harvey via arch-projects <arch-projects@archlinux.org> Reply-To: Arch Linux projects development discussion <arch-projects@archlinux.org> Cc: James Harvey <jamespharvey20@gmail.com> Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" <arch-projects-bounces@archlinux.org> |
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.