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

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