mbox series

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

Message ID 20200918160250.1141-1-luoyonggang@gmail.com
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(-)

-- 
2.28.0.windows.1

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
<div dir="ltr">Hi Bonzini, help to look at this, I convert curses and it&#39;s depends iconv to meson<div><br>On Sat, Sep 19, 2020 at 12:03 AM Yonggang Luo &lt;<a href="mailto:luoyonggang@gmail.com">luoyonggang@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; And also convert related configure script to meson.<br>&gt;<br>&gt; Yonggang Luo (4):<br>&gt;   curses: Fixes compiler error that complain don&#39;t have langinfo.h on<br>&gt;     msys2/mingw<br>&gt;   curses: Fixes curses compiling errors.<br>&gt;   win32: Simplify gmtime_r detection not depends on if  _POSIX_C_SOURCE<br>&gt;     are defined on msys2/mingw<br>&gt;   configure: Fixes ncursesw detection under msys2/mingw by convert them<br>&gt;     to meson<br>&gt;<br>&gt;  configure                 | 155 ++------------------------------------<br>&gt;  include/sysemu/os-win32.h |   4 +-<br>&gt;  meson.build               |  80 +++++++++++++++++---<br>&gt;  meson_options.txt         |   4 +<br>&gt;  ui/curses.c               |  14 ++--<br>&gt;  ui/meson.build            |   2 +-<br>&gt;  util/oslib-win32.c        |   4 +-<br>&gt;  7 files changed, 91 insertions(+), 172 deletions(-)<br>&gt;<br>&gt; --<br>&gt; 2.28.0.windows.1<br>&gt;<br><br><br>--<br>         此致<br>礼<br>罗勇刚<br>Yours<br>    sincerely,<br>Yonggang Luo</div></div>
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
<div dir="ltr"><br><br>On Sat, Sep 19, 2020 at 11:03 PM Paolo Bonzini &lt;<a href="mailto:pbonzini@redhat.com" target="_blank">pbonzini@redhat.com</a>&gt; wrote:<br>&gt;<br>&gt; On 18/09/20 18:10, 罗勇刚(Yonggang Luo) wrote:<br>&gt; &gt;<br>&gt; &gt;&gt; Yonggang Luo (4):<br>&gt; &gt;&gt;   curses: Fixes compiler error that complain don&#39;t have langinfo.h on<br>&gt; &gt;&gt;     msys2/mingw<br>&gt; &gt;&gt;   curses: Fixes curses compiling errors.<br>&gt; &gt;&gt;   win32: Simplify gmtime_r detection not depends on if  _POSIX_C_SOURCE<br>&gt; &gt;&gt;     are defined on msys2/mingw<br>&gt; &gt;&gt;   configure: Fixes ncursesw detection under msys2/mingw by convert them<br>&gt; &gt;&gt;     to meson<br>&gt;<br>&gt; Hi, patches 1-3 are okay, but for patch 4 I think it&#39;s better to wait<br>&gt; for Meson 0.56 which will likely embed all the magic needed to test<br>&gt; curses (<a href="https://github.com/mesonbuild/meson/pull/7757" target="_blank">https://github.com/mesonbuild/meson/pull/7757</a>).<br>&gt;<br>&gt; Paolo<br>&gt;<div>Wonderfull, I think there is no need fixing configure anymore, so I convert it to meson</div><div><br></div><div>Waiting <a href="https://github.com/mesonbuild/meson/pull/7757" target="_blank">https://github.com/mesonbuild/meson/pull/7757</a> to be merged.</div><div>In deed when I convert to meson, I am facing a problem that <br>DNCURSES_WIDECHAR  can not be tested with the library. <br><br>--<br>         此致<br>礼<br>罗勇刚<br>Yours<br>    sincerely,<br>Yonggang Luo</div></div>