From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AA92C433E0 for ; Thu, 28 Jan 2021 07:53:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BEEF664DD8 for ; Thu, 28 Jan 2021 07:53:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbhA1Hx0 (ORCPT ); Thu, 28 Jan 2021 02:53:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:37262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbhA1HwT (ORCPT ); Thu, 28 Jan 2021 02:52:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 829B864DD1; Thu, 28 Jan 2021 07:51:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611820293; bh=ZanzQmOBwTPZjYDebv8dSidjk8tn44gz015ev2aHnZQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H4JGdZkbAR6twH2laZyDhCdTfwPaoEqYri29M22pc1WEMQUt9fLfXCpQ7WIPMQTIz kpPEe/epF6WuWgjx0cszg5xvJzAyJVJ75rYBXRAkh+oAZegtd+irbqE4JAW+//x4hV w64ZdysYXg72bNrYn8T8mQ185S9HOM4IrroC6BOg= Date: Thu, 28 Jan 2021 08:51:29 +0100 From: Greg Kroah-Hartman To: Kent Gibson Cc: Bartosz Golaszewski , "Dmitry V. Levin" , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , "open list:GPIO SUBSYSTEM" , Thomas Petazzoni Subject: Re: [libgpiod][PATCH 6/6] core: add the kernel uapi header to the repository Message-ID: References: <20210111144647.GY4077@smile.fi.intel.com> <20210125055527.GA344851@sol> <20210128032641.GA11655@sol> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210128032641.GA11655@sol> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Thu, Jan 28, 2021 at 11:26:41AM +0800, Kent Gibson wrote: > Bart and Dmitry: I submit that we are good to copy the headers into the > repositories, but we should take a few steps just to make clear that we > are in full compliance with the GPL v2. > > Firstly, we are distributing the headers under Section 1 (distribution) > of the GPL, so we should keep the headers in a separate directory that > contains its own COPYING file as well as the GPL v2 and Linux syscall note > - unless they are already available elsewhere in the repo. > > The headers must be copied verbatim so as to not trigger Section 2 > (modification). And it is probably good to include in the commit > comment what kernel version or commit they were drawn from so that can > be easily confirmed. > > Section 3 still doesn't apply, as any resulting object code or > executables are no more a derived work due to the availability of the > header than they were previously. And I don't think anyone is claiming > that the repo itself is a derived work - in this context it is just a > distribution medium. > > The COPYING file, or equivalent, for the project should explicitly > exclude any claim on the kernel header directory to make clear we are > not trying to sublicense the headers as LGPL - which could breach > Section 4. > > Other than those points, I don't see anywhere we may be in breach. That looks good, you should also consider following the REUSE specification: https://reuse.software/ which recommends using a LICENSES/ directory for the different licenses in your project and use SPDX lines at the top of your files to make everything explicit. The `reuse lint` command line tool should give you lots of hints on good things to fix up in this area. Good luck! greg k-h