From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C8903158013 for ; Fri, 15 Dec 2023 09:09:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A332E2BC023; Fri, 15 Dec 2023 09:09:24 +0000 (UTC) Received: from mail.pissmail.com (mail.pissmail.com [173.249.47.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33E7B2BC01A for ; Fri, 15 Dec 2023 09:09:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shitposting.expert; s=dkim; t=1702631361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0P/DWljUBumYLjs3djnbzf7p2sZbUdTh2FIUNReuiIo=; b=cPwhZSmSpv/UMESxechQGfbqbvsu79/eyucZKDZAnZeBcwR5eo3TvTuivuqFESZmhnVbRe QhdoVxCGhhbySrjTBZ8Kc161ofFi4p15P1V4VIh8R66x7fIAz2bb/0by/JIWD1Rl1fZcGV IZIUxL3lBT6iwg+9l7rAa4PyHaJBMIXyqT0JVSQtAxhsXERswwz3Lm4l4JvHuRfsq5nBHA fw0AsUjAfZjfcMEffhpruta3iQj54JkhooJTEnqeyZ92Eeo0BSyZrblsWOumNTQSLEWmVz XIv11K5OdjbzvKJQlZ3fMAAZcZWCpBQleCYAeFJd7uYjxRCJiqJqTX4KIsBChQ== Date: Fri, 15 Dec 2023 09:09:21 +0000 From: stefan11111@shitposting.expert To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Python 3.11 USE flags being flipped on In-Reply-To: References: <34880f9a50de15dbd925603483ac1525@shitposting.expert> Message-ID: <2353b9167eaa803e5dce5b842090a3c0@shitposting.expert> X-Sender: stefan11111@shitposting.expert Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: mail.pissmail.com; auth=pass smtp.mailfrom=stefan11111@shitposting.expert X-Spamd-Bar: / X-Archives-Salt: f5afc7a0-1c37-4ae4-a851-9dd8d98663f2 X-Archives-Hash: f234d398770dcaca84a8f93afb97bbbd On 2023-12-14 23:38, Nikos Chantziaras wrote: > On 15/12/2023 00:53, stefan11111@shitposting.expert wrote: >> I just tried to run today's emerge, when I saw that python 3.11 was >> being pulled in and packages had this USE flag flipped on. > > Python 3.11 is the default right now (and has been for some months > now.) You should follow the python upgrade procedure (there should be > a news item for this, you can view those with "eselect news list".) > > After the upgrade, it might be easier to block new python versions > until Gentoo switches the default version again later. This has been a > mainstay in my packacke.mask for ages now: > > # Prevent a shitload of different python versions from being > installed > <=dev-lang/python-3.10 > >=dev-lang/python-3.12 > > (Obviously the versions are gonna differ over time.) > > I don't set PYTHON_TARGETS nor PYTHON_SINGLE_TARGET. Currently, the > defaults are: > > PYTHON_SINGLE_TARGET="python3_11" > PYTHON_TARGETS="python3_11" > > When the default Python version changes, this is usually announced > through a portage news item and you'll get a notification about it > when you sync. > > If you really want to stick to 3.10, you can try setting the above > vars for portage. You can do this in your package.use: > > */* PYTHON_TARGETS: -* python3_10 > */* PYTHON_SINGLE_TARGET: -* python3_10 > > However, 3.11 is the current default for a reason. Maybe some packages > really require it, and thus you will end up with both 3.10 and 3.11 > installed. If you just want a single version installed, then it's a > good idea to not go against the current portage default. I have done the migration to python 3.12. The problem is that portage is pulling in python 3.11. I have PYTHON_TARGETS="python3_12" in make.conf. And: app-eselect/eselect-repository python_single_target_python3_12 media-video/mpv python_single_target_python3_12 dev-util/glib-utils python_single_target_python3_12 In package.use Putting PYTHON_SINGLE_TARGET="python3_12" in make.conf changes nothing. The problem is that I'm on python 3.12 and portage is pulling in an older version.