Jakub Jelinek <ja...@redhat.com> writes: > Hi! > > As mentioned on IRC or in PR108413, the last update-copyright.py --this year > failed and that is why we are in a strange state where some copyrights have > been updated and others have not. > The full list of errors I got was I think: > gcc/m2/mc-boot/GmcOptions.c: unrecognised copyright: comment (f, (const char > *) "Copyright (C) ''2021'' Free Software Foundation, Inc.", 53); > gcc/m2/mc-boot/GmcOptions.c: unrecognised copyright: comment (f, (const char > *) "Copyright (C) ''2021'' Free Software Foundation, Inc.", 53); > gcc/testsuite/gm2/switches/pedantic-params/pass/Strings.mod: unrecognised > copyright holder: Faculty of Information Technology, > gcc/testsuite/gm2/switches/pedantic-params/pass/Strings2.mod: unrecognised > copyright holder: Faculty of Information Technology, > libphobos/libdruntime/__builtins.di: unrecognised copyright: * Copyright: > Copyright Digital Mars 2022 > libstdc++-v3/src/c++17/fast_float/fast_float.h: unrecognised copyright > holder: The fast_float authors > libstdc++-v3/include/c_compatibility/stdatomic.h: unrecognised copyright > holder: The GCC developers > > The following patch deals with the gcc/testsuite/gm2 ones and > with the fast_float.h one, ok for trunk? > > Not really sure what we should do in the GmcOptions.c case > (perhaps obfuscate it in the source somehow by splitting > the string literals into different substrings > Perhaps "Copy" "right (" "C) ''..." would do it? Or do we want > to bump there each year (manually or by the script)? > E.g. in gcc.cc we have > printf ("Copyright %s 2023 Free Software Foundation, Inc.\n", > _("(C)")); > which also prints (C) nicer in Unicode if possible and is updated > by hand each year. >
Hi, I've git pushed some fixes for gcc/m2/mc/mcOptions.mod to obfuscate the copyright text. The change to mcOptions.mod also includes the removal of the 'YEAR' constant and it queries the system for the year. A summary of the ChangeLog: gcc/m2/ChangeLog: * mc-boot/GmcOptions.c: Rebuilt. * mc/mcOptions.mod (displayVersion): Split first printf into three components * mc/mcOptions.mod (YEAR): Remove. (getYear): New procedure function. (displayVersion): Use result from getYear instead of YEAR. Emit boilerplate for GPL v3. (gplBody): Use result from getYear instead of YEAR. (glplBody): Use result from getYear instead of YEAR. regards, Gaius