From patchwork Mon May 10 14:40:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 4259 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Ff3dB5f3Fz44R5 for ; Mon, 10 May 2021 14:40:46 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Ff3d95GGCz1Gb; Mon, 10 May 2021 14:40:45 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Ff3d94By7z2yN1; Mon, 10 May 2021 14:40:45 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Ff3d75b97z2xPJ for ; Mon, 10 May 2021 14:40:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Ff3d63q3YzRT; Mon, 10 May 2021 14:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1620657642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=geIqK/YyFiSvSzK/6XvIzR6HVwqYqcF5jYwZ8A0F6hE=; b=Hfa/NlfAk1ImA6QbG+cBS8O8gJpJ7yDsUYkmXFMHrY8RyekB+aZHjnYBlqCoQj+Jdf97hD OEsjmnRJx/65ZFb7gSgP7CXhAPqPP8mIglwe9fy0cOoHMvrx2XS+mK+briuk9gQGh32E3s e14Uciwy+mHZ8XyHubfewDCR8W0AY73SvIVGFwh39UJaU7I5di3uobIJud9dTd5rgvQ6jB vgo1Tvli+lq1hn25OLV4TjORMFicpBvGeEO+FMljArgC01u2Y2wHQoORzcxe/UUrw85HVf 3kpBad85N/a3rKruMgSXTI9XOOzwK4wR5jsh6IQpJ+xT7VIA+yjT6yUvGLE17A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1620657642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=geIqK/YyFiSvSzK/6XvIzR6HVwqYqcF5jYwZ8A0F6hE=; b=UxQxksBPmFMPwy0k7Yrj2u3ckhHAbuo4Nz9fvXVVLGoCPK6qGN6uQ9rzOp/jFWGdQExoey 9+Ul4Ths7pKhvCCA== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] newt: Update to work with python3 Date: Mon, 10 May 2021 16:40:39 +0200 Message-Id: <20210510144039.2685956-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - Change from building with python2 to python3 - Update of rootfile Signed-off-by: Adolf Belka --- config/rootfiles/common/newt | 2 -- lfs/newt | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/common/newt b/config/rootfiles/common/newt index 5cc993d51..d07b984b1 100644 --- a/config/rootfiles/common/newt +++ b/config/rootfiles/common/newt @@ -5,8 +5,6 @@ usr/bin/whiptail usr/lib/libnewt.so.0.52 usr/lib/libnewt.so.0.52.21 #usr/lib/pkgconfig/libnewt.pc -#usr/lib/python2.7/site-packages/_snack.so -#usr/lib/python2.7/site-packages/snack.py #usr/lib/python3.8/site-packages/_snack.so #usr/lib/python3.8/site-packages/snack.py #usr/share/locale/ar diff --git a/lfs/newt b/lfs/newt index d7ba62866..ca24b21b2 100644 --- a/lfs/newt +++ b/lfs/newt @@ -70,8 +70,11 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=/usr \ - --without-gpm-support --without-tcl + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --without-gpm-support \ + --without-tcl \ + --with-python=python3.8 cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @rm -rf $(DIR_APP)