Bug#878502: wrong/missing copyright for clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (and others!)

2017-10-20 Thread Nicholas D Steeves
On Thu, Oct 19, 2017 at 09:36:50AM +0200, Sylvestre Ledru wrote:
>Le 17/10/2017 à 23:44, Nicholas D Steeves a écrit :
>  On Sat, Oct 14, 2017 at 08:42:19AM +0200, Sylvestre Ledru wrote:
> Le 14/10/2017 à 05:16, Nicholas D Steeves a écrit :
> 
>   I would submit a patch, but I'm sure what conventions the LLVM/Clang team 
> follow.
> 
> We don't really have a convention for this. So, feel free to submit a
> patch with what you think is the best!
> 
>  Patches attached.  I broke them up into multiple commits in case you
>  wanted to reject by patch instead of by hunk.  Feel free to squash
>  them if you prefer fewer commits.
> 
>Many thanks. I applied the 3 first in the svn. They will be part of the
>next upload :)
> 
>S

Thank you Sylvestre :-)

If you have any emacs users on the LLVM team, could you please ask one
of them to take a look at this RFS.  The thread has gotten long
because it's been over a month, so here are the relevant posts.  ltdr:
maintainer asked Debian Emacs Addons Team to maintain the package:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875919#76
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875919#75

In return I'd be happy to work on company-mode integration with
company-irony (for code completion), on-the-fly syntax checking with
flycheck-irony, and/or eldoc-irony (shows you, in the echo area, the
argument list of the function call you are currently writing).

Sincerely,
Nicholas


signature.asc
Description: PGP signature


Bug#878502: wrong/missing copyright for clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (and others!)

2017-10-19 Thread Sylvestre Ledru
Le 17/10/2017 à 23:44, Nicholas D Steeves a écrit :
> Hi Sylvestre,
>
> On Sat, Oct 14, 2017 at 08:42:19AM +0200, Sylvestre Ledru wrote:
>>Hello,
>>
>>Le 14/10/2017 à 05:16, Nicholas D Steeves a écrit :
>>
>>  I would submit a patch, but I'm sure what conventions the LLVM/Clang team 
>> follow.
>>
>>We don't really have a convention for this. So, feel free to submit a
>>patch with what you think is the best!
> Patches attached.  I broke them up into multiple commits in case you
> wanted to reject by patch instead of by hunk.  Feel free to squash
> them if you prefer fewer commits.

Many thanks. I applied the 3 first in the svn. They will be part of the
next upload :)

S




Bug#878502: wrong/missing copyright for clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (and others!)

2017-10-18 Thread Nicholas D Steeves
My method and assumption were wrong:

https://llvm.org/docs/DeveloperPolicy.html#code-owners
https://github.com/blog/2392-introducing-code-owners

Please drop 0004-Add-copyright-for-clang-tools-extra.patch !

Sincerely,
Nicholas


signature.asc
Description: PGP signature


Bug#878502: wrong/missing copyright for clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (and others!)

2017-10-17 Thread Nicholas D Steeves
Hi Sylvestre,

On Sat, Oct 14, 2017 at 08:42:19AM +0200, Sylvestre Ledru wrote:
>Hello,
> 
>Le 14/10/2017 à 05:16, Nicholas D Steeves a écrit :
> 
>  I would submit a patch, but I'm sure what conventions the LLVM/Clang team 
> follow.
> 
>We don't really have a convention for this. So, feel free to submit a
>patch with what you think is the best!

Patches attached.  I broke them up into multiple commits in case you
wanted to reject by patch instead of by hunk.  Feel free to squash
them if you prefer fewer commits.

See commit messages for more info.  My method was:

Update from ./LICENSE.txt
Update from ./clang-tools-extra/CODE_OWNERS.TXT
For files that don't have date ranges in the header, get this info
from git history.

My assumption was that clang-tools-extra is joint copyright between
"University of Illinois at Urbana-Champaign" and those named in
CODE_OWNERS.TXT.  If I'm wrong about this I'd be happy to remove those
three lines from 0004-Add-copyright-for-clang-tools-extra.patch.
Alternatively, feel free to fixup the patch.

Sincerely,
Nicholas
From 8ea289a51284356f7652ad7ffb1001d4982eb3e3 Mon Sep 17 00:00:00 2001
From: Nicholas D Steeves 
Date: Tue, 17 Oct 2017 14:44:53 -0400
Subject: [PATCH 1/4] Update U-OF-I-BSD-LIKE years from ./LICENSE.TXT

---
 debian/copyright | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/copyright b/debian/copyright
index a50dd550..b6139179 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -370,7 +370,7 @@ License: U-OF-I-BSD-LIKE
  University of Illinois/NCSA
  Open Source License
  .
- Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
+ Copyright (c) 2003-2017 University of Illinois at Urbana-Champaign.
  All rights reserved.
  .
  Developed by:
-- 
2.11.0



0001-Update-U-OF-I-BSD-LIKE-years-from-.-LICENSE.TXT.patch.sig
Description: PGP signature
From 6c1dbddb60a7edcfd819d6c1e5a4733b06baf5d8 Mon Sep 17 00:00:00 2001
From: Nicholas D Steeves 
Date: Tue, 17 Oct 2017 14:55:28 -0400
Subject: [PATCH 2/4] Add copyright for md5 contributions from ./LICENSE.txt

---
 debian/copyright | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/debian/copyright b/debian/copyright
index b6139179..70ccf153 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -132,6 +132,21 @@ Copyright: 1992, 1993, 1994 Henry Spencer
1992, 1993, 1994 The Regents of the University of California
 License: BSD-3-clause
 
