From nobody Thu Sep 29 08:06:37 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MdQtW3mV9z4V5L0 for ; Thu, 29 Sep 2022 08:06:43 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MdQtW3GfBz3DVH; Thu, 29 Sep 2022 08:06:43 +0000 (UTC) (envelope-from se@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664438803; 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=QY1vKcKQ3/VmZIa57X6sQTFuDC3euZEwLjoHbEA1A4w=; b=frBSf2D05UsvuUUX+EuOqQpBgEHg6M/xEUuhOg0OggL0OeZlJjCSiW8JI1Sa4q2frdtpTB N5Bd/8NeAGh87v8g+IUPsrlr5qzLM/BTsxi1/O+UKtPRWOYOvGvCRxq/hYUYra07h85cNc Fl6TucUmRF5lfyZWEDaESUWeQTJkV+eTA2Brrpm8oXI+bebS9/9BZiusjLBLDhGMulcqVw SEsHeS8icYz4KYcpKrvuvnFQR+LstnZWz69iXtiMaVQmKk/f8ffRZTnGxK2DZWQszBlzM1 itWRzRpPFYh0SsJY3gdMHApbtj4A+Vj0ilb23s7+RqobYlF3uV0+LjKN6jFqoQ== Received: from [IPV6:2003:cd:5f04:cc00:5dd1:9a28:9029:8f3b] (p200300cd5f04cc005dd19a2890298f3b.dip0.t-ipconnect.de [IPv6:2003:cd:5f04:cc00:5dd1:9a28:9029:8f3b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MdQtV53KvzwJH; Thu, 29 Sep 2022 08:06:42 +0000 (UTC) (envelope-from se@FreeBSD.org) Message-ID: Date: Thu, 29 Sep 2022 10:06:37 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Python version dependencies in pkg Content-Language: de-DE, en-US To: Dan Mahoney Cc: ports@freebsd.org, Alexander Leidinger References: <8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org> <89D2B2D7-FA3D-46F5-A93B-4846950A157C@gushi.org> <65597c37-813b-d0ed-ea9f-8591b68cf097@gwdg.de> <20220929083939.Horde.Viq2uLBgUctcrsgmaJxN_1u@webmail.leidinger.net> From: Stefan Esser In-Reply-To: <20220929083939.Horde.Viq2uLBgUctcrsgmaJxN_1u@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664438803; 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=QY1vKcKQ3/VmZIa57X6sQTFuDC3euZEwLjoHbEA1A4w=; b=V37RmfgD1YwDfD/UmFrm2/XDC+OLH3Cy4oVy+vzxnADZTegeAhgsnNyI6PMjbeA6AtSfla pXekQa8KEePLyaZnP5n0PI4qXOpJsv9WvwqEAZLtytqy4nF1buhkIo8ausnZd+qF2m4UJj +zuU3MA6QHycQ614Y918Gq8/w8wg40OsIC11hBzHZAtD/RCqvc6rNjSwcNHopj/Uxz9iM+ 9FnKa8jRwm4nWZokiScOnUR2Tl2k3flB4FG1kylhv1PqJmOuZPNgkJMSMdoTVyTi51ryVc i38uHbtmzO1xvFI3enUvvF71isTcpmQuekLqoraQfwoHJqV9abeE3JJVzn9RHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664438803; a=rsa-sha256; cv=none; b=r8mhn1B+jrjmC6Pu9y3eFmkGL1d7rKipQPE6nKOj7MPAFfywvecMhElpRmd9Vj93rTZwke 4iE3rOXPIqbAJB1vPByZfGsedAgU3S2Yi3i/nx3e1JWW18unZwqz2OG+xVF6ypA2B/MSpH 7owSZ7AolQHBQoX8mhXy3Mh0fWnS95lcHsKcTUC7s9/6MNGg0t5CkjMbZLsXiqmZsz3mak 8y64vV6m1tpV4HOWN7+OChVN4LJjICQuuqWLP0wZezttNXDXP7BD5wEasPDGYu/uMIesVD xRljqtk5S5nLnsWn/F5Eh1/kuNcqz0zMy4kBspv/OdCwsN5i54QhiEZ3hS8csw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Am 29.09.22 um 08:39 schrieb Alexander Leidinger: > Quoting Rainer Hurling (from Thu, 29 Sep 2022 06:43:49 +0200): > >> Hi Dan, >> >> Am 28.09.22 um 23:01 schrieb Dan Mahoney: [...] >>> Okay, so in either the package file, or the repo file, is there a bit that >>> says "whatever is the default" or that explicitly says "if there's not a >>> python, install 3.8"? >> >> There is PYTHON_DEFAULT (set to 3.9 ATM) in ports/Mk/bsd.default-versions.mk. >> You can override this for example by an entry in /etc/make.conf: >> >> DEFAULT_VERSIONS+= python=3.10 python3=3.10 >> >>> >>> I realize I'm asking weird minute questions, but I'm noticing that across >>> our fleet we have some blend of machines that are 3.7, 3.8, and 3.9, and >>> trying to just remove 3.7 attempts to deinstall packages that would work >>> with 3.8. >> >> To update from one Python version to another, there are descriptions in >> /usr/ports/UPDATING, see entry from 20220626. >> >> After changing Python itself (i.e. from 3.7 to 3.9), rebuilding depending >> py3x-packages will do this version change for you (i.e. from py3.7-* to >> py3.9-*, ...). It works via the so called flavors. > > To extend a little bit on that: > "pkg info | grep py3" will give you a list of ports which are depending on a > specific python version. If it lists py37-xxx it means the xxx port depends > upon python 3.7. If you then delete python 3.7 pkg will also ask you if it is > ok to delete all the py37-* ports. There are many ports that depend on some specific Python version without "py3" in their package names. The following command lists all installed packages that depend on the version of the python interpreter in the first column: pkg query "%dn %n-%v" | grep -E "^python3[0-9]+ " Regards, STefan