Blame SOURCES/0001-libi2c-Mention-the-correct-license-in-source-files.patch

d3440c
From fbd988b4fa3d008c5fd210a66834d1305de41f6c Mon Sep 17 00:00:00 2001
d3440c
From: Jean Delvare <jdelvare@suse.de>
d3440c
Date: Fri, 3 Aug 2018 13:54:26 +0200
d3440c
Subject: [PATCH] libi2c: Mention the correct license in source files
d3440c
d3440c
The libi2c library is released under the LGPL, not GPL, as explained
d3440c
in the README file and documented in lib/Module.mk. Thanks to
d3440c
Aurelien Jarno for pointing out the inconsistency.
d3440c
d3440c
A little bit of history:
d3440c
d3440c
The code started its life two decades ago as part of the lm-sensors
d3440c
project, which was released as a whole under the GPL originally,
d3440c
including the library part (libsensors).
d3440c
d3440c
In 2007, I decided to split the i2c tools, which are not specific
d3440c
to sensor devices, to a separate package.
d3440c
d3440c
In 2009, as I was working on lm-sensors v3, I contacted all the
d3440c
original authors to get their approval to release the upcoming and all
d3440c
future versions of libsensors as LGPL instead, to allow wider
d3440c
adoption. The proposal was accepted by all original authors.
d3440c
d3440c
In 2012, I decided to turn the inlined i2c_smbus_* helper functions
d3440c
into a proper library, with the intent to release it under the LGPL,
d3440c
as is the common practice for libraries. As the authors of this code
d3440c
is a subset of the authors of libsensors, I assumed their agreement
d3440c
for libsensors could be extended to libi2c as well. This is the
d3440c
reason why LGPL is mentioned in README and lib/Module.mk.
d3440c
d3440c
Unfortunately, when working on the library code itself, I forgot to
d3440c
update the comments in the source files. Let's fix them now.
d3440c
d3440c
Signed-off-by: Jean Delvare <jdelvare@suse.de>
d3440c
---
d3440c
 include/i2c/smbus.h | 21 ++++++---------------
d3440c
 lib/smbus.c         | 16 +++-------------
d3440c
 2 files changed, 9 insertions(+), 28 deletions(-)
d3440c
d3440c
diff --git a/include/i2c/smbus.h b/include/i2c/smbus.h
d3440c
index 18a5305..3003ed7 100644
d3440c
--- a/include/i2c/smbus.h
d3440c
+++ b/include/i2c/smbus.h
d3440c
@@ -1,23 +1,14 @@
d3440c
 /*
d3440c
     smbus.h - SMBus level access helper functions
d3440c
 
d3440c
-    Copyright (C) 1995-97 Simon G. Vogl
d3440c
-    Copyright (C) 1998-99 Frodo Looijaard <frodol@dds.nl>
d3440c
+    Copyright (C) 1995-1997  Simon G. Vogl
d3440c
+    Copyright (C) 1998-1999  Frodo Looijaard <frodol@dds.nl>
d3440c
+    Copyright (C) 2012-2017  Jean Delvare <jdelvare@suse.de>
d3440c
 
d3440c
-    This program is free software; you can redistribute it and/or modify
d3440c
-    it under the terms of the GNU General Public License as published by
d3440c
-    the Free Software Foundation; either version 2 of the License, or
d3440c
+    This library is free software; you can redistribute it and/or modify
d3440c
+    it under the terms of the GNU Lesser General Public License as published
d3440c
+    by the Free Software Foundation; either version 2.1 of the License, or
d3440c
     (at your option) any later version.
d3440c
-
d3440c
-    This program is distributed in the hope that it will be useful,
d3440c
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
d3440c
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
d3440c
-    GNU General Public License for more details.
d3440c
-
d3440c
-    You should have received a copy of the GNU General Public License
d3440c
-    along with this program; if not, write to the Free Software
d3440c
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
d3440c
-    MA 02110-1301 USA.
d3440c
 */
d3440c
 
d3440c
 #ifndef LIB_I2C_SMBUS_H
d3440c
diff --git a/lib/smbus.c b/lib/smbus.c
d3440c
index 3a2c45a..df5a5ad 100644
d3440c
--- a/lib/smbus.c
d3440c
+++ b/lib/smbus.c
d3440c
@@ -5,20 +5,10 @@
d3440c
     Copyright (C) 1998-1999  Frodo Looijaard <frodol@dds.nl>
d3440c
     Copyright (C) 2012-2013  Jean Delvare <jdelvare@suse.de>
d3440c
 
d3440c
-    This program is free software; you can redistribute it and/or modify
d3440c
-    it under the terms of the GNU General Public License as published by
d3440c
-    the Free Software Foundation; either version 2 of the License, or
d3440c
+    This library is free software; you can redistribute it and/or modify
d3440c
+    it under the terms of the GNU Lesser General Public License as published
d3440c
+    by the Free Software Foundation; either version 2.1 of the License, or
d3440c
     (at your option) any later version.
d3440c
-
d3440c
-    This program is distributed in the hope that it will be useful,
d3440c
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
d3440c
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
d3440c
-    GNU General Public License for more details.
d3440c
-
d3440c
-    You should have received a copy of the GNU General Public License
d3440c
-    along with this program; if not, write to the Free Software
d3440c
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
d3440c
-    MA 02110-1301 USA.
d3440c
 */
d3440c
 
d3440c
 #include <errno.h>
d3440c
-- 
d3440c
2.14.4
d3440c