Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527602 - sys-libs/ncurses - add MinGW support
Summary: sys-libs/ncurses - add MinGW support
Status: RESOLVED DUPLICATE of bug 296569
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-10-31 11:03 UTC by Luke-Jr
Modified: 2014-10-31 16:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ncurses-5.9.20141025.patch (ncurses-5.9.20141025.patch,2.74 KB, patch)
2014-10-31 11:03 UTC, Luke-Jr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***