From nobody Thu Nov 13 04:43:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576861009; cv=none; d=zohomail.com; s=zohoarc; b=SkVqLy+XHASMQU+/x+5DSi3BDaA8h/b/n4fBfLiIi7qtzEDydwx2bk18Wxn/YMkDF3it1LzituWgo1QDDyssQQ0a+798iyS2065ngDAo5EHtRDZq6I9ZfOGLrLcP8g2VcT+1rB8Ab/4b8ot3jjzUstfauo4R+uGNxYQKtYSBRso= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576861009; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YrYAVZ3YLKTYmqALHwjhC1cru2s0XHlIS9MAWl9OWag=; b=LOXs72RkwvEKZAK9T2cGR1dX0fz4eZnzZ+D0B7asbUXqqAu+HAeI2azqYFwOh8LDMI/dckBdn+sf0GCrVXgFWKr0pF8AuPVEJ6LgCPqgSjMdj6ltfK1bevJpd6G0rUurKTkDkminJiSFXg39hZzTaOZs7s4cayzdAK5D3YlksEM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576861009821565.0943085898622; Fri, 20 Dec 2019 08:56:49 -0800 (PST) Received: from localhost ([::1]:59070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiLa4-0003WY-Dw for importer@patchew.org; Fri, 20 Dec 2019 11:56:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60693) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiLVM-0005i6-Om for qemu-devel@nongnu.org; Fri, 20 Dec 2019 11:51:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiLVL-0005Sx-Og for qemu-devel@nongnu.org; Fri, 20 Dec 2019 11:51:56 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:49783 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iiLVL-0005S4-L0 for qemu-devel@nongnu.org; Fri, 20 Dec 2019 11:51:55 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-244-PY0RtlOYNSizWEQhvsOriA-1; Fri, 20 Dec 2019 11:51:53 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1F936107ACC4; Fri, 20 Dec 2019 16:51:52 +0000 (UTC) Received: from localhost (ovpn-116-10.gru2.redhat.com [10.97.116.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 364FF6056A; Fri, 20 Dec 2019 16:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576860714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YrYAVZ3YLKTYmqALHwjhC1cru2s0XHlIS9MAWl9OWag=; b=DNetnrBlAelDolBEPCoSs2juZtdioR2IjSkL/0PLV/ezd5Z8ecbu7J25Ga7+E+ytyolNk1 g2iepDEn1FdIugKSUZY2p4IdbGMP0ERoT6visOeV2p3BM3GBZju8D8TdX6otzqFpkkes0v /eGtYobwKhepeWkHOdZkmOsUZ0rT3CU= From: Eduardo Habkost To: qemu-devel@nongnu.org, Cleber Rosa , Peter Maydell Subject: [PULL 1/2] travis: Replace Python 3.4 build with 3.5 Date: Fri, 20 Dec 2019 13:51:40 -0300 Message-Id: <20191220165141.2207058-2-ehabkost@redhat.com> In-Reply-To: <20191220165141.2207058-1-ehabkost@redhat.com> References: <20191220165141.2207058-1-ehabkost@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: PY0RtlOYNSizWEQhvsOriA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.120 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: Fam Zheng , Eduardo Habkost , Juan Quintela , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Markus Armbruster , "Dr. David Alan Gilbert" , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" We'll start requiring Python 3.5 to build QEMU. Signed-off-by: Eduardo Habkost --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 376b7d6dfa..638fba4799 100644 --- a/.travis.yml +++ b/.travis.yml @@ -247,7 +247,7 @@ matrix: - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-default" language: python python: - - "3.4" + - "3.5" =20 =20 - env: --=20 2.23.0 From nobody Thu Nov 13 04:43:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576861084; cv=none; d=zohomail.com; s=zohoarc; b=VJRBicUd1A1ibMnyLuvZ+Gyz6AwN2nE+O0GmnUZwIQXG5+/ncRk+QJJYs2NOcRgyuRrzHIUrN4TRkL/SK11TZXNa/y8jxF7DHo0omhj/zhVAP1ckvnsanudECvT4fRkc7UQVZn5Rqzed7rHGFmuPnuKnpo1lB+xC1yoOLsX+IMY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576861084; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ZO3A9x6Z5IrKB672Yanf42gW4KGAYB1T2LPZ+UvO970=; b=SJCeq/MueLt64zlJkmjUAu6hyQqlYvAxdhrpE2GcvTZp/Lf+qb1XKZ0A5z93Prtctl4s8dsK3LgjgptgbOLnqaTgFuoyZFS/PLLOYT2+EDihvFOi6AQWiXD8uR3L1eorvMJUvF8KA6tFhzbz2GUgNi0ptpYHDkdFyM7LUhNcPQc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 157686108419997.52607275221067; Fri, 20 Dec 2019 08:58:04 -0800 (PST) Received: from localhost ([::1]:59092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiLbH-0005TR-2s for importer@patchew.org; Fri, 20 Dec 2019 11:58:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32932) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiLVU-0005vr-Sm for qemu-devel@nongnu.org; Fri, 20 Dec 2019 11:52:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiLVT-0005b6-JO for qemu-devel@nongnu.org; Fri, 20 Dec 2019 11:52:04 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:46637 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iiLVT-0005aR-El for qemu-devel@nongnu.org; Fri, 20 Dec 2019 11:52:03 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-202-b66nyt8LPYieU_6GNcOOEw-1; Fri, 20 Dec 2019 11:52:00 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2D16C18B9FD3; Fri, 20 Dec 2019 16:51:59 +0000 (UTC) Received: from localhost (ovpn-116-10.gru2.redhat.com [10.97.116.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id E2D906F12E; Fri, 20 Dec 2019 16:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576860723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZO3A9x6Z5IrKB672Yanf42gW4KGAYB1T2LPZ+UvO970=; b=fyl/WUeYoL43GW4j+6CZt88w/mb2+Gop6hnmr8g4XtzmWtZftc5ES7OQm8eV3nUtQ+vtLV u+HuYo+0TdKh4Xb73oWb6ofx+lA1vMWFdNexMJHkZnU5axbQJR2L06TOQgUPCTEWMfZxA7 0uFBfpfoKguilR3K4lo/dyxB/4CT584= From: Eduardo Habkost To: qemu-devel@nongnu.org, Cleber Rosa , Peter Maydell Subject: [PULL 2/2] configure: Require Python >= 3.5 Date: Fri, 20 Dec 2019 13:51:41 -0300 Message-Id: <20191220165141.2207058-3-ehabkost@redhat.com> In-Reply-To: <20191220165141.2207058-1-ehabkost@redhat.com> References: <20191220165141.2207058-1-ehabkost@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: b66nyt8LPYieU_6GNcOOEw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.120 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: Fam Zheng , Eduardo Habkost , Juan Quintela , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Markus Armbruster , "Dr. David Alan Gilbert" , John Snow , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Python 3.5 is the oldest Python version available on our supported build platforms, and Python 2 end of life will be 3 weeks after the planned release date of QEMU 4.2.0. Drop Python 2 support from configure completely, and require Python 3.5 or newer. Signed-off-by: Eduardo Habkost Message-Id: <20191016224237.26180-1-ehabkost@redhat.com> Reviewed-by: John Snow Signed-off-by: Eduardo Habkost Reviewed-by: Juan Quintela --- configure | 18 ++++-------------- tests/Makefile.include | 5 ----- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/configure b/configure index 940bf9e87a..747d3b4120 100755 --- a/configure +++ b/configure @@ -903,9 +903,9 @@ fi : ${install=3D${INSTALL-install}} # We prefer python 3.x. A bare 'python' is traditionally # python 2.x, but some distros have it as python 3.x, so -# we check that before python2 +# we check that too python=3D -for binary in "${PYTHON-python3}" python python2 +for binary in "${PYTHON-python3}" python do if has "$binary" then @@ -1842,8 +1842,8 @@ fi =20 # Note that if the Python conditional here evaluates True we will exit # with status 1 which is a shell 'false' value. -if ! $python -c 'import sys; sys.exit(sys.version_info < (2,7))'; then - error_exit "Cannot use '$python', Python 2 >=3D 2.7 or Python 3 is requi= red." \ +if ! $python -c 'import sys; sys.exit(sys.version_info < (3,5))'; then + error_exit "Cannot use '$python', Python >=3D 3.5 is required." \ "Use --python=3D/path/to/python to specify a supported Python." fi =20 @@ -6594,15 +6594,6 @@ if test "$supported_os" =3D "no"; then echo "us upstream at qemu-devel@nongnu.org." fi =20 -# Note that if the Python conditional here evaluates True we will exit -# with status 1 which is a shell 'false' value. -if ! $python -c 'import sys; sys.exit(sys.version_info < (3,0))'; then - echo - echo "warning: Python 2 support is deprecated" >&2 - echo "warning: Python 3 will be required for building future versions of= QEMU" >&2 - python2=3D"y" -fi - config_host_mak=3D"config-host.mak" =20 echo "# Automatically generated by configure - do not modify" >config-all-= disas.mak @@ -7447,7 +7438,6 @@ echo "INSTALL_DATA=3D$install -c -m 0644" >> $config_= host_mak echo "INSTALL_PROG=3D$install -c -m 0755" >> $config_host_mak echo "INSTALL_LIB=3D$install -c -m 0644" >> $config_host_mak echo "PYTHON=3D$python" >> $config_host_mak -echo "PYTHON2=3D$python2" >> $config_host_mak echo "CC=3D$cc" >> $config_host_mak if $iasl -h > /dev/null 2>&1; then echo "IASL=3D$iasl" >> $config_host_mak diff --git a/tests/Makefile.include b/tests/Makefile.include index 31b86674e5..9146e1bdee 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -1157,7 +1157,6 @@ TESTS_RESULTS_DIR=3D$(BUILD_DIR)/tests/results AVOCADO_SHOW=3Dapp AVOCADO_TAGS=3D$(patsubst %-softmmu,-t arch:%, $(filter %-softmmu,$(TARGET= _DIRS))) =20 -ifneq ($(PYTHON2),y) $(TESTS_VENV_DIR): $(TESTS_VENV_REQ) $(call quiet-command, \ $(PYTHON) -m venv --system-site-packages $@, \ @@ -1166,10 +1165,6 @@ $(TESTS_VENV_DIR): $(TESTS_VENV_REQ) $(TESTS_VENV_DIR)/bin/python -m pip -q install -r $(TESTS_VENV= _REQ), \ PIP, $(TESTS_VENV_REQ)) $(call quiet-command, touch $@) -else -$(TESTS_VENV_DIR): - $(error "venv directory for tests requires Python 3") -endif =20 $(TESTS_RESULTS_DIR): $(call quiet-command, mkdir -p $@, \ --=20 2.23.0