+Files: lib/Support/MD5.cpp llvm/include/llvm/Support/MD5.h
+Copyright: 2001 Alexander Peslyak aka Solar Designer 
+License: solar-public-domain
+ This software was written by Alexander Peslyak in 2001.  No copyright is
+ claimed, and the software is hereby placed in the public domain.
+ In case this attempt to disclaim copyright and place the software in the
+ public domain is deemed null and void, then the software is
+ Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
+ general public under the following terms:
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted.
+ .
+ * There's ABSOLUTELY NO WARRANTY, express or implied.
+
 Files: lib/Target/ARM/*
 Copyright: ARM Limited
 License: ARM
-- 
2.11.0



0002-Add-copyright-for-md5-contributions-from-.-LICENSE.t.patch.sig
Description: PGP signature
From 6b3defc1b83c4663bfa636b28cf1314a868125e6 Mon Sep 17 00:00:00 2001
From: Nicholas D Steeves 
Date: Tue, 17 Oct 2017 17:19:47 -0400
Subject: [PATCH 3/4] Update Copyright years for Files: * from ./LICENSE.TXT

---
 debian/copyright | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/copyright b/debian/copyright
index 70ccf153..f5b3185d 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,7 +3,7 @@ Upstream-Name: LLVM/Clang
 Source: http://llvm.org/releases/download.html
 
 Files: *
-Copyright: 2003-2007 University of Illinois at Urbana-Champaign.
+Copyright: 2003-2017 University of Illinois at Urbana-Champaign.
 License: U-OF-I-BSD-LIKE
 
 Files: */install-sh
-- 
2.11.0



0003-Update-Copyright-years-for-Files-from-.-LICENSE.TXT.patch.sig
Description: PGP signature
From b20d80da15d29337c13a59f66331c6cfb9472e6f Mon Sep 17 00:00:00 2001
From: Nicholas D Steeves 
Date: Tue, 17 Oct 2017 17:21:12 -0400
Subject: [PATCH 4/4] Add copyright for clang-tools-extra

Copyright info taken from ./clang-tools-extra/CODE_OWNERS.TXT
Date range taken from git history of:
https://github.com/llvm-mirror/clang-tools-extra.git

Note: CODE_OWNERS.TXT states that clang-rename is copyright Manual
Klimek, but clang-rename seems to have been moved from
clang-tools-extra/clang-rename to clang/tools/clang-rename
---
 debian/copyright | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/debian/copyright b/debian/copyright
index f5b3185d..c52a66f3 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -100,6 +100,21 @@ Files: clang/lib/Headers/tgmath.h
 Copyright: 2009 Howard Hinnant
 License: Expat
 
+Files: clang-tool

Bug#878502: wrong/missing copyright for clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (and others!)

2017-10-13 Thread Sylvestre Ledru
Hello,

Le 14/10/2017 à 05:16, Nicholas D Steeves a écrit :
> Package: src:llvm-toolchain-snapshot
> Severity: normal
>
> Dear maintainers,
>
> Paul recommended that I report this bug, and I've CCed him so he can confirm 
> that I'm not misrepresenting him.
>
> This affects version src:llvm-toolchain-snapshot-1:6.0~svn311834-1 and at 
> least all versions of src:llvm-toolchain since 2014.
>
> I think d/copyright:
> Files: *
> Copyright: 2003-2007 University of Illinois at Urbana-Champaign.
> License: U-OF-I-BSD-LIKE
>
> misrepresents (missing/wrong) clang-tools-extra/clang-tidy/*
>
> I discovered this issue while searching for the origin of run-clang-tidy.py 
> bundled with src:irony-mode.  The earliest copy I could find is 2014-09-04, 
> from here: https://reviews.llvm.org/D5188 , and the most recent is 2017.
>
> clang-tidy-diff.py is also misrepresented by the */glob 2003-2007.  On the 
> upside, they are NCSA/University of Illinois licensed, which appears to be 
> covered by License: U-OF-I-BSD-LIKE
>
> Section License: U-OF-I-BSD-LIKE should also be updated from "2003-2013" to 
> something more recent :-)
>
> I would submit a patch, but I'm sure what conventions the LLVM/Clang team 
> follow.

We don't really have a convention for this. So, feel free to submit a
patch with what you think is the best!

Thanks!

Cheers

S



Bug#878502: wrong/missing copyright for clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (and others!)

2017-10-13 Thread Nicholas D Steeves
Package: src:llvm-toolchain-snapshot
Severity: normal

Dear maintainers,

Paul recommended that I report this bug, and I've CCed him so he can confirm 
that I'm not misrepresenting him.

This affects version src:llvm-toolchain-snapshot-1:6.0~svn311834-1 and at least 
all versions of src:llvm-toolchain since 2014.

I think d/copyright:
Files: *
Copyright: 2003-2007 University of Illinois at Urbana-Champaign.
License: U-OF-I-BSD-LIKE

misrepresents (missing/wrong) clang-tools-extra/clang-tidy/*

I discovered this issue while searching for the origin of run-clang-tidy.py 
bundled with src:irony-mode.  The earliest copy I could find is 2014-09-04, 
from here: https://reviews.llvm.org/D5188 , and the most recent is 2017.

clang-tidy-diff.py is also misrepresented by the */glob 2003-2007.  On the 
upside, they are NCSA/University of Illinois licensed, which appears to be 
covered by License: U-OF-I-BSD-LIKE

Section License: U-OF-I-BSD-LIKE should also be updated from "2003-2013" to 
something more recent :-)

I would submit a patch, but I'm sure what conventions the LLVM/Clang team 
follow.

Kind regards,
Nicholas