Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3587640iob; Tue, 17 May 2022 03:19:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGqxBj2N/lRNaieO7kPjAGi1dxNgRg135vdb379BskBYSMX4/z0P0PmIVPvwIkXlnpqyXY X-Received: by 2002:a17:907:c24:b0:6f4:d6f2:9f6c with SMTP id ga36-20020a1709070c2400b006f4d6f29f6cmr18480775ejc.539.1652782786357; Tue, 17 May 2022 03:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652782786; cv=none; d=google.com; s=arc-20160816; b=aHmj0vb4+tRn4FLo+5Cd2CD8QUZHI8AFvq4Dygyt5dhCzuL2VGNrms2nVA47KlsDQZ zjClcrYjNPLOTt8w7rDBUdWv1QY2Afxkj5JJIlx9V0IF++tClkpAEAeVp3TvDPzriZxw Wve/O3tp7yiXw8cNQvQAZ5ao4hlLDWci+LHgOVs6ch3ELKOB6y2xnD4OL17QZRjMCbRs YfO/7ZtYBs1jF3fsFH0RmRi/Aadwd70rHykjG8nHUgEOGvpSkJiN30jSTF1DNs/m1kyB TqOMtN9snF0DYbvGA5bYLrBbwDF9W002cAmwVBadI8rurukzk8ggtxdIZm2vfi01/rlA If/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :mime-version:in-reply-to:references:cc:to:subject:from :dkim-signature:date; bh=jAxw8aWlu/LUZ5JLpxzuteI1viXYrIoRdyP/NaQqL5c=; b=ZKTnVZEc5YCn30edIVEbr8R7CBJt4l2YVrAMHO6moTPi0owZf+2En9cJWCloGb4SjX yJ+8E2kivF1xkb8Q+J8bujVEHRw+xRXVTG85ysFvaBu3ts9lfn45Ltlq2foRvxrE3s0Y dJ2HNF5RpWX1Nl4KPbSwCrEL6WeWSBvtFD+BatQrfKCl9NdCL7QcEqQ8QzHRCmU4bVeg /vjh7a3Zu1exgYlcKN8bum+9NF0lNxa+/OXqgyMLWW1ozLvS/5t9hnLV2CszJIGVFn2M dmqQU0t9B+pOeRaoTBE+kMT8Y1OwnAFozFs1zkGi2z4iG7NYyBwWbHn4K7AVopWVpcZ6 eX/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fsfe.org header.s=2021100501 header.b=Nfeae+Qv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fsfe.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt6-20020a1709072d8600b006fddb935329si2787948ejc.418.2022.05.17.03.19.20; Tue, 17 May 2022 03:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fsfe.org header.s=2021100501 header.b=Nfeae+Qv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fsfe.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242703AbiEQIZp (ORCPT + 99 others); Tue, 17 May 2022 04:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234309AbiEQIZm (ORCPT ); Tue, 17 May 2022 04:25:42 -0400 Received: from mail1.fsfe.org (mail1.fsfe.org [217.69.89.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E45F631DC7; Tue, 17 May 2022 01:25:39 -0700 (PDT) Date: Tue, 17 May 2022 10:25:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1652775937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jAxw8aWlu/LUZ5JLpxzuteI1viXYrIoRdyP/NaQqL5c=; b=Nfeae+QvFsmneXKolwYLwwLjpMRY/7ruwwhQ3AUXseItA4peX9kJmoGJDGGsca2AzTDuDV bukifL35mbRGTxrXBux2vhQW6tAyKJP9sSVjjB0TmgDvPOAIhN0yFlNjWdX9qv6f8UaDJo PO0bXKRGah1JumlcRWiGrWswKYafV/k= From: Max Mehl Subject: Re: [patch 0/9] scripts/spdxcheck: Better statistics and exclude handling To: LKML , Thomas Gleixner Cc: Greg Kroah-Hartman , Christoph Hellwig , linux-spdx@vger.kernel.org References: <20220516101901.475557433@linutronix.de> <1652706350.kh41opdwg4.2220@fsfe.org> <87zgjhpawr.ffs@tglx> <87wnelpam3.ffs@tglx> In-Reply-To: <87wnelpam3.ffs@tglx> MIME-Version: 1.0 User-Agent: astroid/0.13 Message-Id: <1652775347.3cr9dmk5qv.2220@fsfe.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ~ Thomas Gleixner [2022-05-16 20:59 +0200]: > On Mon, May 16 2022 at 20:52, Thomas Gleixner wrote: >>> Unfortunately, excluding files (i.e. not adding machine-readable >>> license/copyright information to it) would also block reaching full >>> compliance with the REUSE best practices. Have you considered making >>> them available under GPL-2.0-only or a license similar to public domain >>> [^2]? >> >> The LICENSE directory is already handled by spdxcheck as the license >> information is read from there. And no, we cannot add a GPL-2.0-only >> identifier to all of the files under the LICENSE directory for obvious >> reasons. Absolutely. REUSE obviously also ignores this directory, as well as e.g. zero-length files, symlinks, submodules, or .git directory. > There is also an argument to be made whether we really need to have SPDX > identifiers on trivial files: >=20 > #include > >=20 > Such files are not copyrightable by any means. So what's the value of > doubling the line count to add an SPDX identifier? Just to make nice > statistics? We agree that such files are not copyrightable. But where is the threshold? Lines of code? Creativity? Number of used functions? And how to embed this threshold in tooling? So instead of fuzzy exclusion of such files in tools like spdxcheck or REUSE, it makes sense to treat them as every other file with the cost of adding two comment lines. This clear-cut rule eases maintaining and growing the effort you and others did because developers would know exactly what to add to a new file (license + copyright) without requiring looking up the thresholds or a manual review by maintainers who can interpret them. Best, Max --=20 Max Mehl - Programme Manager -- Free Software Foundation Europe Contact and information: https://fsfe.org/about/mehl -- @mxmehl The FSFE is a charity that empowers users to control technology