GNU bug report logs - #48354
[PATCH] Fix compat with latest mingw64-headers

Previous Next

Package: emacs;

Reported by: Konstantin Shabanov <mail <at> etehtsea.me>

Date: Tue, 11 May 2021 15:02:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48354 in the body.
You can then email your comments to 48354 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#48354; Package emacs. (Tue, 11 May 2021 15:02:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Konstantin Shabanov <mail <at> etehtsea.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 11 May 2021 15:02:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Konstantin Shabanov <mail <at> etehtsea.me>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: [PATCH] Fix compat with latest mingw64-headers
Date: Tue, 11 May 2021 12:59:47 +0000
[Message part 1 (text/plain, inline)]
This commit to mingw-w64 broke compatibility with emacs-head because of the OS_NT conflict:

    In file included from w32image.c:32:
    w32common.h:45:3: error: expected identifier before numeric constant
       45 |   OS_NT
          |   ^~~~~

https://sourceforge.net/p/mingw-w64/mingw-w64/ci/dc7ef298837d4581200a3bed660aed36818c1b00/

The series of patches in attachments should fix the issue:
- the first one should cause the build to fail in the future instead of silent overriding definition;
- the second patch renames OS_9X to conform mingw-w64 naming;
- the third actually fixes build failure (preserving backward compatibility);

Best regards,
Konstantin Shabanov
[0001-Reorder-headers-inclusion.patch (application/octet-stream, attachment)]
[0003-Fix-compatibility-with-the-latest-mingw64-headers.patch (application/octet-stream, attachment)]
[0002-Rename-OS_9X-to-OS_WIN95ORGREATER.patch (application/octet-stream, attachment)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Tue, 11 May 2021 15:47:01 GMT) Full text and rfc822 format available.

Notification sent to Konstantin Shabanov <mail <at> etehtsea.me>:
bug acknowledged by developer. (Tue, 11 May 2021 15:47:02 GMT) Full text and rfc822 format available.

Message #10 received at 48354-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Konstantin Shabanov <mail <at> etehtsea.me>
Cc: 48354-done <at> debbugs.gnu.org
Subject: Re: bug#48354: [PATCH] Fix compat with latest mingw64-headers
Date: Tue, 11 May 2021 18:46:50 +0300
> Date: Tue, 11 May 2021 12:59:47 +0000
> From: Konstantin Shabanov <mail <at> etehtsea.me>
> 
> 
> [1:text/plain Hide]
> 
> This commit to mingw-w64 broke compatibility with emacs-head because of the OS_NT conflict:
> 
>     In file included from w32image.c:32:
>     w32common.h:45:3: error: expected identifier before numeric constant
>        45 |   OS_NT
>           |   ^~~~~
> 
> https://sourceforge.net/p/mingw-w64/mingw-w64/ci/dc7ef298837d4581200a3bed660aed36818c1b00/
> 
> The series of patches in attachments should fix the issue:
> - the first one should cause the build to fail in the future instead of silent overriding definition;
> - the second patch renames OS_9X to conform mingw-w64 naming;
> - the third actually fixes build failure (preserving backward compatibility);

Thanks, this is already fixed since 2 days ago on the emacs-27 branch,
soon to be merged to master.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 09 Jun 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.