* Re: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3)
2017-04-26 10:50 [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3) Kamil Rytarowski
@ 2017-05-05 11:51 ` Kamil Rytarowski
2017-05-08 11:33 ` Alex Bennée
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Kamil Rytarowski @ 2017-05-05 11:51 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
x1 ping
On 26.04.2017 12:50, Kamil Rytarowski wrote:
> NetBSD ships with traditional BSD curses with compatibility with ncurses.
> qemu works nicely with the basesystem version of curses(3) from NetBSD.
>
> The only mismatch between curses(3) and ncurses is the lack of
> curses_version() in the NetBSD version. This function is used solely in
> the configure script, therefore eliminate it from the curses(3) detection.
>
> With this change applied, configure detects correctly curses frontend.
>
> Signed-off-by: Kamil Rytarowski <n54@gmx.com>
> ---
> configure | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index c35acf1192..17dc7224f7 100755
> --- a/configure
> +++ b/configure
> @@ -3034,14 +3034,13 @@ if test "$curses" != "no" ; then
> #include <curses.h>
> #include <wchar.h>
> int main(void) {
> - const char *s = curses_version();
> wchar_t wch = L'w';
> setlocale(LC_ALL, "");
> resize_term(0, 0);
> addwstr(L"wide chars\n");
> addnwstr(&wch, 1);
> add_wch(WACS_DEGREE);
> - return s != 0;
> + return 0;
> }
> EOF
> IFS=:
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3)
2017-04-26 10:50 [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3) Kamil Rytarowski
2017-05-05 11:51 ` Kamil Rytarowski
@ 2017-05-08 11:33 ` Alex Bennée
2017-05-20 23:17 ` Kamil Rytarowski
2017-05-20 23:35 ` Philippe Mathieu-Daudé
2017-05-23 14:43 ` Michael Tokarev
3 siblings, 1 reply; 6+ messages in thread
From: Alex Bennée @ 2017-05-08 11:33 UTC (permalink / raw)
To: Kamil Rytarowski; +Cc: qemu-devel, peter.maydell
Kamil Rytarowski <n54@gmx.com> writes:
> NetBSD ships with traditional BSD curses with compatibility with ncurses.
> qemu works nicely with the basesystem version of curses(3) from NetBSD.
>
> The only mismatch between curses(3) and ncurses is the lack of
> curses_version() in the NetBSD version. This function is used solely in
> the configure script, therefore eliminate it from the curses(3) detection.
>
> With this change applied, configure detects correctly curses frontend.
>
> Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> configure | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index c35acf1192..17dc7224f7 100755
> --- a/configure
> +++ b/configure
> @@ -3034,14 +3034,13 @@ if test "$curses" != "no" ; then
> #include <curses.h>
> #include <wchar.h>
> int main(void) {
> - const char *s = curses_version();
> wchar_t wch = L'w';
> setlocale(LC_ALL, "");
> resize_term(0, 0);
> addwstr(L"wide chars\n");
> addnwstr(&wch, 1);
> add_wch(WACS_DEGREE);
> - return s != 0;
> + return 0;
> }
> EOF
> IFS=:
--
Alex Bennée
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3)
2017-05-08 11:33 ` Alex Bennée
@ 2017-05-20 23:17 ` Kamil Rytarowski
0 siblings, 0 replies; 6+ messages in thread
From: Kamil Rytarowski @ 2017-05-20 23:17 UTC (permalink / raw)
To: Alex Bennée; +Cc: peter.maydell, qemu-devel, QEMU Trivial
[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]
Ping? Could someone please put it on the pull-request?
Adding qemu-trivial@.
On 08.05.2017 13:33, Alex Bennée wrote:
>
> Kamil Rytarowski <n54@gmx.com> writes:
>
>> NetBSD ships with traditional BSD curses with compatibility with ncurses.
>> qemu works nicely with the basesystem version of curses(3) from NetBSD.
>>
>> The only mismatch between curses(3) and ncurses is the lack of
>> curses_version() in the NetBSD version. This function is used solely in
>> the configure script, therefore eliminate it from the curses(3) detection.
>>
>> With this change applied, configure detects correctly curses frontend.
>>
>> Signed-off-by: Kamil Rytarowski <n54@gmx.com>
>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
>
>> ---
>> configure | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/configure b/configure
>> index c35acf1192..17dc7224f7 100755
>> --- a/configure
>> +++ b/configure
>> @@ -3034,14 +3034,13 @@ if test "$curses" != "no" ; then
>> #include <curses.h>
>> #include <wchar.h>
>> int main(void) {
>> - const char *s = curses_version();
>> wchar_t wch = L'w';
>> setlocale(LC_ALL, "");
>> resize_term(0, 0);
>> addwstr(L"wide chars\n");
>> addnwstr(&wch, 1);
>> add_wch(WACS_DEGREE);
>> - return s != 0;
>> + return 0;
>> }
>> EOF
>> IFS=:
>
>
> --
> Alex Bennée
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3)
2017-04-26 10:50 [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3) Kamil Rytarowski
2017-05-05 11:51 ` Kamil Rytarowski
2017-05-08 11:33 ` Alex Bennée
@ 2017-05-20 23:35 ` Philippe Mathieu-Daudé
2017-05-23 14:43 ` Michael Tokarev
3 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-05-20 23:35 UTC (permalink / raw)
To: Kamil Rytarowski, qemu-devel, QEMU Trivial
Cc: peter.maydell, Alex Bennée
Hi Kamil,
On 04/26/2017 07:50 AM, Kamil Rytarowski wrote:
> NetBSD ships with traditional BSD curses with compatibility with ncurses.
> qemu works nicely with the basesystem version of curses(3) from NetBSD.
>
> The only mismatch between curses(3) and ncurses is the lack of
> curses_version() in the NetBSD version. This function is used solely in
> the configure script, therefore eliminate it from the curses(3) detection.
>
> With this change applied, configure detects correctly curses frontend.
>
> Signed-off-by: Kamil Rytarowski <n54@gmx.com>
> ---
> configure | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index c35acf1192..17dc7224f7 100755
> --- a/configure
> +++ b/configure
> @@ -3034,14 +3034,13 @@ if test "$curses" != "no" ; then
> #include <curses.h>
This checks if the <curses.h> include in present,
> #include <wchar.h>
> int main(void) {
> - const char *s = curses_version();
This however checks if the library is present, trying to link it.
> wchar_t wch = L'w';
> setlocale(LC_ALL, "");
> resize_term(0, 0);
> addwstr(L"wide chars\n");
> addnwstr(&wch, 1);
> add_wch(WACS_DEGREE);
Those 3 functions also belong to the libcurse, so the link is still
checked, and this patch looks good to me.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> - return s != 0;
> + return 0;
> }
> EOF
> IFS=:
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3)
2017-04-26 10:50 [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3) Kamil Rytarowski
` (2 preceding siblings ...)
2017-05-20 23:35 ` Philippe Mathieu-Daudé
@ 2017-05-23 14:43 ` Michael Tokarev
3 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2017-05-23 14:43 UTC (permalink / raw)
To: Kamil Rytarowski, qemu-devel; +Cc: QEMU Trivial
26.04.2017 13:50, Kamil Rytarowski wrote:
> NetBSD ships with traditional BSD curses with compatibility with ncurses.
> qemu works nicely with the basesystem version of curses(3) from NetBSD.
>
> The only mismatch between curses(3) and ncurses is the lack of
> curses_version() in the NetBSD version. This function is used solely in
> the configure script, therefore eliminate it from the curses(3) detection.
>
> With this change applied, configure detects correctly curses frontend.
Applied to -trivial, thanks!
/mjt
^ permalink raw reply [flat|nested] 6+ messages in thread