Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 527602

Summary: sys-libs/ncurses - add MinGW support
Product: Gentoo Linux Reporter: Luke-Jr <luke-jr+gentoobugs>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ncurses-5.9.20141025.patch

Description Luke-Jr 2014-10-31 11:03:00 UTC
Created attachment 387874 [details, diff]
ncurses-5.9.20141025.patch

I took the effort to get ncurses building for MinGW (requires a newer version). Hopefully this patch is helpful when the maintainers decide to add a newer ebuild to the tree.

Rationale behind changes:
- At least ncurses-5.9-rxvt-unicode-9.15.patch and ncurses-5.9-fix-clang-build.patch are included in the mainline patches. I did not investigate whether ncurses-5.9-pkg-config.patch is still necessary in some form - it did not apply cleanly.
- Upstream's --with-pkg-config now requires an absolute path, so I gave it one using $(which ...)
- MinGW builds require two additional configure flags: --enable-sp-funcs --enable-term-driver
- The libcurses.dll link is unnecessary and broken for MinGW (the ncurses build system sets up the necessary libcurses.dll.a on its own)
- Removing *.a was deleting the import libraries, so I added an exception for *.dll.a, which are stubs needed to link to the shared libraries.
Comment 1 SpanKY gentoo-dev 2014-10-31 16:08:56 UTC

*** This bug has been marked as a duplicate of bug 296569 ***