From nobody Wed May 22 11:43:40 2024 X-Original-To: freebsd-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 4VkqFk3lv4z5LYR8 for ; Wed, 22 May 2024 11:43:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4VkqFj5llTz55DX; Wed, 22 May 2024 11:43:53 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1716378226; 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=sDJ3rfqXSFyhmCpF3UKqrRVXyK0gEIGg2M3ZMxLLqBc=; b=NxKSPf8gUfGk1aV6AIdiDNV/TMM6kBLrdk611gtZ5VanF1Q3/bFDOLxqNA3WvKWZzAAZuL w5N4B6zNUntClkUSH+g0Gu476aS0IFZUVcDIdpPIjilhAYNKp4NFUJjc7wmHgWTBmPX35M N0Nqr25e8QtOICKpoJ8tbp3e1v6V6Iw= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 16ca8d9e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 22 May 2024 11:43:46 +0000 (UTC) Date: Wed, 22 May 2024 13:43:40 +0200 From: Emmanuel Vadot To: Gleb Popov Cc: Matthias Fechner , freebsd-ports@freebsd.org Subject: Re: How to add dependency to python binary Message-Id: <20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com> In-Reply-To: References: <674b2ef0-9d92-4540-afa7-9da6b625065a@freebsd.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Queue-Id: 4VkqFj5llTz55DX On Wed, 22 May 2024 14:10:33 +0300 Gleb Popov wrote: > On Wed, May 22, 2024 at 2:07?PM Matthias Fechner w= rote: > > > > What is the recommended why to add python as a runtime dependency that = the python binary is available? >=20 > We usually patch the software to use pythonXY everywhere. For shebangs > it can be done via USES=3Dshebangfix and for other cases resort to > patches or REINPLACE_CMD incantations. >=20 An easier way is to use BINARY_ALIAS=3D python3=3D${PYTHON_CMD} Cheers, --=20 Emmanuel Vadot