Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2021 10:04:52 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        rgrimes@FreeBSD.org
Cc:        Warner Losh <imp@bsdimp.com>, src-committers <src-committers@FreeBSD.org>, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 686cf5468c4a - main - flex: Regen bootstrap files
Message-ID:  <b9cb03c8-f0ad-8683-7c34-ea26836bec5b@FreeBSD.org>
In-Reply-To: <202104211350.13LDotwF075729@gndrsh.dnsmgr.net>
References:  <202104211350.13LDotwF075729@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21. 4. 21., Rodney W. Grimes wrote:
>> On 21. 4. 20., Rodney W. Grimes wrote:
>>>> On Tue, Apr 20, 2021 at 10:24 AM Jung-uk Kim <jkim@freebsd.org> wrote:
>>>>
>>>>> On 21. 4. 20., Rodney W. Grimes wrote:
>>>>>>> On 21. 4. 20., Rodney W. Grimes wrote:
>>>>>>>>> The branch main has been updated by jkim:
>>>>>>>>>
>>>>>>>>> URL:
>>>>> https://cgit.FreeBSD.org/src/commit/?id=686cf5468c4a85c2a6385cdbab2383900876a41d
>>>>>>>>>
>>>>>>>>> commit 686cf5468c4a85c2a6385cdbab2383900876a41d
>>>>>>>>> Author:     Jung-uk Kim <jkim@FreeBSD.org>
>>>>>>>>> AuthorDate: 2021-04-19 18:20:51 +0000
>>>>>>>>> Commit:     Jung-uk Kim <jkim@FreeBSD.org>
>>>>>>>>> CommitDate: 2021-04-19 18:20:51 +0000
>>>>>>>>>
>>>>>>>>>     flex: Regen bootstrap files
>>>>>>>>>
>>>>>>>>>     This also partially reverts r326025 (8a16b7a18f5d).  I do not see
>>>>> any
>>>>>>>>>     point of adding SPDX tag in generated file.
>>>>>>>>
>>>>>>>> The SPDX identifies the copyright that follows it, so please put this
>>>>> back.
>>>>>>>
>>>>>>> It is a generated file.  If you really think it is necessary, you need
>>>>>>> to patch its source, i.e., contrib/flex/src/parse.y, and regen the file.
>>>>>>
>>>>>> Just because it is a generated file does not change the fact that
>>>>>> its contents are copyrighted.  Leaving the copyright out at best
>>>>>> defaults to Bern convention, so the fact of the mater is the contents
>>>>>> is copyrighted, and it is best to explicitly state that it is.
>>>>>
>>>>> Of course, it is copyrighted.  My point was parse.y should have been
>>>>> patched, not the generated file, if necessary.
>>>>>
>>>>
>>>> Yes. It was a mistake to put it into the generated file.
>>>
>>> He removed the SPDX from parse.y, now says that is the right place
>>> to put the SPDX.  You agree.  So can we have this undone?
>>>
>>>>>>> However, I don't see much sense in automatically adding BSD license in
>>>>>>> every generated file in the first place.  In fact, I think it should not
>>>>>>> appear on generated file at all.  It may say something along the line of
>>>>>>> "generated by flex" instead but IANAL.
>>>>>>
>>>>>> Well, someone before you did see since in it, and hence put that SPDX in
>>>>> it.
>>>>>
>>>>> Let me put it in another way.  Do we really want to tag contrib code?
>>>>>
>>>>
>>>> I tend to agree.
>>>>
>>>> I tend to agree because the SPDX tags are generally only looked at in the
>>>> source tree by existing tools. The generated code won't be looked at
>>>> typically.
>>>> We should work to get this upstream, imho.
>>>
>>> Is parse.y not a source file?  What am I missing?
>>
>> I guess you're confused somehow.
>> 686cf5468c4a85c2a6385cdbab2383900876a41d did not touch parse.y.
>>
>> https://cgit.freebsd.org/src/commit/?id=686cf5468c4a85c2a6385cdbab2383900876a41d
> 
> Hum, I guess I am very confused by this output in that commit message:
> @@ -19,8 +18,6 @@
>  #define YYPURE 0
>  
>  #line 35 "parse.y"
> -/* SPDX-License-Identifier: BSD-2-Clause */
> -
>  /*  Copyright (c) 1990 The Regents of the University of California. */
>  /*  All rights reserved. */
>  
> Which actually appears to be a change to initparse.c, so never mind, the
> diff output along with your comment lead me astray.  I would like to
> understand why this was being emmitted before, and is not being emmitted
> now though.  That seems to conflict with what parse.y actually contains,
> did you somehow hand edit initparse.c to remove this?

It was manually added to initparse.c by the following commit:

https://svnweb.freebsd.org/changeset/base/326025
https://svnweb.freebsd.org/base/head/usr.bin/lex/initparse.c?r1=326025&r2=326024&pathrev=326025&limit_changes=0&view=patch

Jung-uk Kim

>> parse.y never had the tag from the day 1.
> 
> Hummm... Then I am still further confused by the line 35 "parse.y" delta.
> 
>>
>> https://cgit.freebsd.org/src/log/contrib/flex/src/parse.y
>>
>> Jung-uk Kim
>>
>>>> By itself, the SPDX tag is just information. There's no legal requirement in
>>>> copyright law to have it. Current project policy states they are just
>>>> informative,
>>>> though there's some desire to have a good framework to allow code with
>>>> just a copyright and a SDPX tag into the tree, so long as that framework
>>>> can be used to know what the license is for any file in a clear and
>>>> unambiguous
>>>> way.
>>>>
>>>> Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9cb03c8-f0ad-8683-7c34-ea26836bec5b>