From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UP8SJZ5rBmTwQAAASxT56A (envelope-from ) for ; Mon, 06 Mar 2023 23:39:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KMHYJJ5rBmSC4AAAauVa8A (envelope-from ) for ; Mon, 06 Mar 2023 23:39:26 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5187E3BD18 for ; Mon, 6 Mar 2023 23:39:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="DaoM35/Z"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678142366; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eQB/xtZg2kI0R4u8Mx9K8ZMPZgJjmtVk1H7kkZaRpuM=; b=sRX/CF7L3dwXNTXBc1ZV+F9AaKHwW77YiI/YzR+gx8y9fggugkraT8ofQDia41USEcBQAw 2Pta4cwKMMqnGeknh0opuONcfDxrNgPIoBfp98Sf838r+HPHvKeKGZ5aZnY3GGiWp1URKR Zz5oJhhNzbpkGC9GfyL0DI/dm1wfba34VBB+uk1BQvuFtZNbS/OK0BG/UrXh7qiuRRl4MZ 4dgREwHomhOjniXn6ZvGA7TrG6tWzCq6J9/GiKFhKZuTx6gYcjvMahMNDspKAJ0vENTbSM s/QcQl3+R+/gdeA7vzDRA8FQxyc6paqQ5zgX3siGZ/5BtYZrYGWO/bIqzJD7vQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678142366; a=rsa-sha256; cv=none; b=H5QHINE16ojDbf4S83GWYp0emQfB5OYHop+91TxvOEsSXGg6E8gNfUqbgnYJKqC6cpg1Sl 3OQLAxthEhYhd80E2Xn8CUK2p32cZ42ypRUQR1GRrxSp/4H8b5EFLprG++vXx+NRrCB8OP 4qvKzZBEIUIDrCuQ1zDYoQMHd65dvshw4X+Stz+CtCjkM70ZW92IOsfL4d+KQaf5Zx3yje MNB4ZNgpGxgpFQjrgxVxdu8SBWyFmVT9Eq4nenTs/va38b5GmmM4XS3/XT3CStLiAkBIVC 0SyU883Nnw62OAjJskrB/t5IUW7PpDcJa7dVUZ6Je6OEMsoA3NLB5w+k/KfHAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="DaoM35/Z"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZJU0-00040a-N0; Mon, 06 Mar 2023 17:39:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZJTy-000408-QL for guix-patches@gnu.org; Mon, 06 Mar 2023 17:39:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZJTy-0004N0-LX for guix-patches@gnu.org; Mon, 06 Mar 2023 17:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZJTy-0006JK-DJ for guix-patches@gnu.org; Mon, 06 Mar 2023 17:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61950] [PATCH] lint: Add 'copyleft' checker. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Mar 2023 22:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61950 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Antero Mejr Cc: 61950@debbugs.gnu.org Received: via spool by 61950-submit@debbugs.gnu.org id=B61950.167814231424216 (code B ref 61950); Mon, 06 Mar 2023 22:39:02 +0000 Received: (at 61950) by debbugs.gnu.org; 6 Mar 2023 22:38:34 +0000 Received: from localhost ([127.0.0.1]:43885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZJTW-0006IV-37 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 17:38:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZJTU-0006II-2a for 61950@debbugs.gnu.org; Mon, 06 Mar 2023 17:38:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZJTN-0004Ie-BZ; Mon, 06 Mar 2023 17:38:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=eQB/xtZg2kI0R4u8Mx9K8ZMPZgJjmtVk1H7kkZaRpuM=; b=DaoM35/ZJAl4IqoBNOen vb5ccaPWYYuXRMPHJpYSaD3zT7paXhcUs9M0EUM9xkIHyAiwcBVkyeT+I9pYkmzUbwktYaOBz9C5n 9LQ23PRAs4Tmd9s2XTXyg5vEg2rQ5GAoKIp9i73ySLYIpFAQn68ULVbwZYC9hzFCzpT6/har+a4vU tCnZLsiEVw8tN5lNqZwkFiC/4biHDM6rJRpCI7AipwsgsPj6BbHQAZWkUFCMHnnzh616Qa3AQ6VyE Tf/30F0LUBQizDYSibA6ofhTbCLvoQjlQMVbh+xDJ2JWcF1uLRapp1XZCPMfJeSvDkpFXlvU7fyvJ q54qpFdfmGoxkg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZJTL-0006Wx-16; Mon, 06 Mar 2023 17:38:23 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230304041458.32761-1-antero@mailbox.org> <87lek9anaz.fsf@gnu.org> <87o7p5u7y2.fsf@mailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 16 =?UTF-8?Q?Vent=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour de =?UTF-8?Q?l'=C3=89pinard?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 06 Mar 2023 23:38:20 +0100 In-Reply-To: <87o7p5u7y2.fsf@mailbox.org> (Antero Mejr's message of "Mon, 06 Mar 2023 16:21:02 +0000") Message-ID: <87v8jdfqub.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 5187E3BD18 X-Spam-Score: -3.41 X-Migadu-Spam-Score: -3.41 List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: IlMf4uoiJgGd Antero Mejr skribis: > Ludovic Court=C3=A8s writes: > >> 1. It=E2=80=99s entirely fine for, say, a BSD-3 package to link against >> Readline (GPLv3+). The combination is effectively GPLv3+, but >> that=E2=80=99s perfectly valid legally speaking. > > It's fine for FOSS packages, but if you have proprietary-licensed Guix > package where the code can't be open-sourced, bringing in a GPL > dependency is an issue. Maybe, but it=E2=80=99s not an issue for the Guix project. :-) > This copyleft linter goes along with the other patch where guix lint > exits 1. So you can do something like this in a CI pipeline: > > 'guix lint -c copyleft my-proprietary-package' > > to block developers from adding copyleft dependencies to a non-free packa= ge. I recommend having this out-of-tree. If it helps, changing =E2=80=98guix l= int=E2=80=99 to it can discover new =E2=80=9Ccheckers=E2=80=9D, using (guix discovery), = might be okay. >> 2. It=E2=80=99s tempting to view devise a =E2=80=9Clicensing calculus= =E2=80=9D of sorts and >> automate assessments of licensing compatibility. However, I think >> it=E2=80=99s overestimating both law and our own licensing annotati= ons: how >> law applies in a specific case isn=E2=80=99t entirely clear until o= ne goes >> to court, and our =E2=80=98license=E2=80=99 fields fail to represen= t all the >> relevant nuances anyway (subcomponents having different licenses, >> dual/multiple licensing, etc.). > > True, this linter check is basic and would not constitute legal advice. > > It's more of a broad "software license auditing" sort of thing, > to allow engineers to do quick compliance checks. In my experience > it's useful for development in regulated applications of software. > > Thanks for the feedback, lmk what you think. Thanks for explaining. I think I understand the need now but (1) I think this need is outside the scope of Guix, and (2) I remain wary of conclusions drawn from automated =E2=80=98license=E2=80=99 field inspection. I hope that makes sense! Ludo=E2=80=99.