From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org, Roland Hieber <rhi@pengutronix.de>
Subject: Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
Date: Wed, 20 May 2020 15:59:20 +0200 [thread overview]
Message-ID: <20200520135920.34sbvrdafx4evwqj@pengutronix.de> (raw)
In-Reply-To: <96a9cba1-26d1-b51c-f8c1-f3ab2fde5c0b@pengutronix.de>
Hello,
On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > This adapts all files that were identifed by licensecheck
> > (https://salsa.debian.org/build-common-team/licensecheck.git) as
> > licensed under the GPL and that have a (IMHO) clear copyright statement.
> >
> > The advantage is that these specifiers are machine-parseable which helps
> > license conformance, e.g. for packaging barebox in Debian.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> > drivers/pwm/core.c | 15 +++------------
> > drivers/pwm/pwm-mxs.c | 12 ++----------
> > drivers/pwm/pxa_pwm.c | 6 ++----
> > 3 files changed, 7 insertions(+), 26 deletions(-)
> >
> > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
> > index 05dad93e5ce3..878f4d72bbf5 100644
> > --- a/drivers/pwm/core.c
> > +++ b/drivers/pwm/core.c
> > @@ -1,17 +1,8 @@
> > +// SPDX-License-Identifier: GPL-2.0-or-later
> > +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
> > +
> > /*
> > * Generic pwmlib implementation
> > - *
> > - * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
> > - *
> > - * This program is free software; you can redistribute it and/or modify
> > - * it under the terms of the GNU General Public License as published by
> > - * the Free Software Foundation; either version 2, or (at your option)
> > - * any later version.
> > - *
> > - * This program is distributed in the hope that it will be useful,
> > - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > - * GNU General Public License for more details.
> > */
> > #include <common.h>
> > #include <errno.h>
> > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > index a06040ac3268..1e2db39def22 100644
> > --- a/drivers/pwm/pwm-mxs.c
> > +++ b/drivers/pwm/pwm-mxs.c
> > @@ -1,13 +1,5 @@
> > -/*
> > - * Copyright 2012 Freescale Semiconductor, Inc.
> > - *
> > - * The code contained herein is licensed under the GNU General Public
> > - * License. You may obtain a copy of the GNU General Public License
> > - * Version 2 or later at the following locations:
> > - *
> > - * http://www.opensource.org/licenses/gpl-license.html
> > - * http://www.gnu.org/copyleft/gpl.html
> > - */
> > +// SPDX-License-Identifier: GPL-2.0-only
>
> The deleted text says "or later"
Strange as I didn't do this manually. My scratch-pad has:
add_license() {
git grep -L SPDX-License-Identifier | grep -E '\.(c|cpp|h)$' | xargs licensecheck | awk -F: '$2 == " '"$1"'" {print $1}' | xargs sed -i "1i // SPDX-License-Identifier: $2"
}
add_license "GPL (v2)" "GPL-2.0-only"
add_license "GPL (v2 or later)" "GPL-2.0-or-later"
which does the right thing when I rety it.
I just rechecked the other patches I created and this is the only
problematic change.
@Sascha: can you fix up here please?
@Ahmad: Thanks for your attention.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2020-05-20 13:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 16:52 Uwe Kleine-König
2020-05-20 12:09 ` Sascha Hauer
2020-05-20 12:10 ` Ahmad Fatoum
2020-05-20 13:59 ` Uwe Kleine-König [this message]
2020-05-20 14:59 ` Ahmad Fatoum
2020-05-20 17:11 ` Uwe Kleine-König
2020-05-20 17:16 ` Ahmad Fatoum
2020-05-22 12:55 ` Roland Hieber
2020-05-22 13:17 ` Uwe Kleine-König
2020-05-23 14:16 ` Roland Hieber
2020-05-23 15:00 ` Uwe Kleine-König
2020-05-23 15:04 ` Roland Hieber
2020-05-25 5:49 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200520135920.34sbvrdafx4evwqj@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=rhi@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox