On 14/09/2025 15:53, Bruno Haible wrote:
Simon Josefsson wrote:
Getenv
can be a complicated function, and didn't use to be thread-safe
everywhere and GPL is not LGPL-compatible.

getenv() is MT-safe, as long as other threads don't use setenv()
or putenv(). It setenv/putenv that are not MT-safe, except in very
recent glibc versions.

If getenv() were not MT-safe, all the multithreaded programs that
use gettext() would have had a problem, because gettext() uses
getenv ("LANGUAGE").

It seems unfortunate that
this change makes it harder to use the crc-x86_64 optimization from
these low-level libraries, not simpler, so I'll have to drop the
optimization and only use the core 'crc' module instead for these
usages.

Alternatively, you could override the 'cpu-supports' module with a
simpler one, via
https://www.gnu.org/software/gnulib/manual/html_node/Extending-Gnulib.html ,
and then you can still use the crc-x86_64 optimization.

OK. I'll relicense anyway. I'll push this later:

commit 9df5390616998cfc5f31d0c9123ca51757c947c8 (HEAD -> master)Author: Pádraig Brady 
<[email protected]>
Date:   Mon Sep 15 12:44:49 2025 +0100

    cpu-supports: relicense under LGPL

    * modules/cpu-supports: Relicense under LGPL
    to match the crc-x86_64 module.

diff --git a/ChangeLog b/ChangeLog
index 3957120bbf..986ff2fa4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-09-15  Pádraig Brady  <[email protected]>
+
+       cpu-supports: relicense under LGPL
+       * modules/cpu-supports: Relicense under LGPL
+       to match the crc-x86_64 module.
+
 2025-09-15  Bruno Haible  <[email protected]>

        pagealign_alloc tests: Fix link error.
diff --git a/modules/cpu-supports b/modules/cpu-supports
index a66453a4d4..dcb07df8c3 100644
--- a/modules/cpu-supports
+++ b/modules/cpu-supports
@@ -21,7 +21,7 @@ Include:
 "cpu-supports.h"

 License:
-GPL
+LGPL

 Maintainer:
 all


Reply via email to