|
From: | Aleksandar Markovic |
Subject: | Re: [PATCH v4 for-5.0] configure: warn if not using a separate build directory |
Date: | Sun, 5 Apr 2020 18:41:35 +0200 |
16:39 Ned, 05.04.2020. Peter Maydell <address@hidden> је написао/ла:
>
> On Fri, 3 Apr 2020 at 14:53, Daniel P. Berrangé <address@hidden> wrote:
> >
> > Running configure directly from the source directory is a build
> > configuration that will go away in future. It is also not currently
> > covered by any automated testing. Display a deprecation warning if
> > the user attempts to use an in-srcdir build setup, so that they are
> > aware that they're building QEMU in an undesirable manner.
> >
> > Reviewed-by: Eric Blake <address@hidden>
> > Reviewed-by: Markus Armbruster <address@hidden>
> > Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> > Tested-by: Philippe Mathieu-Daudé <address@hidden>
> > Signed-off-by: Daniel P. Berrangé <address@hidden>
> > ---
>
> > +if test "$in_srcdir" = "yes"; then
> > + echo
> > + echo "WARNING: SUPPORT FOR BUILDING IN THE SOURCE DIR IS DEPRECATED"
> > + echo
> > + echo "Support for running the 'configure' script directly from the"
> > + echo "source directory is deprecated. In-tree builds are not covered"
> > + echo "by automated testing and thus may not correctly build QEMU."
> > + echo "Users are recommended to use a separate build directory:"
> > + echo
> > + echo " $ mkdir build"
> > + echo " $ cd build"
> > + echo " $ ../configure"
> > + echo " $ make"
> > + echo
> > +fi
>
> So here's my stab at some text here; I'm aiming at nudging users
> towards out-of-tree builds if they were simply not thinking about
> it, but not actively marking them as 'deprecated', since it sounded
> to me like we were planning to keep at least the basic
> 'configure+make+make install' sequence of commands working.
>
> echo "NOTE: we recommend against building in the source directory"
> echo
> echo "You've run the 'configure' script directly from the source"
> echo "directory. This will work, but we recommend using a separate"
> echo "build directory, especially if you plan to work with the QEMU"
> echo "sources rather than just building it once. You can switch to"
> echo "a separate build directory like this:"
> [instructions go here]
>
Peter's version is far more superior to Daniel's.
I'd better not discuss the reasons, not wanting to waste my time and other's time.
For Peter's version:
Reviewed-by: Aleksandar Markovic <address@hidden>
> thanks
> -- PMM
>
[Prev in Thread] | Current Thread | [Next in Thread] |