Skip to contentSkip to conversation

cryptsetup: Update the license field

PATCH Superseded Gyorgy Sarvari 2 participants 4 messages Oct 20, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cryptsetup: Update the license field

From: "Sana Kazi via lists.openembedded.org" <[email protected]>

The below reference clearly states that GPL-2.0-with-OpenSSL-exception is to be used with GPL 2.0 or GPL3.0 and not as a standalone license. Therefore, update the correct license.

Reference:
https://github.com/aboutcode-org/scancode-licensedb/blob/569d72e13e7c8d14a44380f91e80c5a2d4091f8f/docs/openssl-exception-gpl-2.0.yml#L7

---
 meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb +1 -1
index b5be30cbb2..c297de053d 100644
@@ -6,7 +6,7 @@ and can hence offer more features than plain dm-crypt. On the other \
 hand, the header is visible and vulnerable to damage."
 HOMEPAGE = "https://gitlab.com/cryptsetup/cryptsetup"
 SECTION = "console"
-LICENSE = "GPL-2.0-with-OpenSSL-exception"
+LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception"
 LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
 
 DEPENDS = " \
#1 lore raw

PATCH 2/2 cryptsetup: extend licenses with Apache and CC

The project's readme indicates that some parts of the code is covered by Apache and CC licenses - add them to the RECIPE accordingly.

---
 meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb +7 -2
index c297de053d..f2dc5d9b46 100644
@@ -6,8 +6,13 @@ and can hence offer more features than plain dm-crypt. On the other \
 hand, the header is visible and vulnerable to damage."
 HOMEPAGE = "https://gitlab.com/cryptsetup/cryptsetup"
 SECTION = "console"
-LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception"
-LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
+LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception & Apache-2.0 & CC-BY-SA-4.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326 \
+                    file://docs/licenses/COPYING.Apache-2.0;md5=3b83ef96387f14655fc854ddc3c6bd57 \
+                    file://docs/licenses/COPYING.CC-BY-SA-4.0;md5=b296faaab9c17d5874fd17967df54736 \
+                    file://docs/licenses/COPYING.GPL-2.0-or-later-WITH-cryptsetup-OpenSSL-exception;md5=32107dd283b1dfeb66c9b3e6be312326 \
+                    file://docs/licenses/COPYING.LGPL-2.1-or-later-WITH-cryptsetup-OpenSSL-exception;md5=1960515788100ce5f9c98ea78a65dc52 \
+                    file://README.licensing;md5=45c1ba157f18d08991819f41f56d72e9"
 
 DEPENDS = " \
     json-c \
#2 lore raw

RE: [meta-oe][PATCH 2/2] cryptsetup: extend licenses with Apache and CC

Quoted 6 lines

-----Original Message-----
From: Gyorgy Sarvari <[email protected]>
Sent: den 20 oktober 2025 20:00
To: [email protected]
Cc: Peter Kjellerstedt <[email protected]>
Subject: [meta-oe][PATCH 2/2] cryptsetup: extend licenses with Apache and CC

Apache -> Apache-2.0
CC -> CC-BY-SA-4.0

Quoted 20 lines

The project's readme indicates that some parts of the code is covered by Apache and CC licenses - add them to the RECIPE accordingly.

---
 meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb +0 -2
index c297de053d..f2dc5d9b46 100644
@@ -6,8 +6,13 @@ and can hence offer more features than plain dm-crypt. On the other \
 hand, the header is visible and vulnerable to damage."
 HOMEPAGE = "https://gitlab.com/cryptsetup/cryptsetup"
 SECTION = "console"
-LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception"
-LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"

meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb and can hence offer more features than plain dm-crypt. On the other \ · line 18

Quoted 10 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb +7 -0
+LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception & Apache-2.0 & CC-BY-SA-4.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326 \
+                    file://docs/licenses/COPYING.Apache-2.0;md5=3b83ef96387f14655fc854ddc3c6bd57 \
+                    file://docs/licenses/COPYING.CC-BY-SA-4.0;md5=b296faaab9c17d5874fd17967df54736 \
+                    file://docs/licenses/COPYING.GPL-2.0-or-later-WITH-cryptsetup-OpenSSL-exception;md5=32107dd283b1dfeb66c9b3e6be312326 \
+                    file://docs/licenses/COPYING.LGPL-2.1-or-later-WITH-cryptsetup-OpenSSL-exception;md5=1960515788100ce5f9c98ea78a65dc52 \
+                    file://README.licensing;md5=45c1ba157f18d08991819f41f56d72e9"
 
 DEPENDS = " \
     json-c \

If you are going to include CC-BY-SA-4.0 in LICENSE, then you also need to set LICENSE:<pkg> for all packages that this recipe produces. The license is only used for the FAQ.md file, which does not affect the output of any package.

//Peter

#3 lore raw

Re: [meta-oe][PATCH 2/2] cryptsetup: extend licenses with Apache and CC

Quoted 36 lines · Peter Kjellerstedt
Quoted 6 lines

-----Original Message-----
From: Gyorgy Sarvari <[email protected]>
Sent: den 20 oktober 2025 20:00
To: [email protected]
Cc: Peter Kjellerstedt <[email protected]>
Subject: [meta-oe][PATCH 2/2] cryptsetup: extend licenses with Apache and CC

Apache -> Apache-2.0
CC -> CC-BY-SA-4.0

Quoted 27 lines

The project's readme indicates that some parts of the code is covered by Apache and CC licenses - add them to the RECIPE accordingly.

---
 meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb +7 -2
index c297de053d..f2dc5d9b46 100644
@@ -6,8 +6,13 @@ and can hence offer more features than plain dm-crypt. On the other \
 hand, the header is visible and vulnerable to damage."
 HOMEPAGE = "https://gitlab.com/cryptsetup/cryptsetup"
 SECTION = "console"
-LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception"
-LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
+LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-2.0-with-OpenSSL-exception & Apache-2.0 & CC-BY-SA-4.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326 \
+                    file://docs/licenses/COPYING.Apache-2.0;md5=3b83ef96387f14655fc854ddc3c6bd57 \
+                    file://docs/licenses/COPYING.CC-BY-SA-4.0;md5=b296faaab9c17d5874fd17967df54736 \
+                    file://docs/licenses/COPYING.GPL-2.0-or-later-WITH-cryptsetup-OpenSSL-exception;md5=32107dd283b1dfeb66c9b3e6be312326 \
+                    file://docs/licenses/COPYING.LGPL-2.1-or-later-WITH-cryptsetup-OpenSSL-exception;md5=1960515788100ce5f9c98ea78a65dc52 \
+                    file://README.licensing;md5=45c1ba157f18d08991819f41f56d72e9"
 
Quoted 9 lines

meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb and can hence offer more features than plain dm-crypt. On the other \ · line 18

Quoted 2 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.8.1.bb +0 -0
 DEPENDS = " \
     json-c \

If you are going to include CC-BY-SA-4.0 in LICENSE, then you also need to set LICENSE:<pkg> for all packages that this recipe produces. The license is only used for the FAQ.md file, which does not affect the output of any package.

//Peter

True, thanks for that. I thought that argon library was relicensed since kirkstone, but I only assumed that without checking it the actual content under this cc license. Will send a new version.