Running "make sc_check_copyright" produces this table:

Module License    File License      File name
================= ================= =====================================
GPL               LGPLv2+           lib/hash-triple.h
LGPL              LGPLv3+ or GPLv2+ lib/str-kmp.h
LGPLv2+           ??                lib/mcel.c
LGPL              GPL               lib/propername-lite.c
LGPL              GPL               lib/propername.h
LGPLv2+           ??                lib/same-inode.c
LGPLv2+           LGPL              lib/str_endswith.c
LGPLv2+           LGPL              lib/str_startswith.c
GPL               LGPL              lib/xstring-buffer.c
GPL               LGPL              lib/xstring-buffer-printf.c
GPL               LGPL              lib/xstring-buffer-reversed.c
GPL               LGPL              lib/xstring-buffer-reversed-printf.c

This patch fixes some of the rows.


2025-05-07  Bruno Haible  <br...@clisp.org>

        Add/fix some license notices.
        * lib/mcel.c: Use same license notice as lib/mcel.h.
        * lib/same-inode.c: Use same license notice as lib/same-inode.h.
        * lib/str_startswith.c: Change license notice to LGPLv2+.
        * lib/str_endswith.c: Likewise.
        * lib/hash-triple.h: Change license notice to GPL.
        * lib/xstring-buffer.c: Likewise.
        * lib/xstring-buffer-printf.c: Likewise.
        * lib/xstring-buffer-reversed.c: Likewise.
        * lib/xstring-buffer-reversed-printf.c: Likewise.

diff --git a/lib/hash-triple.h b/lib/hash-triple.h
index 72f9ee6b51..8e23ca8855 100644
--- a/lib/hash-triple.h
+++ b/lib/hash-triple.h
@@ -2,16 +2,16 @@
    Copyright (C) 2025 Free Software Foundation, Inc.
 
    This file 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.
+   it under the terms of the GNU General Public License as published
+   by the Free Software Foundation, either version 3 of the License,
+   or (at your option) any later version.
 
    This file 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.
+   GNU General Public License for more details.
 
-   You should have received a copy of the GNU Lesser General Public License
+   You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 #include "hashcode-file.h"
diff --git a/lib/mcel.c b/lib/mcel.c
index 3c2ae46290..8e80b322bf 100644
--- a/lib/mcel.c
+++ b/lib/mcel.c
@@ -1,3 +1,19 @@
+/* Multi-byte characters, Error encodings, and Lengths (MCELs)
+   Copyright 2023-2025 Free Software Foundation, Inc.
+
+   This file 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 file 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 program.  If not, see <https://www.gnu.org/licenses/>.  */
+
 #include <config.h>
 #define MCEL_INLINE _GL_EXTERN_INLINE
 #include "mcel.h"
diff --git a/lib/same-inode.c b/lib/same-inode.c
index 08c66a2586..49a49e08ea 100644
--- a/lib/same-inode.c
+++ b/lib/same-inode.c
@@ -1,3 +1,20 @@
+/* Determine whether two stat buffers are known to refer to the same file.
+
+   Copyright (C) 2023-2025 Free Software Foundation, Inc.
+
+   This file 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 file 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 program.  If not, see <https://www.gnu.org/licenses/>.  */
+
 #include <config.h>
 #define SAME_INODE_INLINE _GL_EXTERN_INLINE
 #include "same-inode.h"
diff --git a/lib/str_endswith.c b/lib/str_endswith.c
index 87728cf62c..3d2a99c594 100644
--- a/lib/str_endswith.c
+++ b/lib/str_endswith.c
@@ -3,7 +3,7 @@
 
    This file 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 3 of the
+   published by the Free Software Foundation; either version 2.1 of the
    License, or (at your option) any later version.
 
    This file is distributed in the hope that it will be useful,
diff --git a/lib/str_startswith.c b/lib/str_startswith.c
index ff7ab59584..34297709bc 100644
--- a/lib/str_startswith.c
+++ b/lib/str_startswith.c
@@ -3,7 +3,7 @@
 
    This file 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 3 of the
+   published by the Free Software Foundation; either version 2.1 of the
    License, or (at your option) any later version.
 
    This file is distributed in the hope that it will be useful,
diff --git a/lib/xstring-buffer-printf.c b/lib/xstring-buffer-printf.c
index d5531773f7..252e318a56 100644
--- a/lib/xstring-buffer-printf.c
+++ b/lib/xstring-buffer-printf.c
@@ -2,16 +2,16 @@
    Copyright (C) 2024-2025 Free Software Foundation, Inc.
 
    This file 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 3 of the
-   License, or (at your option) any later version.
+   it under the terms of the GNU General Public License as published
+   by the Free Software Foundation, either version 3 of the License,
+   or (at your option) any later version.
 
    This file 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.
+   GNU General Public License for more details.
 
-   You should have received a copy of the GNU Lesser General Public License
+   You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 /* Written by Bruno Haible <br...@clisp.org>, 2024.  */
diff --git a/lib/xstring-buffer-reversed-printf.c 
b/lib/xstring-buffer-reversed-printf.c
index 32a927ee5e..062ac929b1 100644
--- a/lib/xstring-buffer-reversed-printf.c
+++ b/lib/xstring-buffer-reversed-printf.c
@@ -2,16 +2,16 @@
    Copyright (C) 2024-2025 Free Software Foundation, Inc.
 
    This file 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 3 of the
-   License, or (at your option) any later version.
+   it under the terms of the GNU General Public License as published
+   by the Free Software Foundation, either version 3 of the License,
+   or (at your option) any later version.
 
    This file 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.
+   GNU General Public License for more details.
 
-   You should have received a copy of the GNU Lesser General Public License
+   You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 /* Written by Bruno Haible <br...@clisp.org>, 2025.  */
diff --git a/lib/xstring-buffer-reversed.c b/lib/xstring-buffer-reversed.c
index 411f858782..333ccbd8a2 100644
--- a/lib/xstring-buffer-reversed.c
+++ b/lib/xstring-buffer-reversed.c
@@ -2,16 +2,16 @@
    Copyright (C) 2024-2025 Free Software Foundation, Inc.
 
    This file 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 3 of the
-   License, or (at your option) any later version.
+   it under the terms of the GNU General Public License as published
+   by the Free Software Foundation, either version 3 of the License,
+   or (at your option) any later version.
 
    This file 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.
+   GNU General Public License for more details.
 
-   You should have received a copy of the GNU Lesser General Public License
+   You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 /* Written by Bruno Haible <br...@clisp.org>, 2025.  */
diff --git a/lib/xstring-buffer.c b/lib/xstring-buffer.c
index 7518f4f381..4ef1a80a80 100644
--- a/lib/xstring-buffer.c
+++ b/lib/xstring-buffer.c
@@ -2,16 +2,16 @@
    Copyright (C) 2024-2025 Free Software Foundation, Inc.
 
    This file 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 3 of the
-   License, or (at your option) any later version.
+   it under the terms of the GNU General Public License as published
+   by the Free Software Foundation, either version 3 of the License,
+   or (at your option) any later version.
 
    This file 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.
+   GNU General Public License for more details.
 
-   You should have received a copy of the GNU Lesser General Public License
+   You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 /* Written by Bruno Haible <br...@clisp.org>, 2024.  */




Reply via email to