From nobody Sat Oct 11 08:57:34 2025 X-Original-To: python@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 4ckHYt2VJJz6BV1v for ; Sat, 11 Oct 2025 08:57:38 +0000 (UTC) (envelope-from makc@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ckHYt1bc9z3Rtn; Sat, 11 Oct 2025 08:57:38 +0000 (UTC) (envelope-from makc@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760173058; 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=U+nwVQmwSQ+XGd9rEBHlFn6VZu2r/njoseXQT2qoGa4=; b=oiMoyS+HfjStsmMRRSN5lVSHBMiODp6xPQ1U4J03vpHQHTYZQjZBJUcxCy7zbNKm6iVwaW wZfuy2vARutO0uMC1RanJMADh0zR+43Pw/m0EVtl0pEJVKFctZTsROBMZx3ozgrozbBm1a bjyKlauVKNmeobBych45tvh0rTI3ireE42a1PVluZmy6kVZd6Xs3K7zhhFEew/Xu6gnW8L UMXmBAKqdfRK0fw2ignWL8lsLhKirII0RD16v1RpgaqlotU4/qU/BG+4FjHlh07gf9SjgS vRQ+4Zpl4GyR+kuSCIYXJxjuYRq8ncGjI4Z4dR8Sjk1wNN9xV+JMtMuwoZbyzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760173058; 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=U+nwVQmwSQ+XGd9rEBHlFn6VZu2r/njoseXQT2qoGa4=; b=QZilztnTWcYuxyXcZLXY2iuv1NdxvqdnAnU0Nvti2NciGTfLOSkCZQFxAiLZ3K5OiSiohz p0t9jhLwQskikNiNekoeZJ1rkVVDgoGiCFqTlmqYgwf/9HlRKNSSqpPI2XNa7uvLa+PmxW HUac3IFbU/WmtwlDJVnDYdwbnXTEAakWdYd9jHL79auTiRqXEvItF1AkGjkJWulCotXizr DIh72h1FlZ+LZIQUyPA3LNERqmf4zAwSL295VsmYIYSFIDsMJLUDekRkHiJHXViO0fPTIT vGw9bLRga3hs0KczO0srpZ4opvXkNNhumDkmb4ULtho08+VBAwgHbVPbozyh/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760173058; a=rsa-sha256; cv=none; b=dGRRJE3jV4an0A9drglwabxP/M+wQ1EbWG0kwaL45g/MvwI0dAK2DUlZOAWQjOEirP66/7 5Nbdqa77Fdp++hfz9wAwAgB/UqEpdLjJq7bFobhdwzpXupoAdVo2/AJ8AbSBYtFB8d2xsT /PrjHdtzwV+76t+cYFsXo+gngWN4wuxFpxp/R/C43ZEaNoPV0FxuitmrdeFjprpRrLr2q7 BI8C1S6qdkKaqhJGjhpfhws8J4ApftW8QfLWI2CVrk5ATVcncpqDVUnpZFUkCSJfkBmstn TDGjKwyoF2r6kEVURlFOzZSfJV1+PoEVo6KXauFwxb0afrh4DPtjJCXwTqI3bA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mercury.localnet (unknown [83.68.42.204]) (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 did not present a certificate) (Authenticated sender: makc) by smtp.freebsd.org (Postfix) with ESMTPSA id 4ckHYs5RlfzBdZ; Sat, 11 Oct 2025 08:57:37 +0000 (UTC) (envelope-from makc@freebsd.org) From: Max Brazhnikov To: python@freebsd.org Cc: Stephen Montgomery-Smith Subject: Re: PEP394 Date: Sat, 11 Oct 2025 11:57:34 +0300 Message-ID: <3066551.hHqAuc6tWs@mercury> In-Reply-To: References: List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" On Thu, 9 Oct 2025 23:16:01 -0500 Stephen Montgomery-Smith wrote: > I am the maintainer of the math/octave port. It's python function > depends upon the existence of the python3 command, saying in > ${WRKSRC}/scripts/miscellaneous/python.m on lines 74-75 > > ## PEP394 says Python 3 installs should all provide this command > pyexec = "python3"; > > I notice that the lang/python3.11 doesn't include python3 as a link to > python3.11. > > My guess is that you have discussed this to death, but google didn't dig > up for me any of these discussions. > > Right now I am going to do a > ${REINPLACE_CMD} s+python3+${PYTHON_CMD}+ > ${WRKSRC}/scripts/miscellaneous/python.m You can use BINARY_ALIAS if the port needs python3 during build stage, e.g. "BINARY_ALIAS= python3=${PYTHON_VERSION}". If the port installs scripts with hardcoded python3, than you need "USES+= shebangfix". See for details: https://docs.freebsd.org/en/books/porters-handbook/makefiles/#binary-alias https://docs.freebsd.org/en/books/porters-handbook/uses/#uses-shebangfix Cheers, Max