public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: "Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Stefano Garzarella" <sgarzare@redhat.com>,
	"Michael Roth" <michael.roth@amd.com>,
	"Konstantin Kostiuk" <kkostiuk@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Eric Blake" <eblake@redhat.com>
Subject: Re: Cleaning up contrib/ and tools/
Date: Wed, 25 Mar 2026 14:05:56 +0400	[thread overview]
Message-ID: <CAJ+F1CLxwLzPR3aFNHDtS4PKKTq5SAoqjtNuyfxRgyWj99vTag@mail.gmail.com> (raw)
In-Reply-To: <acOpKJjdPUmtWeZd@redhat.com>

Hi

On Wed, Mar 25, 2026 at 1:22 PM Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> On Tue, Mar 24, 2026 at 11:44:37AM -0700, Pierrick Bouvier wrote:
> > On 3/24/26 11:33 AM, Peter Maydell wrote:
> > > On Tue, 24 Mar 2026 at 18:28, Pierrick Bouvier
> > > > Moving those sources will break build folder hierarchy also, which is an
> > > > issue for all existing binaries built from contrib anyway.
> > > > I'm not sure there is anything sane to do to fix that except accepting
> > > > the breaking change.
> > >
> > > What are we breaking here ? Nothing outside QEMU ought to be
> > > depending on the layout of our source tree. When we move things
> > > around we'll update the meson.build and the documentation.
> > > I don't think we have 'contrib' in our installed-locations
> > > layout (tools get installed into the bin/ dir, for instance),
> > > but I might have missed something.
> > >
> >
> > I was thinking more about users that might have custom scripts using various
> > contrib plugins, or using vhost-* binaries or ivshmem-server or elf2dmp.
> > They will be relocated because meson automatically uses layout of sources in
> > build folder.
> > It's not a big deal anyway.
>
> If we're concerned about external users relying on stuff in contrib/,
> then that is exactly the reason why contrib/ should go, and everything
> be considered an officially supported deliverable of QEMU with an
> appropriate home in the source tree, and covered by 'make install'.

A solution worth considering is to split into various meson
subprojects. I did it for libslirp, libvhost-user, and started qga a
few years ago (https://patchew.org/QEMU/20220810124857.1360211-1-marcandre.lureau@redhat.com/)

This requires a bit of reorganization to have some common (internal)
libraries, but imho, we would make the whole project cleaner that way.

-- 
Marc-André Lureau


  reply	other threads:[~2026-03-25 10:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 17:09 Cleaning up contrib/ and tools/ Peter Maydell
2026-03-24 17:31 ` Daniel P. Berrangé
2026-03-24 18:28 ` Pierrick Bouvier
2026-03-24 18:33   ` Peter Maydell
2026-03-24 18:44     ` Pierrick Bouvier
2026-03-25  9:21       ` Daniel P. Berrangé
2026-03-25 10:05         ` Marc-André Lureau [this message]
2026-03-25 11:11       ` Alex Bennée
2026-03-25 15:17         ` Pierrick Bouvier
2026-03-25 16:43           ` Peter Maydell
2026-03-25  7:42 ` Kostiantyn Kostiuk
2026-03-25 11:43 ` Markus Armbruster
2026-03-25 14:32   ` Alex Bennée
2026-03-25 16:49   ` Peter Maydell
2026-03-25 16:54     ` Daniel P. Berrangé
2026-03-25 19:41     ` Peter Maydell

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=CAJ+F1CLxwLzPR3aFNHDtS4PKKTq5SAoqjtNuyfxRgyWj99vTag@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=kkostiuk@redhat.com \
    --cc=michael.roth@amd.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sgarzare@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox