Date: Wed, 22 May 2024 14:37:54 +0300 From: Matthias Fechner <idefix@fechner.net> To: ports@freebsd.org Subject: Re: How to add dependency to python binary Message-ID: <df644315-6c9b-45f8-957e-08e82893c01e@fechner.net> In-Reply-To: <CALH631=w4_mjd-Rd8iaDUSjmB_wHHiA=s2r5Dv_vPfarMMgENg@mail.gmail.com> References: <674b2ef0-9d92-4540-afa7-9da6b625065a@freebsd.org> <CALH631=w4_mjd-Rd8iaDUSjmB_wHHiA=s2r5Dv_vPfarMMgENg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------K0cGc7zLeeV3hQYsSvNZF0Oz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 22.05.2024 um 14:10 schrieb Gleb Popov: > We usually patch the software to use pythonXY everywhere. For shebangs > it can be done via USES=shebangfix and for other cases resort to > patches or REINPLACE_CMD incantations. this is not possible, at least not directly. The gitlab port is using yarn to download other packages and as some packages are not available a prebuild binary package for FreeBSD, yarn is building then on-the-fly. So yarn or maybe the nodejs environment is expecting a binary named python to do this. I will check if it is maybe possible to tell yarn to not use python but python39 instead. Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook --------------K0cGc7zLeeV3hQYsSvNZF0Oz Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">Am 22.05.2024 um 14:10 schrieb Gleb Popov:<br> </div> <blockquote type="cite" cite="mid:CALH631=w4_mjd-Rd8iaDUSjmB_wHHiA=s2r5Dv_vPfarMMgENg@mail.gmail.com"> <pre>We usually patch the software to use pythonXY everywhere. For shebangs it can be done via USES=shebangfix and for other cases resort to patches or REINPLACE_CMD incantations.</pre> </blockquote> <p>this is not possible, at least not directly.<br> The gitlab port is using yarn to download other packages and as some packages are not available a prebuild binary package for FreeBSD, yarn is building then on-the-fly.<br> So yarn or maybe the nodejs environment is expecting a binary named python to do this.</p> <p>I will check if it is maybe possible to tell yarn to not use python but python39 instead.<br> </p> <pre class="moz-signature" cols="72"> Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook </pre> </body> </html> --------------K0cGc7zLeeV3hQYsSvNZF0Oz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?df644315-6c9b-45f8-957e-08e82893c01e>