From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 10 Aug 2023 13:04:06 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU3SY-00F7uj-Vi for lore@lore.pengutronix.de; Thu, 10 Aug 2023 13:04:06 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qU3SW-00027y-BC; Thu, 10 Aug 2023 13:04:04 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qU3RT-0001xX-Kd; Thu, 10 Aug 2023 13:02:59 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qU3RT-002QVe-0c; Thu, 10 Aug 2023 13:02:59 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qU3RS-009PQW-26; Thu, 10 Aug 2023 13:02:58 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Thu, 10 Aug 2023 13:02:54 +0200 Message-Id: <20230810110256.2242386-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 1/3] rauc: fix license and add license files checksums X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Until recently, RAUC's license was only given implicitly in the meson.build file. Backport the unreleased upstream patch making the license explicit, so we can pin down that information with a checksum. The license identifier was previously ported from "LGPL-2.1" to "LGPL-2.1-only" in PTXdist commit 4850f7aac30aebf4ef64 (2018-02-12, Michael Olbrich: "update all spdx license identifier to the new version") without adding any license file checksum as source, which turned out to be slightly incorrect. Fix the identifier based on the newly added patch. Link: https://github.com/rauc/rauc/pull/1211 Signed-off-by: Roland Hieber --- .../0001-README-clarify-license.patch | 59 +++++++++++++++++++ patches/rauc-1.10/series | 4 ++ rules/rauc.make | 5 +- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 patches/rauc-1.10/0001-README-clarify-license.patch create mode 100644 patches/rauc-1.10/series diff --git a/patches/rauc-1.10/0001-README-clarify-license.patch b/patches/rauc-1.10/0001-README-clarify-license.patch new file mode 100644 index 000000000000..3154228602bd --- /dev/null +++ b/patches/rauc-1.10/0001-README-clarify-license.patch @@ -0,0 +1,59 @@ +From: Roland Hieber +Date: Tue, 8 Aug 2023 14:32:05 +0200 +Subject: [PATCH] README: clarify license + +Simply including the LGPL license text is not enough information to +determine the license of a software project, as Section 13 of the LGPL +allows licensees to choose the terms of "any later version of the +license" if specified so by the copyright holders. + +The information in meson.build implies "LGPL-2.1-or-later" as project +license. As a minimal measure to make this information explicit, add the +usual license notice and warranty disclaimer as recommended in the GNU +GPL How-To to the README file, and also add a minimal copyright notice +as required by Section 1 of the LGPL. + +Let the LGPL badge at the start of the README point to the relevant +section further down. + +Link: https://www.gnu.org/licenses/gpl-howto.html#why-license-notices +Link: https://www.gnu.org/licenses/identify-licenses-clearly.html +Signed-off-by: Roland Hieber +Upstream-Status: Backport https://github.com/rauc/rauc/commit/b20002582f6c7 +--- + README.rst | 21 ++++++++++++++++++++- + 1 file changed, 20 insertions(+), 1 deletion(-) + +diff --git a/README.rst b/README.rst +index aa01720effeb..18f9f44413e0 100644 +--- a/README.rst ++++ b/README.rst +@@ -280,8 +280,27 @@ Please read the Documentation's + `Contributing `_ + section for more details. + ++License ++------- ++ ++Copyright (C) 2015–2023 RAUC project ++ ++RAUC is free software; you can redistribute it and/or modify it under the terms ++of the GNU Lesser General Public License as published by the Free Software ++Foundation; either version 2.1 of the License, or (at your option) any later ++version. ++ ++This library 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 Lesser General Public License for more details. ++ ++You should have received a copy of the GNU Lesser General Public License along ++with this source code, see the file named `COPYING`_. If not, see ++https://www.gnu.org/licenses/. ++ + .. |LGPLv2.1| image:: https://img.shields.io/badge/license-LGPLv2.1-blue.svg +- :target: https://raw.githubusercontent.com/rauc/rauc/master/COPYING ++ :target: #license ++.. _COPYING: https://raw.githubusercontent.com/rauc/rauc/master/COPYING + .. |CI_branch| image:: https://github.com/rauc/rauc/workflows/tests/badge.svg + :target: https://github.com/rauc/rauc/actions?query=workflow%3Atests + .. |Codecov_branch| image:: https://codecov.io/gh/rauc/rauc/branch/master/graph/badge.svg diff --git a/patches/rauc-1.10/series b/patches/rauc-1.10/series new file mode 100644 index 000000000000..cd19ad51f19b --- /dev/null +++ b/patches/rauc-1.10/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-README-clarify-license.patch +# db9f69fcb4d731f1af20ab33abdd2fca - git-ptx-patches magic diff --git a/rules/rauc.make b/rules/rauc.make index 0f71f12edef0..2f2351b90ac8 100644 --- a/rules/rauc.make +++ b/rules/rauc.make @@ -21,7 +21,10 @@ RAUC_SUFFIX := tar.xz RAUC_URL := https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION)/$(RAUC).$(RAUC_SUFFIX) RAUC_SOURCE := $(SRCDIR)/$(RAUC)-meson.$(RAUC_SUFFIX) RAUC_DIR := $(BUILDDIR)/$(RAUC) -RAUC_LICENSE := LGPL-2.1-only +RAUC_LICENSE := LGPL-2.1-or-later +RAUC_LICENSE_FILES := \ + file://README.rst;startline=286;endline=299;md5=d98e15259a1a004b59d4701b3d49cf44 \ + file://COPYING;md5=4fbd65380cdd255951079008b364516c # ---------------------------------------------------------------------------- # Prepare -- 2.39.2