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

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