From nobody Mon Jan 01 09:34:13 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 4T3W5g276zz56NmF for ; Mon, 1 Jan 2024 09:34:15 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4T3W5g0lQSz4KwZ for ; Mon, 1 Jan 2024 09:34:15 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.5.3] (c-24-6-36-155.hsd1.ca.comcast.net [24.6.36.155]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 4019YErJ024386 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 1 Jan 2024 01:34:14 -0800 (PST) (envelope-from yuri@FreeBSD.org) X-Authentication-Warning: shell1.rawbw.com: Host c-24-6-36-155.hsd1.ca.comcast.net [24.6.36.155] claimed to be [192.168.5.3] Content-Type: multipart/alternative; boundary="------------O5TuFy9D0rML64otwEzHLGLj" Message-ID: <76c64ebd-0336-42a2-baad-1afa900ffda8@FreeBSD.org> Date: Mon, 1 Jan 2024 01:34:13 -0800 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Rust/cargo dependencies Content-Language: en-US To: Alastair Hogge , freebsd-ports@freebsd.org References: <2aa2dbd4f8d4e655cb74012bad6a6650@riseup.net> From: Yuri In-Reply-To: <2aa2dbd4f8d4e655cb74012bad6a6650@riseup.net> 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:7961, ipnet:198.144.192.0/23, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4T3W5g0lQSz4KwZ This is a multi-part message in MIME format. --------------O5TuFy9D0rML64otwEzHLGLj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Alastair, The port devel/pylyzer appears to be very similar. You can add setuptools-rust, USES=cargo, and then generate CARGO_CRATES using 'make cargo-crates. Hope this helps, Yuri On 12/31/23 19:19, Alastair Hogge wrote: > Hello, I am attempting to update security/py-bcyrpt to 4.1.2, however, > the Port now requires much oxidisation, and I am completely lost on > how to apply that. If I add cargo to ${USES}, then makesum and > cargo-crates both overwrite distinfo, removing the distfile > information for py-bcrypt. poudriere-testport will not complete > because the build wants to update some index via crates.io, and > network access is restricted during testport. I have had to set > ${CARGO_CARGOTOML}, however, that only works when ${USES} is not > populated with cargo. How does one configure the Port so ${WRKSRC} > stopped getting nuked and replaced with cargo-crates, and how can > testport continue without network access? -- To health and anarchy > Alastair --------------O5TuFy9D0rML64otwEzHLGLj Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi Alastair,

The port devel/pylyzer appears to be very similar.
You can add setuptools-rust, USES=cargo, and then generate CARGO_CRATES using 'make cargo-crates.


Hope this helps,
Yuri


On 12/31/23 19:19, Alastair Hogge wrote:
Hello, I am attempting to update security/py-bcyrpt to 4.1.2, however, the Port now requires much oxidisation, and I am completely lost on how to apply that. If I add cargo to ${USES}, then makesum and cargo-crates both overwrite distinfo, removing the distfile information for py-bcrypt. poudriere-testport will not complete because the build wants to update some index via crates.io, and network access is restricted during testport. I have had to set ${CARGO_CARGOTOML}, however, that only works when ${USES} is not populated with cargo. How does one configure the Port so ${WRKSRC} stopped getting nuked and replaced with cargo-crates, and how can testport continue without network access? -- To health and anarchy Alastair


--------------O5TuFy9D0rML64otwEzHLGLj--