unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 0f6a31317be9823725deee13155c3f59bc69922d 975 bytes (raw)
name: gnu/packages/patches/ncurses-mingw.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
Taken from Eli Zaretskii's gdb bug report

    https://sourceware.org/ml/gdb-patches/2012-04/msg01052.html

Upstream status: Not presented to upstream.

--- ncurses-6.0.orig/include/curses.h.in	2014-08-09 22:39:44.000000000 +0200
+++ ncurses-6.0/include/curses.h.in	2016-04-09 20:47:14.266679000 +0200
@@ -1420,3 +1420,15 @@
 #define KEY_BREAK	0401		/* Break key (unreliable) */
 #define KEY_SRESET	0530		/* Soft (partial) reset (unreliable) */
 #define KEY_RESET	0531		/* Reset or hard reset (unreliable) */
+
+#ifdef __MINGW32__
+/* Windows API headers, included e.g. by serial.h, define MOUSE_MOVED,
+   and so does PDCurses's curses.h, but for an entirely different
+   purpose.  Since we don't use the Windows semantics of MOUSE_MOVED
+   anywhere, avoid compiler warnings by undefining MOUSE_MOVED before
+   including curses.h.  */
+#undef MOUSE_MOVED
+/* Likewise, KEY_EVENT is defined by ncurses.h, but also by Windows
+   API headers.  */
+#undef KEY_EVENT
+#endif

debug log:

solving 0f6a313 ...
found 0f6a313 in https://yhetil.org/guix-devel/8737q41qtk.fsf@drakenvlieg.flower/ ||
	https://yhetil.org/guix-devel/20160809064139.27872-8-janneke@gnu.org/ ||
	https://yhetil.org/guix-devel/1462740169-15029-7-git-send-email-janneke@gnu.org/ ||
	https://yhetil.org/guix-devel/1461942751-23883-7-git-send-email-janneke@gnu.org/ ||
	https://yhetil.org/guix-devel/87pota7sxv.fsf@drakenvlieg.flower/ ||
	https://yhetil.org/guix-devel/87lh4080wu.fsf@drakenvlieg.flower/ ||
	https://yhetil.org/guix-devel/87bn4yhurl.fsf_-_@drakenvlieg.flower/

applying [1/1] https://yhetil.org/guix-devel/8737q41qtk.fsf@drakenvlieg.flower/
diff --git a/gnu/packages/patches/ncurses-mingw.patch b/gnu/packages/patches/ncurses-mingw.patch
new file mode 100644
index 0000000..0f6a313

Checking patch gnu/packages/patches/ncurses-mingw.patch...
Applied patch gnu/packages/patches/ncurses-mingw.patch cleanly.

skipping https://yhetil.org/guix-devel/20160809064139.27872-8-janneke@gnu.org/ for 0f6a313
skipping https://yhetil.org/guix-devel/1462740169-15029-7-git-send-email-janneke@gnu.org/ for 0f6a313
skipping https://yhetil.org/guix-devel/1461942751-23883-7-git-send-email-janneke@gnu.org/ for 0f6a313
skipping https://yhetil.org/guix-devel/87pota7sxv.fsf@drakenvlieg.flower/ for 0f6a313
skipping https://yhetil.org/guix-devel/87lh4080wu.fsf@drakenvlieg.flower/ for 0f6a313
skipping https://yhetil.org/guix-devel/87bn4yhurl.fsf_-_@drakenvlieg.flower/ for 0f6a313
index at:
100644 0f6a31317be9823725deee13155c3f59bc69922d	gnu/packages/patches/ncurses-mingw.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).