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 CE5DB158041 for ; Fri, 15 Mar 2024 12:10:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6EE1E29E0; Fri, 15 Mar 2024 12:10:49 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 B1B81E29E0 for ; Fri, 15 Mar 2024 12:10:49 +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 9144333BDF5 for ; Fri, 15 Mar 2024 12:10:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C22A21504 for ; Fri, 15 Mar 2024 12:10:46 +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: <1710504629.000bde0c931ff0bd77cf1b124977d8e001298348.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.0.ebuild X-VCS-Directories: dev-util/rustup/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 000bde0c931ff0bd77cf1b124977d8e001298348 X-VCS-Branch: master Date: Fri, 15 Mar 2024 12:10:46 +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: c5af1177-54bb-482c-8c24-0e02d7bc3d1f X-Archives-Hash: 80b04c12f7240223e46b7dc28a9f28e2 commit: 000bde0c931ff0bd77cf1b124977d8e001298348 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Mar 15 12:08:02 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Mar 15 12:10:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=000bde0c dev-util/rustup: add 1.27.0 Closes: https://bugs.gentoo.org/918953 Closes: https://github.com/gentoo/gentoo/pull/34414 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/rustup/Manifest | 2 + dev-util/rustup/rustup-1.27.0.ebuild | 98 ++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diff --git a/dev-util/rustup/Manifest b/dev-util/rustup/Manifest index b5b00889b723..6c2a5d24362b 100644 --- a/dev-util/rustup/Manifest +++ b/dev-util/rustup/Manifest @@ -194,6 +194,8 @@ DIST rustls-native-certs-0.6.2.crate 22089 BLAKE2B f933315b493902c19b208894df252 DIST rustls-pemfile-0.3.0.crate 14487 BLAKE2B 8f7150f409f8708aaabfb8f41ef57f075cf6c135a5d4eaa3aa2851d7fb413114e861f0b6a53474faf73a22b560f36fdf52ee17ecf5809ab6563297b6c0cd5bd8 SHA512 62c35aaae1685b5b274cb7de8a12770a1564b0862da9544f4445b1402b0a494619714fb9bb50909c7fdfe32ee5f8bdcfbea237b2fde843e5af9ea1393c206b50 DIST rustls-pemfile-1.0.0.crate 14559 BLAKE2B 8285b8ee627f9b6760df9ff27dd4983f993ddc7f24248801b80305df6edc9e2f9ed682327dc1752f6547cb93304b8ccb67e50aded61927b855e3f624fd3e40d7 SHA512 5d4c5e720bbf2c1aa4e0141d51fa2e804415167b1dd588d94e9c1e1332b9138a15391b190535605f1518868b7727322078bd6a5bbff6c850c868832bc5270e20 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 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.0.ebuild b/dev-util/rustup/rustup-1.27.0.ebuild new file mode 100644 index 000000000000..199a402af72a --- /dev/null +++ b/dev-util/rustup/rustup-1.27.0.ebuild @@ -0,0 +1,98 @@ +# 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} + 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}" +BDEPEND="virtual/rust" + +# rust does not use *FLAGS from make.conf, silence portage warning +QA_FLAGS_IGNORED="usr/bin/${PN}" + +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" +}