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 E1E85158083 for ; Fri, 13 Sep 2024 16:51:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BCC6E299F; Fri, 13 Sep 2024 16:51:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 E3772E299F for ; Fri, 13 Sep 2024 16:51:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 16655340441 for ; Fri, 13 Sep 2024 16:51:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 751E027DE for ; Fri, 13 Sep 2024 16:51:52 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1726246287.980349fd26a8d933f3f8de77ab2863fde66c0828.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rustup/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rustup/Manifest dev-util/rustup/rustup-1.27.1.ebuild X-VCS-Directories: dev-util/rustup/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 980349fd26a8d933f3f8de77ab2863fde66c0828 X-VCS-Branch: master Date: Fri, 13 Sep 2024 16:51:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 38a8d64a-c781-45a7-b069-4dc5d0e2ccb8 X-Archives-Hash: 4ae65ab4d34cb9e9d2186e86aa3dd4eb commit: 980349fd26a8d933f3f8de77ab2863fde66c0828 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Sep 13 16:51:12 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Sep 13 16:51:27 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=980349fd dev-util/rustup: add 1.27.1 Closes: https://bugs.gentoo.org/938017 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/rustup/Manifest | 2 + dev-util/rustup/rustup-1.27.1.ebuild | 95 ++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/dev-util/rustup/Manifest b/dev-util/rustup/Manifest index 6c2a5d24362b..9c84967c9195 100644 --- a/dev-util/rustup/Manifest +++ b/dev-util/rustup/Manifest @@ -196,6 +196,8 @@ DIST rustls-pemfile-1.0.0.crate 14559 BLAKE2B 8285b8ee627f9b6760df9ff27dd4983f99 DIST rustup-1.25.2.tar.gz 747638 BLAKE2B 981e9c7091ed6597bd364fb489cdd80d56d977ea9200b4f01389a4e963356b5e26782358979da442ede2d10af75536f84659e7fcfc13af8a0a9b58377b799aa7 SHA512 77268322224816c84c1a17f125cce10e0bfddae857f1e71885d9999f1415c567ee508f93367dd6adca62a92092c2869957206d4c707d20da461e2866fdc74e67 DIST rustup-1.27.0-crates.tar.xz 32493388 BLAKE2B 18db8ae5afddcc423615ac6ceb707b7986aa767cde1d91d877974ca8cc1c66f0bff9632f705dc1d838487310b1fdd80102b0eaf822bae0ce1b2ab840f1b5e5d6 SHA512 2b0264169b835681c516ce769a2746d32c9c237e9a630d7eb237106612b3d2e981331d9d1be903e1d1100fcba5202783b646e03b6f5c577a17ee480806a7e978 DIST rustup-1.27.0.tar.gz 947146 BLAKE2B e1be43b3bb46bd6b305525ac0258249ec1377196003af9c8ed00d59d1cd35cea9d52c6a6b0198598f51865decc0752bde683aca4fa0a220f40cd640880ac0830 SHA512 0b9349364e0f9d60ba0d486064295413012d38ec97597207b3c82e07ebcf6b5ade403a46fb3910fe4d63607150ce5b0e367ac322f894599bd6b02dae3872e8f0 +DIST rustup-1.27.1-crates.tar.xz 33405036 BLAKE2B a12eecb6af1c0fd4b9bca8a39f22a784aac3b0798faab4fcc294713cb01a13df483767453c9d5d9e4fae45486e9a229962426f403acc823451b1913edbdce3ec SHA512 846ecea9e34a72acc76c8fb5a22a29f186e8765a1fe3c08cc29532842d7c926f1d788da74ea485ab4a2e9807802f608a0afab40eb1fcc06577052f79f3c99770 +DIST rustup-1.27.1.tar.gz 951421 BLAKE2B f8a0784c828f14f4be87b915d47d1bbd67e1f3802928646a42405380e7b0fce2925e60e975cc3fc72ba094e5c10178de783e20f7d3928ca8cce3b57ff60f9981 SHA512 e0494678b7117464665c2aa88165e13baf2dcfb2a33c57dc78f669533111f773724d227ee05967de427845f8633e56fdf8159c7a5b96638413710beacb115075 DIST rustversion-1.0.6.crate 18380 BLAKE2B 2969bb40849dbd2f0d3f4a190629e53204cc5ef9065be6aec7a4504470e1dba6cde7172a3075a1bade421b30b88947cef6b29c0ab5aea8601695f72a7acc45d1 SHA512 fa9efca7e49eff6c510d062d02fc73d15341b1fe16d24dada86108202a4295d2e0519aecf3f1701540cd4d49a513c05e74d3d27e21e5eb3cb1aba46c70a992cc DIST ryu-1.0.10.crate 48485 BLAKE2B cbc0ab4e0b2031f4ca3a34914bd61395d14706d42e2414757aa23a67530d549382d61b630159c92a169d1dd3315951b0071ff18349d2b090ae262de536aa29e2 SHA512 1bd0af71a20715251dd42596df6e7677e44f712bbb40b0d9544109c1b2478a7bd2c9393535f0d4f3bfe2d1b75b3a2b899044051715a7da7d165d6d586e0775f2 DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15 SHA512 3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c diff --git a/dev-util/rustup/rustup-1.27.1.ebuild b/dev-util/rustup/rustup-1.27.1.ebuild new file mode 100644 index 000000000000..b7b6c9366d6b --- /dev/null +++ b/dev-util/rustup/rustup-1.27.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" + +inherit bash-completion-r1 cargo prefix + +DESCRIPTION="Rust toolchain installer" +HOMEPAGE="https://rust-lang.github.io/rustup/" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/rust-lang/${PN}.git" +else + SRC_URI="https://github.com/rust-lang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS}" + SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/dev-util/${PN}/${P}-crates.tar.xz" + KEYWORDS="~amd64 ~arm64 ~ppc64" +fi + +LICENSE="|| ( Apache-2.0 MIT )" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD ISC MIT Unicode-DFS-2016" +SLOT="0" +# uses network +RESTRICT="test" + +DEPEND=" + app-arch/xz-utils + net-misc/curl:=[http2,ssl] + dev-libs/openssl:0= +" +RDEPEND="${DEPEND}" + +# rust does not use *FLAGS from make.conf, silence portage warning +QA_FLAGS_IGNORED="usr/bin/rustup-init" + +src_unpack() { + if [[ "${PV}" == 9999 ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_configure() { + # modeled after ci/run.bash upstream + # reqwest-rustls-tls requires ring crate, which is not very portable. + local myfeatures=( + no-self-update + curl-backend + reqwest-backend + reqwest-default-tls + ) + case ${ARCH} in + ppc* | mips* | riscv* | s390*) + ;; + *) myfeatures+=( reqwest-rustls-tls ) + ;; + esac + cargo_src_configure --no-default-features +} + +src_compile() { + export OPENSSL_NO_VENDOR=true + cargo_src_compile +} + +src_install() { + cargo_src_install + einstalldocs + newbin "$(prefixify_ro "${FILESDIR}"/symlink_rustup.sh)" rustup-init-gentoo + + ln -s "${ED}/usr/bin/rustup-init" rustup || die + ./rustup completions bash rustup > "${T}/rustup" || die + ./rustup completions zsh rustup > "${T}/_rustup" || die + + dobashcomp "${T}/rustup" + + insinto /usr/share/zsh/site-functions + doins "${T}/_rustup" +} + +pkg_postinst() { + elog "No rustup toolchains installed by default" + elog "eselect activated system rust toolchain can be added to rustup by running" + elog "helper script installed as ${EPREFIX}/usr/bin/rustup-init-gentoo" + elog "it will create symlinks to system-installed rustup in home directory" + elog "and rustup updates will be managed by portage" + elog "please delete current rustup binaries from ~/.cargo/bin/ (if any)" + elog "before running rustup-init-gentoo" +}