mbox series

[v5,0/4] Fixes curses on msys2/mingw

Message ID 20200918160250.1141-1-luoyonggang@gmail.com (mailing list archive)
Headers show
Series Fixes curses on msys2/mingw | expand

Message

Yonggang Luo Sept. 18, 2020, 4:02 p.m. UTC
And also convert related configure script to meson.

Yonggang Luo (4):
  curses: Fixes compiler error that complain don't have langinfo.h on
    msys2/mingw
  curses: Fixes curses compiling errors.
  win32: Simplify gmtime_r detection not depends on if  _POSIX_C_SOURCE
    are defined on msys2/mingw
  configure: Fixes ncursesw detection under msys2/mingw by convert them
    to meson

 configure                 | 155 ++------------------------------------
 include/sysemu/os-win32.h |   4 +-
 meson.build               |  80 +++++++++++++++++---
 meson_options.txt         |   4 +
 ui/curses.c               |  14 ++--
 ui/meson.build            |   2 +-
 util/oslib-win32.c        |   4 +-
 7 files changed, 91 insertions(+), 172 deletions(-)

Comments

Yonggang Luo Sept. 18, 2020, 4:10 p.m. UTC | #1
Hi Bonzini, help to look at this, I convert curses and it's depends iconv
to meson

On Sat, Sep 19, 2020 at 12:03 AM Yonggang Luo <luoyonggang@gmail.com> wrote:
>
> And also convert related configure script to meson.
>
> Yonggang Luo (4):
>   curses: Fixes compiler error that complain don't have langinfo.h on
>     msys2/mingw
>   curses: Fixes curses compiling errors.
>   win32: Simplify gmtime_r detection not depends on if  _POSIX_C_SOURCE
>     are defined on msys2/mingw
>   configure: Fixes ncursesw detection under msys2/mingw by convert them
>     to meson
>
>  configure                 | 155 ++------------------------------------
>  include/sysemu/os-win32.h |   4 +-
>  meson.build               |  80 +++++++++++++++++---
>  meson_options.txt         |   4 +
>  ui/curses.c               |  14 ++--
>  ui/meson.build            |   2 +-
>  util/oslib-win32.c        |   4 +-
>  7 files changed, 91 insertions(+), 172 deletions(-)
>
> --
> 2.28.0.windows.1
>


--
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo
Paolo Bonzini Sept. 19, 2020, 3:03 p.m. UTC | #2
On 18/09/20 18:10, 罗勇刚(Yonggang Luo) wrote:
> 
>> Yonggang Luo (4):
>>   curses: Fixes compiler error that complain don't have langinfo.h on
>>     msys2/mingw
>>   curses: Fixes curses compiling errors.
>>   win32: Simplify gmtime_r detection not depends on if  _POSIX_C_SOURCE
>>     are defined on msys2/mingw
>>   configure: Fixes ncursesw detection under msys2/mingw by convert them
>>     to meson

Hi, patches 1-3 are okay, but for patch 4 I think it's better to wait
for Meson 0.56 which will likely embed all the magic needed to test
curses (https://github.com/mesonbuild/meson/pull/7757).

Paolo
Yonggang Luo Sept. 19, 2020, 4:23 p.m. UTC | #3
On Sat, Sep 19, 2020 at 11:03 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> On 18/09/20 18:10, 罗勇刚(Yonggang Luo) wrote:
> >
> >> Yonggang Luo (4):
> >>   curses: Fixes compiler error that complain don't have langinfo.h on
> >>     msys2/mingw
> >>   curses: Fixes curses compiling errors.
> >>   win32: Simplify gmtime_r detection not depends on if  _POSIX_C_SOURCE
> >>     are defined on msys2/mingw
> >>   configure: Fixes ncursesw detection under msys2/mingw by convert them
> >>     to meson
>
> Hi, patches 1-3 are okay, but for patch 4 I think it's better to wait
> for Meson 0.56 which will likely embed all the magic needed to test
> curses (https://github.com/mesonbuild/meson/pull/7757).
>
> Paolo
>
Wonderfull, I think there is no need fixing configure anymore, so I convert
it to meson

Waiting https://github.com/mesonbuild/meson/pull/7757 to be merged.
In deed when I convert to meson, I am facing a problem that
DNCURSES_WIDECHAR  can not be tested with the library.

--
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo