From nobody Wed May 22 11:06:51 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 4VkpR34tlFz5LTqn for ; Wed, 22 May 2024 11:06:55 +0000 (UTC) (envelope-from mfechner@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 4VkpR344zQz50TK for ; Wed, 22 May 2024 11:06:55 +0000 (UTC) (envelope-from mfechner@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716376015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type:autocrypt:autocrypt; bh=B2aGvMxm6aEm/XPnp8VDuJR5dwFCmkdxKEpbsZVpiY8=; b=LjjZFrFb3vJfMdOJHHiNdu+V0PNvQcWxwd/A8AwXvVIjT/Xu05SJBTc/XAUtjomHJ0Ky8m RUKeS1H83pPAHZOweLIOBJA0xOItvib0ryVfGALmCAla1fvWXXEqdy/+xGkcwTR0iQer3p +lHlZFz9VQC4evA5JKg1VmCc1baXxJZ0sHTjyN804xxTr1zgIFpAMvar4dOIMAqBQeItkF rD2hbVlbUBy1smCKrZqIyicT94Gg1uCtZrzqvcWDIudTEAorXw1YVGDHmZ0hp/gHdh8c1/ EBmnP38R2aOal6kZJOu/nBquf9hZxWymMnL+FpU26clf4gkJg2k3cLaX0oxtnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716376015; a=rsa-sha256; cv=none; b=Qjl/iareEmH+b4O77nlWEa+nu3d6SMM26LWTnpzmHeJlb8YRzN3jXs0z+8qQrmfF/ISJoF sdFrjsvjCCGtZXQMd9ErKQDCRA/xUFtFHUPpp4NebGWpgW1gXDFUmzu6rDMheL5dEzN86O JarFzZH0uINzJ1DoKfXh0tgQFBhBwYUV7kCXN1zdWMGf4SdMolB4dTa9SG6fNLM4gdAaDX yTQRmCl6ez1FXL3fc3mspxUnBTk5aT7A2buu/6ryKGo0BzFFvL+Dh0LnBYmonyObzmgeJ6 WcTbglbCvH/GoAjWYz122jQxXaGGqpQDgKglcYLXjF6kZT5fs9HyKHAet9aCoA== 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=1716376015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type:autocrypt:autocrypt; bh=B2aGvMxm6aEm/XPnp8VDuJR5dwFCmkdxKEpbsZVpiY8=; b=f8pJMCbJ7gvxN0yxwtmiNJ51VaCZoUjRQv2GgEJtG99bjZ8p84dhPmJMjrFcuSbUnc4nnq PC2z2sufhTzlf+hfd0a2lpkjBeUP47/OhuCxbeq6Z6fQZNq8aSpBF7zxkb1TgAYu4TyLE6 xswIDg11HaPIw8LHWer/pY3u6CxaiRjJGqDYb4e41qpthQI8/m961T7ZaR8cfnivZmm+CC O/M5MBeIJLOxBsoKHmM9vGN948eP39V1GSjfZSesqd9nHIybJCjFpypySBMZ7QmIGn3nIi iZp6/rdDoH2IUHEaWuJQRgMn7WbSn+zEH/ercoSG9Nc8V93K53xSb3mGJg8Uqw== 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 4VkpR26Xskzg3m for ; Wed, 22 May 2024 11:06:54 +0000 (UTC) (envelope-from mfechner@freebsd.org) Content-Type: multipart/alternative; boundary="------------USsBT5Mwnl0J6HuUxz3vL5N8" Message-ID: <674b2ef0-9d92-4540-afa7-9da6b625065a@freebsd.org> Date: Wed, 22 May 2024 14:06:51 +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 To: freebsd-ports@freebsd.org Content-Language: en-US From: Matthias Fechner Subject: How to add dependency to python binary Autocrypt: addr=idefix@fechner.net; keydata= xsFNBFqca1YBEADM9mF2+ifk8HILTlf5wtAzV6SYVR4RvNOo/8Kucw4sCZT76zS1fjZe4Zy1 3C0IZ07Wi+3PnoGIgOCsXp3PrTc2nuHQWkwVBYXy8UaR9DHBWA/mIvRGG1ZscKQYA6oUdCvd K8Mu26zO60yTt+ONzFtK6G1myH4EHXZ8dpmdCFf+W3rzTU+aCQ5S3OfwCLGgYgOaVREGkdOc 5SVCpFb4n+2B8+CqeWsRHhnT+4h7/YhgDMGp4GiI3yrB2nBVSUUvcosD2nRtJQgGQHcAFtMq 3hJaKPOR/mHc6KVrp0xmGNmdtazvXloHmGIl9O1UpmMmrYu9Kugl0JkGi2fAcno02XgVlkyX 7xDLTteP5cNqRxor4yVDaRWUQnOfK9XgcrKGrAzb65BkCSkjT+Aw3S/A8Qd6NvjL9qy1d+Ct dzatOVF/Y7jaW28CMr3jvwPS13OxV7PnJzIZzdik20eVxfOXuYfxZD+PwBaGgFF0qj6zKACC aKLalE0ZpY0zNn/iPyQX/Cf9KoDyFpOHSsEswiJ5rCWwppVcsFyogHOemVmeaXlvyDPEipnV ZUkpGP/CCqPu3eD0uDzP7UJ0pt/l/JfW0Xw/4p9mjB024xiRlxLa6vSRfGl//EdtAIbKKa8x 5wsKTQEbYJDmXE3tH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jP1oI2RpwTIN2/5/a2Z+kOAmJml7YkoSDCkzU+uDWHNNu0xNKTKixvUhr9IywRPK/dBvr E/eTYdQWrajBSpfMotoIXUl76M0jhJbwjIS6Nk+zmJwUxjq3SaUAUvIbUAHdJUXgujssKfyZ WrUiB7xi1zOkyP9T0HT2tHHA+/EGmfq5Ohe+IF4WpBJ37t12ZxelA7qXHbtPljz+Ptljs3tS zX4omw== This is a multi-part message in MIME format. --------------USsBT5Mwnl0J6HuUxz3vL5N8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear all, I need some help on how to get the python binary and not the python32 binary installed as a runtime dependency. I tried to use: USES= python:run but that only installs the python39 package which only installed the python30 binary. If I add: RUN_DEPENDS= python>=3.9:lang/python to get the meta package for python installed, which adds the symlink from python -> python39 I get an error message while building the package: ====> Running Q/A tests (stage-qa) Error: lang/python should not be depended upon. Instead, use USES=python:xy with a specific version. *** Error code 1 What is the recommended why to add python as a runtime dependency that the python binary is available? Thanks a lot 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 --------------USsBT5Mwnl0J6HuUxz3vL5N8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Dear all,

I need some help on how to get the python binary and not the python32 binary installed as a runtime dependency.
I tried to use:
USES= python:run

but that only installs the python39 package which only installed the python30 binary.

If I add:
RUN_DEPENDS= python>=3.9:lang/python

to get the meta package for python installed, which adds the symlink from python -> python39 I get an error message while building the package:

====> Running Q/A tests (stage-qa)
Error: lang/python should not be depended upon. Instead, use USES=python:xy with a specific version.
*** Error code 1


What is the recommended why to add python as a runtime dependency that the python binary is available?
Thanks a lot
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
--------------USsBT5Mwnl0J6HuUxz3vL5N8--