All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure: improve error for ucontext coroutine backend
@ 2022-08-19 17:02 Paolo Bonzini
  2022-08-19 20:03 ` Richard Henderson
  2022-08-25 14:12 ` Philippe Mathieu-Daudé via
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2022-08-19 17:02 UTC (permalink / raw)
  To: qemu-devel

Instead of using feature_not_found(), which is not a good match because
there is no "remedy" to fix the lack of makecontext(), just print a
custom error.

This happens to remove the last use of feature_not_found(), so remove
the definition and the documentation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure                   | 11 +----------
 docs/devel/build-system.rst |  5 -----
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/configure b/configure
index 72ab03f11a..575dde1c1f 100755
--- a/configure
+++ b/configure
@@ -1468,15 +1468,6 @@ if test "$tcg" = "enabled"; then
     git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
 fi
 
-feature_not_found() {
-  feature=$1
-  remedy=$2
-
-  error_exit "User requested feature $feature" \
-      "configure was not able to find it." \
-      "$remedy"
-}
-
 # ---
 # big/little endian test
 cat > $TMPC << EOF
@@ -1639,7 +1630,7 @@ else
     ;;
   ucontext)
     if test "$ucontext_works" != "yes"; then
-      feature_not_found "ucontext"
+      error_exit "'ucontext' backend requested but makecontext not available"
     fi
     ;;
   sigaltstack)
diff --git a/docs/devel/build-system.rst b/docs/devel/build-system.rst
index 431caba7aa..1894721743 100644
--- a/docs/devel/build-system.rst
+++ b/docs/devel/build-system.rst
@@ -99,11 +99,6 @@ developers in checking for system features:
    Write a minimal C program main() function to the temporary file
    indicated by $TMPC
 
-``feature_not_found $NAME $REMEDY``
-   Print a message to stderr that the feature $NAME was not available
-   on the system, suggesting the user try $REMEDY to address the
-   problem.
-
 ``error_exit $MESSAGE $MORE...``
    Print $MESSAGE to stderr, followed by $MORE... and then exit from the
    configure script with non-zero status
-- 
2.37.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] configure: improve error for ucontext coroutine backend
  2022-08-19 17:02 [PATCH] configure: improve error for ucontext coroutine backend Paolo Bonzini
@ 2022-08-19 20:03 ` Richard Henderson
  2022-08-25 14:12 ` Philippe Mathieu-Daudé via
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2022-08-19 20:03 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

On 8/19/22 10:02, Paolo Bonzini wrote:
> Instead of using feature_not_found(), which is not a good match because
> there is no "remedy" to fix the lack of makecontext(), just print a
> custom error.
> 
> This happens to remove the last use of feature_not_found(), so remove
> the definition and the documentation.
> 
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> ---
>   configure                   | 11 +----------
>   docs/devel/build-system.rst |  5 -----
>   2 files changed, 1 insertion(+), 15 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] configure: improve error for ucontext coroutine backend
  2022-08-19 17:02 [PATCH] configure: improve error for ucontext coroutine backend Paolo Bonzini
  2022-08-19 20:03 ` Richard Henderson
@ 2022-08-25 14:12 ` Philippe Mathieu-Daudé via
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé via @ 2022-08-25 14:12 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

On 19/8/22 19:02, Paolo Bonzini wrote:
> Instead of using feature_not_found(), which is not a good match because
> there is no "remedy" to fix the lack of makecontext(), just print a
> custom error.
> 
> This happens to remove the last use of feature_not_found(), so remove
> the definition and the documentation.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   configure                   | 11 +----------
>   docs/devel/build-system.rst |  5 -----
>   2 files changed, 1 insertion(+), 15 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-25 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 17:02 [PATCH] configure: improve error for ucontext coroutine backend Paolo Bonzini
2022-08-19 20:03 ` Richard Henderson
2022-08-25 14:12 ` Philippe Mathieu-Daudé via

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.