Skip to contentSkip to conversation

socat: Update LICENSE field

PATCH In review Naman Jain 3 participants 3 messages Oct 30, 2025 – Nov 3, 2025

lore
Share & tools
lore

Naman Jain

author
#0 lore raw

PATCH 1/1 socat: Update LICENSE field

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. Also add LGPL-2.1-or-later as socat uses it.

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

---
 meta/recipes-connectivity/socat/socat_1.8.0.3.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-connectivity/socat/socat_1.8.0.3.bb +3 -2
index ee6ca1fe44..f4c3591710 100644
@@ -5,9 +5,10 @@ HOMEPAGE = "http://www.dest-unreach.org/socat/"
 
 SECTION = "console/network"
 
-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=b234ee4d69f5fce4486a80fdaf4a4263 \
-                    file://README;beginline=248;endline=278;md5=338c05eadd013872abb1d6e198e10a3f"
+                    file://README;beginline=248;endline=278;md5=338c05eadd013872abb1d6e198e10a3f \
+                    file://COPYING.OpenSSL;md5=5c9bccc77f67a8328ef4ebaf468116f4"
 
 SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
            file://0001-fix-compile-procan.c-failed.patch \
Signature · 1 line
2.34.1
#1 lore raw
Quoted 4 lines · Naman Jain via lists.openembedded.org

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. Also add LGPL-2.1-or-later as socat uses it.

Is socat under LGPL? The only LGPL part I could find is some .c code which is shipped embedded in an android specific shell script - but maybe I'm searching wrong.

#2 lore raw

Hi Naman Jain,

Quoted 10 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 4 lines · Naman Jain via lists.openembedded.org

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. Also add LGPL-2.1-or-later as socat uses it.

Is socat under LGPL? The only LGPL part I could find is some .c code which is shipped embedded in an android specific shell script - but maybe I'm searching wrong.

I don't think the GPL-2.0-or-later is correct either.

The files have a top comment

/* Published under the GNU General Public License V.2, see file COPYING */

According to the COPYING file, the "or later" part only applies if the files actually do mention "any later version", which isn't the case here so should be GPL-2.0-only with the OpenSSL exception, but IANAL.

There's been a release this year, so the project is still somewhat active, maybe asking for confirmation would be best here.

Cheers,
Quentin