From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,RDNS_DYNAMIC, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id CB8AF1F8C6 for ; Thu, 5 Aug 2021 17:55:11 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85281385DC19 for ; Thu, 5 Aug 2021 17:55:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85281385DC19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628186110; bh=+/KpEuvl4y6sEHaf8N4NMFvxqC9fKEU2lFGH4HkxRwQ=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=FLNA/YWSDDkRHOs1fO6mFUX3GxVBhQlXeQK37ttmXXi/rHweZ3TnTAC+iMFyQTCyz jjlaj8rQVWoJoZQf6c/UFfIcOduqR0PEqAmsIwUo9Jt/V4B6Xi+hnw/uX3N1LMOsiy jtfyFPpZ63RC7tM3Uj3F1qPQbwxCrEAYAqwOHSmI= Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by sourceware.org (Postfix) with ESMTPS id DE1D9396902B for ; Thu, 5 Aug 2021 17:54:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DE1D9396902B Received: by mail.kernel.org (Postfix) with ESMTPSA id 336DE6112F; Thu, 5 Aug 2021 17:54:27 +0000 (UTC) Date: Thu, 5 Aug 2021 19:54:25 +0200 To: "Alejandro Colomar (man-pages)" Subject: Re: Licensing example programs in man-pages (was [PATCH v3] ioctl_tty.2: Add example how to get or set baudrate on the serial port) Message-ID: References: <20210804220808.cetleob6dldpfnjk@pali> <20210805082243.qciylqnt5g74if7i@pali> <20210805084410.sb5lybdri6r7t2da@pali> <20210805095100.n2qkm3kdiucwt6jd@pali> <418a281b-441d-66fc-6929-5d29fafc459b@gmail.com> <4757a0c3-896f-a402-acb1-7e7fcadaa907@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4757a0c3-896f-a402-acb1-7e7fcadaa907@gmail.com> X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Greg Kroah-Hartman via Libc-alpha Reply-To: Greg Kroah-Hartman Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , linux-man@vger.kernel.org, libc-alpha@sourceware.org, Michael Kerrisk , linux-serial@vger.kernel.org, Andres Brouwer , "G. Branden Robinson" , Pali =?iso-8859-1?Q?Roh=E1r?= , Walter Harms Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Thu, Aug 05, 2021 at 06:45:57PM +0200, Alejandro Colomar (man-pages) wrote: > Hi Greg, > > On 8/5/21 6:14 PM, Greg Kroah-Hartman wrote: > > On Thu, Aug 05, 2021 at 05:28:49PM +0200, Alejandro Colomar (man-pages) wrote: > > > Hi Pali, > > > > > > On 8/5/21 11:51 AM, Pali Rohár wrote: > > > > > > > Also, you forgot a license for this code, that is required if you want > > > > > > > people to use it... > > > > > > > > > > > > Hm... I do not see any license in other manpage examples. Does not apply > > > > > > for it global license defined in ioctl_tty.2 file? > > > > > > > > > > That does not mean you do not need it. > > > > > > I don't know what is the status of the current code examples in terms of > > > licensing. > > > > > > I thought I had seen an SPDX license identifier in one of them some time > > > ago, but now I can't find it. > > > > > > Technically, the pages have a license at the top of each file, which isn't > > > printed on the rendered output (the license text doesn't require so) (see > > > that text below). > > > > > > If you want a different license for your example (let's say you want it BSD > > > for example), I guess you could add an SPDX line at the top of the example > > > for simplicity. > > > > > > But if your code example adheres to the same license as the rest of the > > > page, I guess you don't need to do anything in your patch. > > > > What is the license of a man page? > > Typically, the one I showed in my last email (the "Verbatim" license"). > See . > > > > > What is the license of this page? > > .../linux/man-pages$ head -n8 man2/ioctl_tty.2 > .\" Copyright 2002 Walter Harms > .\" and Andries Brouwer . > .\" > .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE) > .\" Distributed under GPL What version of GPL? > .\" %%%LICENSE_END > .\" > .TH IOCTL_TTY 2 2021-03-22 "Linux" "Linux Programmer's Manual" > > I'm don't know what GPL_NOVERSION_ONLINE is at all. I would recommend adding proper SPDX markings to all of these files. Even better, work to make the whole repo REUSE compliant which means that there is no ambuiguity here. But, the above license does not show up on the code in the original example here, and that needs to be present if anyone wants this to be used. > Still, if the code is going to have a different license than the rest of the > page, it could perfectly have an SPDX comment in the first line of the > example program. Even if it is different, it should still be present as no one can see the license of a man page "easily" when reading the documentation through normal tools. thanks, greg k-h