[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 for-5.0] configure: warn if not using a separate build dir
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v4 for-5.0] configure: warn if not using a separate build directory |
Date: |
Mon, 6 Apr 2020 10:16:18 +0100 |
User-agent: |
Mutt/1.13.3 (2020-01-12) |
On Sun, Apr 05, 2020 at 03:38:55PM +0100, Peter Maydell wrote:
> 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:"
I'm fine with that text too.
I'll submit another version of the patch with that incorporated
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [PATCH v4 for-5.0] configure: warn if not using a separate build directory, Peter Maydell, 2020/04/05