From patchwork Wed Sep 9 09:45:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 11765199 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B0EA59D for ; Wed, 9 Sep 2020 09:49:29 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E011721D79 for ; Wed, 9 Sep 2020 09:49:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hncZkODm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E011721D79 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:40104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFwjH-0001wW-T9 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 09 Sep 2020 05:49:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFwgX-00062T-Nn; Wed, 09 Sep 2020 05:46:37 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:54133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFwgW-0007f6-0b; Wed, 09 Sep 2020 05:46:37 -0400 Received: by mail-pj1-x102a.google.com with SMTP id t7so1062651pjd.3; Wed, 09 Sep 2020 02:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AFCLvdTLM0MkPTvvP8K6WJoQtH1sTS9qVLxByUIIgtU=; b=hncZkODmbg5KhaMnDb9kD6S5GRdJS4rVaCp9N7h9qkaEWOxLBqKIOEg9PDaTDX7VFH +9viuZjdiWhLXDG2ljxTFmUcd2+Ny+/PUTMLj+/yz16AU/DNtDv6hHNXRhfAKsQgfdVa H1nQBw3vM64TzFi6DVeGI6c8NVAwVfqztKPJngynuXWkkp+hfGwgbXrA7stWiNpZF6S5 oPjC9AvVF7VKCh5zQJQe5hFzhsLqtm86UI6nsugzDEFOczNKPdA2YkUVJr6/lbqB7n8V aO7udc8Xq6fsQx5s91475fZJR39mVwJWmMLhIBE1F474k/7CmODKPP0Q+74UgM3aK7ZO OUlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AFCLvdTLM0MkPTvvP8K6WJoQtH1sTS9qVLxByUIIgtU=; b=Ukn1lcea+eo7tLaGAyeKOhy6x0PT3ciKDZGog/AVMEA7GRviF18XLyBfK0klLJLrjs M3tZ7CKf5anevTXhag6fC0O7c7c/p1EFLs22xrBaNbv8fVc8q/SG0tgvXJeZRPNbvB44 qdTrizUlhG9CIHDHXtPRndNDpY9NHhSxzQXeR/rfnjiyw/bw7fAehq3Q0vVSb8woDR7I F3gtjsOUiDpD+EuM4lqdYJeNDHB4yz0CS1BNPsJ0SZVjIinkjIVo7riKonDuqL7BiOlC Cnr01042GaU56+umNJLjo8gZGC28wI3yqjwTzwt+SQikiudEJ3Qc6MhOTaGKh0dH60lN Ul/Q== X-Gm-Message-State: AOAM531QKU8MDWab590Y3yygbG2l0bfpVPmYkBf1HcMj6v283jBSyEh6 kUqjc6Pcx7i8tUapayWF+TxMO6qkijqFCGG+ X-Google-Smtp-Source: ABdhPJw4BwhOLJSUtzUhthBOgyGSl+bT8xrv+P7dMtAidPjv21cwiZRuihYiYjbWoTbYmXFCV4M/Zw== X-Received: by 2002:a17:90a:d315:: with SMTP id p21mr127168pju.88.1599644793748; Wed, 09 Sep 2020 02:46:33 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id 64sm1708312pgi.90.2020.09.09.02.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 02:46:32 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v2 00/21] W32, W64 msys2/mingw patches Date: Wed, 9 Sep 2020 17:45:56 +0800 Message-Id: <20200909094617.1582-1-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=luoyonggang@gmail.com; helo=mail-pj1-x102a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Ed Maste , Michael Roth , qemu-block@nongnu.org, Stefan Weil , Xie Changlong , Peter Lieven , Markus Armbruster , Max Reitz , Yonggang Luo , Gerd Hoffmann , Wen Congyang , Richard Henderson , Li-Wen Hsu Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" It first introduce msys2 CI on cirrus by fixes nfs, capstone, curses and disable partial test-char tests. And then fixes all unit tests failure on msys2/mingw Yonggang Luo (21): block: Fixes nfs compiling error on msys2/mingw ci: fixes msys2 build by upgrading capstone to 4.0.2 configure: Fixes ncursesw detection under msys2/mingw and enable curses curses: Fixes curses compiling errors. tests: disable /char/stdio/* tests in test-char.c on win32 ci: Enable msys2 ci in cirrus tests: Trying fixes test-replication.c on msys2/mingw. tests: test-replication disable /replication/secondary/* on msys2/mingw. osdep: These function are only available on Non-Win32 system. meson: Use -b to ignore CR vs. CR-LF issues on Windows meson: disable crypto tests are empty under win32 meson: remove empty else and duplicated gio deps vmstate: Fixes test-vmstate.c on msys2/mingw cirrus: Building freebsd in a single short tests: Convert g_free to g_autofree macro in test-logging.c rcu: add uninit destructor for rcu tests: Fixes test-io-channel-socket.c tests under msys2/mingw tests: fixes aio-win32 about aio_remove_fd_handler, get it consistence with aio-posix.c tests: Fixes test-io-channel-file by mask only owner file state mask bits tests: fix test-util-sockets.c tests: Fixes test-qdev-global-props.c .cirrus.yml | 59 ++++++++++++++++------------- block/nfs.c | 26 ++++++++----- capstone | 2 +- configure | 11 ++---- include/qemu/osdep.h | 2 +- include/qemu/rcu.h | 5 +++ meson.build | 6 --- scripts/ci/windows/msys2-build.sh | 28 ++++++++++++++ scripts/ci/windows/msys2-install.sh | 33 ++++++++++++++++ tests/meson.build | 3 +- tests/qapi-schema/meson.build | 2 +- tests/test-char.c | 8 ++-- tests/test-io-channel-file.c | 4 +- tests/test-io-channel-socket.c | 2 + tests/test-logging.c | 5 ++- tests/test-qdev-global-props.c | 6 +-- tests/test-replication.c | 22 +++++++++-- tests/test-util-sockets.c | 6 ++- tests/test-vmstate.c | 2 +- ui/curses.c | 14 +++---- util/aio-win32.c | 11 +++++- util/rcu.c | 37 +++++++++++++++++- 22 files changed, 215 insertions(+), 79 deletions(-) create mode 100644 scripts/ci/windows/msys2-build.sh create mode 100644 scripts/ci/windows/msys2-install.sh