From nobody Wed May 22 12:25:38 2024 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 4Vkr9x4SJXz5LcnY for ; Wed, 22 May 2024 12:25:41 +0000 (UTC) (envelope-from mfechner@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vkr9x425lz58Pc for ; Wed, 22 May 2024 12:25:41 +0000 (UTC) (envelope-from mfechner@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716380741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OBR6BGbMjdhYcJnQQW4c69hLBvl/eBh08ZV+qwpPO70=; b=wemWiHUWRLTZSm9WyBDCKxBbw+451pwq4kX6zTMU0+IPd6Y4nToYA7PqcQQy8N9/aM5Xzu AWAIlQ+XTYeivDqwydmcyyvHkYgSZVOi3/3BpxjOE+f8PgDj2T7pWYXqDpPMCwx4rjSnAn Z+edtb0Sguy+hQu+a7i7Q5ImvLMUuemHD5kwlgYR9PrmFYhFfumNCf8HiUUn/8YTqfrWWd w0V4+rQXkTS9si/TU/lW0SeSo1Di36tJZXxDT9e1oy65lvkzhe+gyKwbEkdix1VzI9tPKA ITbotKb0CowMnPQ+pKKG4DWNxHdbpacI+QSOHKGg4/lbVObdDh/jGT5kVGNxoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716380741; a=rsa-sha256; cv=none; b=bpAlmhoggZFDGXsKTxlJaKWktOr10HO/MZmyA3F/3wpotclJbvn2FkUXAh/5LYl31GessU xManJRuV+24OfwI5oJ0IXzBP0SNGgEQLhprTcAR7YxnLbqJ5sZqQcsRCY+W8rs2MyJvJ4I WAsIvymcfSUas1aZzCL8HcFhfmORhXWSDXdU+Soht0Q9NsSfHvndBZR71q9/N8pATbg0/x rJmshQ/rpD7q4rK1kIV0KNhe6++OFna6JzTOfSJ8SORBiMWf61fJVgvjvPQG9MMnySaPXe 3Gz3RN/TshZde35uIn4uQVRMSGD4g2E9ICzxJUyPCnqMPAf6wQDwVKoS6DedJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716380741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OBR6BGbMjdhYcJnQQW4c69hLBvl/eBh08ZV+qwpPO70=; b=vFFIyBgNhSotH9wZr82MBzFj/w3HDODJ4KGiZcqhsm0NxUMOJ7DjJQMNCscY5AoUvyaNsC 8V/BkZoOHiFWYgbksvbhbikCPCJ0ymhd2uNFjtEAZGEg6VyqX3J18A0X1TEUlpztLupomi oM7ogA3hMeGsCT+KD+/c6fgsMDIKphUUuAuVNkvXC+Seq3tyzZs4jOF98BNJusRsO5DRRP IxNvMy0PqX1WhdGAL/ADATr65C54PyFKQLt3K6GtBbo4iXElEVf23pnT5pzzBo7Q2SVFlT INLm2/LRgkwvLYMja5Gv+e5iG2aRRbtJ49pYzY75ByAkRc+yoMeNEeBw6E0dVA== Received: from [192.168.0.151] (unknown [194.146.159.239]) (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: mfechner) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Vkr9x05l0zhQ0 for ; Wed, 22 May 2024 12:25:40 +0000 (UTC) (envelope-from mfechner@freebsd.org) Content-Type: multipart/alternative; boundary="------------qDpiqqN8HDJxUHoHXLE8YcWw" Message-ID: <11b59ce1-b4db-4b21-91ca-646c281a6402@freebsd.org> Date: Wed, 22 May 2024 15:25:38 +0300 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 User-Agent: Mozilla Thunderbird Subject: Re: How to add dependency to python binary To: ports@freebsd.org References: <674b2ef0-9d92-4540-afa7-9da6b625065a@freebsd.org> <20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com> Content-Language: en-US From: Matthias Fechner In-Reply-To: <20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com> This is a multi-part message in MIME format. --------------qDpiqqN8HDJxUHoHXLE8YcWw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 22.05.2024 um 14:43 schrieb Emmanuel Vadot: > An easier way is to use BINARY_ALIAS= python3=${PYTHON_CMD} thanks, a maybe even better solution which I found now is: su -l git -c "cd /usr/local/www/gitlab && yarn config set python /usr/local/bin/python3.9" I will update my installation and upgrade instructions accordingly. I wish I could integrate this into the package, but like this it is also fine. Only drawback here is, if python is upgraded to a newer version, the command needs to be updated to the new binary too. 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 --------------qDpiqqN8HDJxUHoHXLE8YcWw Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Am 22.05.2024 um 14:43 schrieb Emmanuel Vadot:
 An easier way is to use BINARY_ALIAS= python3=${PYTHON_CMD}


thanks, a maybe even better solution which I found now is:

su -l git -c "cd /usr/local/www/gitlab && yarn config set python /usr/local/bin/python3.9"

I will update my installation and upgrade instructions accordingly.
I wish I could integrate this into the package, but like this it is also fine.

Only drawback here is, if python is upgraded to a newer version, the command needs to be updated to the new binary too.


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
--------------qDpiqqN8HDJxUHoHXLE8YcWw--