Github messages for voidlinux
 help / color / mirror / Atom feed
From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] rustup: generate shell completions for cargo
Date: Wed, 23 Feb 2022 06:37:45 +0100	[thread overview]
Message-ID: <20220223053745.vX8jGqEQvZyFbRLQYmtqTIp9-YeKxWqHSdD-ufJCWEU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35768@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages rustup-cargo-completions
https://github.com/void-linux/void-packages/pull/35768

rustup: generate shell completions for cargo
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35768.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rustup-cargo-completions-35768.patch --]
[-- Type: text/x-diff, Size: 1605 bytes --]

From 37446570eb4bba17bacf18e46572bd4dbeb80c3f Mon Sep 17 00:00:00 2001
From: Marcin Puc <marcin.e.puc@gmail.com>
Date: Tue, 22 Feb 2022 11:49:40 +0100
Subject: [PATCH] rustup: generate shell completions for cargo

---
 srcpkgs/rustup/template | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template
index b55cbe09d868..d16d8fc26f4b 100644
--- a/srcpkgs/rustup/template
+++ b/srcpkgs/rustup/template
@@ -1,7 +1,7 @@
 # Template file for 'rustup'
 pkgname=rustup
 version=1.24.3
-revision=1
+revision=2
 # rustup doesn't recognize this target
 archs="~armv*-musl"
 build_style=cargo
@@ -23,6 +23,12 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 esac
 
+post_patch() {
+	# fix for https://github.com/void-linux/void-packages/issues/34889
+	cargo update --package autocfg:1.0.1 --precise 1.1.0
+	cargo update --package autocfg:0.1.7 --precise 0.1.8
+}
+
 post_build() {
 	RUSTUP="target/${RUST_TARGET}/release/rustup-init"
 	ln -sf "$RUSTUP" rustup
@@ -31,6 +37,10 @@ post_build() {
 	vtargetrun ./rustup completions zsh >rustup.zsh
 	vtargetrun ./rustup completions bash >rustup.bash
 	vtargetrun ./rustup completions fish >rustup.fish
+
+	# generate cargo completions
+	vtargetrun ./rustup completions bash cargo >cargo.bash
+	vtargetrun ./rustup completions zsh cargo >cargo.zsh
 }
 
 do_install() {
@@ -40,6 +50,9 @@ do_install() {
 	vcompletion rustup.fish fish
 	vcompletion rustup.zsh zsh
 
+	vcompletion cargo.bash bash cargo
+	vcompletion cargo.zsh zsh cargo
+
 	vdoc README.md
 	vlicense LICENSE-APACHE
 	vlicense LICENSE-MIT

  parent reply	other threads:[~2022-02-23  5:37 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 11:28 [PR PATCH] " tranzystorek-io
2022-02-22 17:00 ` Duncaen
2022-02-22 17:59 ` tranzystorek-io
2022-02-23  5:37 ` tranzystorek-io [this message]
2022-02-27 13:40 ` [PR PATCH] [Updated] " tranzystorek-io
2022-03-04 15:28 ` tranzystorek-io
2022-03-08 13:49 ` [PR PATCH] [Updated] " tranzystorek-io
2022-03-08 14:21 ` Duncaen
2022-03-08 15:26 ` tranzystorek-io
2022-03-08 16:15 ` Duncaen
2022-03-08 16:23 ` Duncaen
2022-03-08 16:47 ` tranzystorek-io
2022-06-28  2:15 ` [WIP] " github-actions
2022-06-28  5:06 ` [PR PATCH] [Updated] " tranzystorek-io
2022-06-28  5:22 ` tranzystorek-io
2022-07-15  6:00 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-15  6:31 ` tranzystorek-io
2022-07-15  6:46 ` tranzystorek-io
2022-07-15 10:40 ` jcgruenhage
2022-07-17 20:57 ` CameronNemo
2022-07-17 21:14 ` CameronNemo
2022-07-17 21:14 ` CameronNemo
2022-07-18  7:15 ` jcgruenhage
2022-07-18 22:29 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-20 15:27 ` ahesford
2022-07-20 15:34 ` Duncaen
2022-07-20 16:48 ` ahesford
2022-07-20 16:48 ` ahesford
2022-10-19  2:14 ` github-actions
2022-10-19 18:13 ` tranzystorek-io
2022-10-19 18:13 ` [PR PATCH] [Closed]: " tranzystorek-io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220223053745.vX8jGqEQvZyFbRLQYmtqTIp9-YeKxWqHSdD-ufJCWEU@z \
    --to=tranzystorek-io@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).