From patchwork Wed Oct 23 21:28:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 837827 Delivered-To: patch@linaro.org Received: by 2002:adf:a399:0:b0:37d:45d0:187 with SMTP id l25csp44115wrb; Wed, 23 Oct 2024 14:29:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW/jmv4nhPQNTVFz9FaxMLOkTgNMtqx8hhusi50v3DYIYdfdaWXuXY6K+/+Ig52tjt6Ias56w==@linaro.org X-Google-Smtp-Source: AGHT+IHehW0/gaqPaRmcTxOgy8lxPhDYyRJK0PXh2CagixysyUfmgPNZmzYOvuO7rxQ41QnAlycv X-Received: by 2002:a05:6102:f0a:b0:49c:f1c:bce3 with SMTP id ada2fe7eead31-4a751bff9edmr5179858137.15.1729718962650; Wed, 23 Oct 2024 14:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729718962; cv=none; d=google.com; s=arc-20240605; b=PjXthkGSWOE1wd7PHR2wYFMNwaLkG8AsjOh0c50rwBs3xTK6k317YHOzLYdAMDJzdc E62KYAj5WRoxCtmW/sOFjltF9oDki1Hxt4WkmTJGLdZ7F4aPUeZPvCJ8ezmfv0LAnT25 Wnw4Fu3G1gSFDEQM/8GVRvel3r+XPrqUlvMhVVEkg4fL5sKi5Z7sehjGKuUXCvVhPE4o nBsJzzSe+TYfW+tEX/RtbBspNQSR0Tln8wgRRMP/5UNA5eQ2zt6C1uy8fm6LYQCFbH/u 5N4UlhHiXQ2WESOGd5j2aPNTz/hgbDjtXajsKlPGQoLLpbmnmxWZFlDIcMvOe9s+h6g2 0tDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=yh1w5tbQ3FNJQ+qQrBU+8HWVpwNff9U55VwWmmd3WgA=; fh=bcRMKJcfkonkiwGTYHppKOfk02CuaOwEhVTi+cv7RfA=; b=S5jEPAN3H5G7ChUoMVP/62zNqW2ejPQdQowD9HeFUXEqDP3fFuJ364y9U0Q7eSm51A r4cQVIjuzeu8C2EYYe1lfhvqBPSVWY9sNfrjfdXw3R+YSKgZJ+qxWO4DpujSbCOqYMcD DMHYzgk+beF/T5X+CTp5YvRkoM07wfO6qEXOpHzTL57EpOJzOHLXFtbry7Tno6YRNQ27 SBOdnRsK0RZYZwhjlCWaySpVxSSSmyeihfNtUNKuP+XeJCqaDZ2VufYjHnQCCmRFIX59 3GPXXOKDqWrMuY2UQJkEvkzhcFSuMazths4ogHrR6c1aYaL25ODbSKQmPn5vhGSqggBs 5xQw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fg7QZh/j"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-460d3b82299si108154261cf.196.2024.10.23.14.29.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2024 14:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fg7QZh/j"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3iu3-0000nd-E3; Wed, 23 Oct 2024 17:28:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3itz-0000me-GA for qemu-devel@nongnu.org; Wed, 23 Oct 2024 17:28:23 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3itx-0007ci-Nr for qemu-devel@nongnu.org; Wed, 23 Oct 2024 17:28:23 -0400 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7163489149eso159761a12.1 for ; Wed, 23 Oct 2024 14:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729718900; x=1730323700; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yh1w5tbQ3FNJQ+qQrBU+8HWVpwNff9U55VwWmmd3WgA=; b=fg7QZh/jxKfA8VF5e9/9atR00Zv+ntiViGif8zTPYtuXiAGEahb0FgDS9xfOK5V8vK ghAqx9kVLNuATVvqt+2HBUYSFyHYNEjqfKJOapXHoWlcZWigfBuyy5fMlIdBOkBmbKdU 1/tvhxh4sMn0gMWKdUXS3x3oylGbeJn/qX8YZKe3rLhKk0a34qM2gpcJWytT9WXIabf3 NnWd4G1j0lZ8U2dQcubMajqDJsKkRT/vd905OrkjZ38gV1auniwxfhuXJ9j1eXYnKi1V I34uLPcFMGnFJngCJCy8wNU4AHTXxo1EcbbEWSEKBklPlx/xts2eiYAJqw4IjZ8HzeOt 23iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729718900; x=1730323700; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yh1w5tbQ3FNJQ+qQrBU+8HWVpwNff9U55VwWmmd3WgA=; b=aiB+F8X9DX7Laq3oeNSkxT8UGxzzo+X5mBknVCLKoIBQ6mLSv9gAqnd3+z725PjVLY NOsbZ3EGpvlKdsqv3zn+5jv05rZekTdUV2Yh0YWP63HO2MWGow1Mis77YNKccOGTpRW3 V4ngbewh+DuT0dCJjh9cZslE2zxYt0MGYCH+I6Zl0lo0lHndHPYvwHmsIMfe/OQ4dkQR /24Xh5BHwRSTE+5AldcrvjzRZRcj03RaHCDdINev6VW8rYVoLUaPtQbv3fNVNbSOwozO 7GWb9UgG35PQotvHVdg5OOsRVm3h+gSrKkf4+B3YHYv1ombwFf0j0fAUmJG74cjKUKMm XSWQ== X-Gm-Message-State: AOJu0Yx+9v4Jy+v93qfBPf8MHpS4NEEHntckYVCtXfCmPbroLoE9i6TX O69FsYfCu+Hw0pLQkrMqgucRKRxiPFRviUFS/DVd+MW1/S8zFH7MgN4dDZKArApk7TIVyiZ7Ydx bz+FwPQ== X-Received: by 2002:a05:6a20:9d8f:b0:1d9:762a:ca5f with SMTP id adf61e73a8af0-1d978ad719emr4583312637.8.1729718899952; Wed, 23 Oct 2024 14:28:19 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7eaeaafab5esm7228137a12.17.2024.10.23.14.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 14:28:19 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Pierrick Bouvier , Alexandre Iooss , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth , Mahmoud Mandour Subject: [PATCH v3 0/3] build contrib/plugins using meson Date: Wed, 23 Oct 2024 14:28:09 -0700 Message-Id: <20241023212812.1376972-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Contrib plugins have been built out of tree so far, thanks to a Makefile. However, it is quite inconvenient for maintenance, as we may break them, especially for specific architectures. First patches are fixing warnings for existing plugins, then we add meson support, and finally, we remove Makefile for contrib/plugins. Based on the proposal of Anton Kochkov on associated gitlab issue. Solves: https://gitlab.com/qemu-project/qemu/-/issues/1710 Plugins are now deactivated by default on 32-bits hosts (since cf2a78), so we can enable with meson without worrying of warnings when building plugins for 32 bits. Removed patches for individual plugins. v2: - removed warnings fix for 32 bits as they were incorrect. They are not needed anymore as plugins are deprecated for 32 bits hosts. v3: - do not build lockstep on windows (it uses sys/socket.h) - build new plugins recently added - fix warning in cflow plugin - tested it builds correctly on windows/macos/linux Pierrick Bouvier (3): contrib/plugins/cflow: fix warning meson: build contrib/plugins with meson contrib/plugins: remove Makefile for contrib/plugins configure | 18 -------- Makefile | 10 ----- meson.build | 4 ++ contrib/plugins/cflow.c | 6 +-- contrib/plugins/Makefile | 87 ------------------------------------- contrib/plugins/meson.build | 28 ++++++++++++ 6 files changed, 35 insertions(+), 118 deletions(-) delete mode 100644 contrib/plugins/Makefile create mode 100644 contrib/plugins/meson.build