From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 780EC158009 for ; Sat, 24 Jun 2023 14:45:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82EF2E083E; Sat, 24 Jun 2023 14:45:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3CC80E07FE for ; Sat, 24 Jun 2023 14:45:25 +0000 (UTC) Message-ID: <2fe02753-2e41-bf47-f3f2-d4f398ee17e7@gentoo.org> Date: Sat, 24 Jun 2023 17:45:06 +0300 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: [gentoo-dev] Re: [gentoo-dev-announce] Migrating ebuilds to "optimized" cargo.eclass API To: gentoo-dev@lists.gentoo.org References: Content-Language: en-US From: Arthur Zamarin In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------PC0ybUjpSsjJ04yGV6Jzlvkv" X-Archives-Salt: 36813e67-c3b8-492e-807c-f6df361b29cd X-Archives-Hash: 517a19256380572b3bc0dec7b73b9354 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------PC0ybUjpSsjJ04yGV6Jzlvkv Content-Type: multipart/mixed; boundary="------------4OoCs1zuXxE1xOxDgKVyWJr1"; protected-headers="v1" From: Arthur Zamarin To: gentoo-dev@lists.gentoo.org Message-ID: <2fe02753-2e41-bf47-f3f2-d4f398ee17e7@gentoo.org> Subject: Re: [gentoo-dev-announce] Migrating ebuilds to "optimized" cargo.eclass API References: In-Reply-To: --------------4OoCs1zuXxE1xOxDgKVyWJr1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 19/06/2023 18.01, Micha=C5=82 G=C3=B3rny wrote: > Hi, >=20 > The migration requires two changes: >=20 > 1. `$(cargo_crate_uris)` (or `$(cargo_crate_uris ${CRATES})`) in SRC_UR= I > needs to be replaced by `${CARGO_CRATE_URIS}`. This requires that > CRATES and GIT_CRATES are declared pre-inherit (this is already enforce= d > for CRATES in EAPI 8, but it is not for GIT_CRATES). >=20 > 2. The CRATES variable (and other crate lists) need to use `@` > as the separator between crate name and version instead of `-`. > The easiest way to do this is to use >=3Dapp-portage/pycargoebuild-0.7 = to > generate the variable. You can use the in-place mode to update > the ebuild, then it will substitute the list in place: >=20 > pycargoebuild -i foo-1.2.3.ebuild /directories/with/cargo-lock >=20 > Note that pycargoebuild won't replace $(cargo_crate_uris) automatically= > though. >=20 I want to add here, that since yesterday, pkgcheck live (9999) is warning about the "old less optimal" usage and recommends the replacement= =2E While I know the distrust people have to live ebuilds, the pkgcore stack is very serious about the live state. As long as you rebuild periodically the live version (for example using smart-live-rebuild, so you aren't left with a version from years ago) this is considered supported by upstream and very stable. I try to cut new pkgcheck releases every month, but until then feel free to use live. --=20 Arthur Zamarin arthurzam@gentoo.org Gentoo Linux developer (Python, pkgcore stack, Arch Teams, GURU) --------------4OoCs1zuXxE1xOxDgKVyWJr1-- --------------PC0ybUjpSsjJ04yGV6Jzlvkv Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE/axFlFuH2ptjtO5EAqCvUD0SBQQFAmSXAXMACgkQAqCvUD0S BQQsKQf/ZniD2d5rp+jzAFQRW8wuqlwn2k1Uz1agPWQrqlMAAN0/DagY4QrGRlRV I1xnmGdcRfThdDm9Q1yV2LbpAkKpYPzczDJ4XD4EuCOXFiXfBZeY6nK/0YQ1ChXJ AsvYqWQELsaKmP04JXxpNgkZYXWKPmw09BO2c6qVSmRkjNsLpPQgqtGwNpnOK+eZ FRD3Cj7oXpSXJrqASgrOrQo+c44iFiaIUtaS0FbyBZnCzrNznaQ3CtIwpovdhA2J LU9zdk5VwGz9aXvcz+OiMvFFuubOPSHartE2zNcAn+yhKZcj94bCOe5t+7biBdJu UgQSRfG84GXZSNqtbP5chb/AUERzmA== =Z4Yp -----END PGP SIGNATURE----- --------------PC0ybUjpSsjJ04yGV6Jzlvkv--