All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <andrew.jones@linux.dev>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, thuth@redhat.com
Subject: Re: [PATCH kvm-unit-tests 5/6] drop --enable/--disable-default-environ
Date: Thu, 26 Nov 2026 17:02:29 +0100	[thread overview]
Message-ID: <awhWnu2NEg_WrtRJ@orel> (raw)
In-Reply-To: <20261126103002.2145135-6-pbonzini@redhat.com>

On Thu, Nov 26, 2026 at 11:30:01AM +0100, Paolo Bonzini wrote:
> I would be very surprised if anyone is using this option, which was
> probably meant to be used together with the errata system.  Keep
> the variable as it is used internally to prevent generation of an
> initrd, but drop it from ./configure.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  configure               | 11 -----------
>  scripts/arch-run.bash   |  2 ++
>  scripts/mkstandalone.sh |  1 -
>  3 files changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/configure b/configure
> index 7c9ebd49..9b325b54 100755
> --- a/configure
> +++ b/configure
> @@ -53,7 +53,6 @@ host=$arch
>  cross_prefix=
>  endian=""
>  pretty_print_stacks=yes
> -environ_default=yes
>  u32_long=
>  wa_divide=
>  target=
> @@ -97,9 +96,6 @@ usage() {
>  	    --endian=ENDIAN        endianness to compile for (little or big, ppc64 only)
>  	    --[enable|disable]-pretty-print-stacks
>  	                           enable or disable pretty stack printing (enabled by default)
> -	    --[enable|disable]-default-environ
> -	                           enable or disable the generation of a default environ when
> -	                           no environ is provided by the user (enabled by default)
>  	    --host-key-document=HOST_KEY_DOCUMENT
>  	                           Specify the machine-specific host-key document for creating
>  	                           a PVM image with 'genprotimg' (s390x only)
> @@ -189,12 +185,6 @@ while [[ $optno -le $argc ]]; do
>  	--disable-pretty-print-stacks)
>  	    pretty_print_stacks=no
>  	    ;;
> -	--enable-default-environ)
> -	    environ_default=yes
> -	    ;;
> -	--disable-default-environ)
> -	    environ_default=no
> -	    ;;

We're probably safe to remove them, but I can't recall if we've ever
removed configure parameters before. I'd probably conservatively keep
them as no-ops and document them as deprecated, since I think it might
be possible that people discovered --disable-default-environ, knew they
didn't want an environ, and then added that parameter to their
build/install/run scripts embedded deep in their test system.

Thanks,
drew

  reply	other threads:[~2026-11-26 16:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 10:29 [PATCH kvm-unit-tests 0/6] Test runner TLC Paolo Bonzini
2026-11-26 10:29 ` [PATCH kvm-unit-tests 1/6] arm: remove usage of the errata mechanism Paolo Bonzini
2026-11-26 10:29 ` [PATCH kvm-unit-tests 2/6] remove " Paolo Bonzini
2026-11-26 10:29 ` [PATCH kvm-unit-tests 3/6] omit "#" from printed command line if INITRD is empty Paolo Bonzini
2026-11-26 10:30 ` [PATCH kvm-unit-tests 4/6] do not pass information about kernel, QEMU or target via environment Paolo Bonzini
2026-11-26 10:30 ` [PATCH kvm-unit-tests 5/6] drop --enable/--disable-default-environ Paolo Bonzini
2026-11-26 16:02   ` Andrew Jones [this message]
2026-11-26 10:30 ` [PATCH kvm-unit-tests 6/6] switch unittests.cfg parsing to be ConfigParser-compatible Paolo Bonzini
2026-11-26 16:03 ` [PATCH kvm-unit-tests 0/6] Test runner TLC Andrew Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awhWnu2NEg_WrtRJ@orel \
    --to=andrew.jones@linux.dev \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.