Re: [Mingw-w64-public] [PATCH] crt: Fix __mingw_get_crt_info and remove broken revstamp.h
在 2026-9-5 21:47, Zhongteng Gui 写道: For reproducible build, usually environment variable SOURCE_DATE_EPOCH will be defined, and both GCC and Clang will use that timepoint for __DATE__ and __TIME__. BTW, many other things will break reproducible build if SOURCE_DATE_EPOCH is not defined (e.g. ar without option D), so this wouldn't add extra effort. I'm aware of it. Since this change seems small and harmless, and only affects one single object file, I think the change is fine. I have pushed this patch now. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] crt: Fix __mingw_get_crt_info and remove broken revstamp.h
On 2026/09/05 21:00, LIU Hao wrote:
> 在 2026-9-4 22:25, Zhongteng Gui 写道:
>> diff --git a/mingw-w64-crt/crt/mingw_custom.c
>> b/mingw-w64-crt/crt/mingw_custom.c
>> index 431eaba2e..da81e267d 100644
>> --- a/mingw-w64-crt/crt/mingw_custom.c
>> +++ b/mingw-w64-crt/crt/mingw_custom.c
>> @@ -5,12 +5,10 @@
>> */
>> #include <_mingw.h>
>> -#include "../revstamp.h"
>> const char *__mingw_get_crt_info (void)
>> {
>> - return "MinGW-W64 Runtime " __MINGW64_VERSION_STR " ("
>> - __MINGW64_VERSION_STATE " - "
>> - "rev. " __MINGW_W64_REV ") " __MINGW_W64_REV_STAMP;
>> + return "MinGW-w64 Runtime " __MINGW64_VERSION_STR " ("
>> + __MINGW64_VERSION_STATE ") " __DATE__ " " __TIME__;
>> }
>
> This would make the build non-reproducible. I don't know whether it's a good
> idea or not.
>
For reproducible build, usually environment variable SOURCE_DATE_EPOCH will be
defined, and both GCC and Clang will use that timepoint for __DATE__ and
__TIME__.
BTW, many other things will break reproducible build if SOURCE_DATE_EPOCH is not
defined (e.g. ar without option D), so this wouldn't add extra effort.
___
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] crt: Fix __mingw_get_crt_info and remove broken revstamp.h
在 2026-9-4 22:25, Zhongteng Gui 写道:
diff --git a/mingw-w64-crt/crt/mingw_custom.c b/mingw-w64-crt/crt/mingw_custom.c
index 431eaba2e..da81e267d 100644
--- a/mingw-w64-crt/crt/mingw_custom.c
+++ b/mingw-w64-crt/crt/mingw_custom.c
@@ -5,12 +5,10 @@
*/
#include <_mingw.h>
-#include "../revstamp.h"
const char *__mingw_get_crt_info (void)
{
- return "MinGW-W64 Runtime " __MINGW64_VERSION_STR " ("
- __MINGW64_VERSION_STATE " - "
-"rev. " __MINGW_W64_REV ") " __MINGW_W64_REV_STAMP;
+ return "MinGW-w64 Runtime " __MINGW64_VERSION_STR " ("
+ __MINGW64_VERSION_STATE ") " __DATE__ " " __TIME__;
}
This would make the build non-reproducible. I don't know whether it's a good
idea or not.
--
Best regards,
LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
