qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] configure: fix backwards-compatibility for meson sphinx_build option
@ 2023-05-19 18:08 Paolo Bonzini
  2023-05-19 18:13 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2023-05-19 18:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell

Reintroduce the cmd_line.txt mangling to remove the sphinx_build
option when rerunning meson.  The mechanism was removed in
commit 75cc28648574 ("configure: remove backwards-compatibility code", 2023-01-11)
because it was obsolete at the time, but the Meson deprecation
mechanism doesn't quite work when options are finally removed.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure b/configure
index 43620b80c8df..b61475a4cb5d 100755
--- a/configure
+++ b/configure
@@ -1984,6 +1984,14 @@ if test "$skip_meson" = no; then
   if test "$?" -ne 0 ; then
       error_exit "meson setup failed"
   fi
+else
+  if test -f meson-private/cmd_line.txt; then
+    # Adjust old command line options that were removed
+    # sed -i is not portable
+    perl -i -ne '
+      /^sphinx_build/ && next;
+      print;' meson-private/cmd_line.txt
+  fi
 fi
 
 # Save the configure command line for later reuse.
-- 
2.40.1



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

* Re: [PATCH] configure: fix backwards-compatibility for meson sphinx_build option
  2023-05-19 18:08 [PATCH] configure: fix backwards-compatibility for meson sphinx_build option Paolo Bonzini
@ 2023-05-19 18:13 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2023-05-19 18:13 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

On Fri, 19 May 2023 at 19:08, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> Reintroduce the cmd_line.txt mangling to remove the sphinx_build
> option when rerunning meson.  The mechanism was removed in
> commit 75cc28648574 ("configure: remove backwards-compatibility code", 2023-01-11)
> because it was obsolete at the time, but the Meson deprecation
> mechanism doesn't quite work when options are finally removed.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

This plus the Makefile patch from the other email thread
are sufficient for the incremental make to work again.

Tested-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM


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

end of thread, other threads:[~2023-05-19 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-19 18:08 [PATCH] configure: fix backwards-compatibility for meson sphinx_build option Paolo Bonzini
2023-05-19 18:13 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).