From: travankor <travankor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] cargo.sh: don't hardcode the path.
Date: Tue, 07 Apr 2020 08:46:12 +0200 [thread overview]
Message-ID: <20200407064612.vyKuRtpucfLRDO8EIhaGUU-o8CtE2hfCVgjiikSxNh8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20691@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
There is an updated pull request by travankor against master on the void-packages repository
https://github.com/travankor/void-packages rust
https://github.com/void-linux/void-packages/pull/20691
cargo.sh: don't hardcode the path.
A patch file from https://github.com/void-linux/void-packages/pull/20691.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rust-20691.patch --]
[-- Type: text/x-diff, Size: 939 bytes --]
From e9cdbdda402d08169c23b665d3dd4c471f5b8f33 Mon Sep 17 00:00:00 2001
From: travankor <travankor@tuta.io>
Date: Mon, 6 Apr 2020 00:38:29 -0700
Subject: [PATCH] cargo.sh: don't hardcode the path.
Clean up the cargo remnants in the post install phase.
---
common/build-style/cargo.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 0257a633929..3be4791bf71 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -16,9 +16,13 @@ do_check() {
do_install() {
: ${make_cmd:=cargo}
+ : ${make_install_args:=--path .}
- ${make_cmd} install --path . --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
+ ${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--locked ${configure_args} ${make_install_args}
+}
+
+post_install() {
rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json
}
next prev parent reply other threads:[~2020-04-07 6:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-06 7:39 [PR PATCH] " travankor
2020-04-07 6:46 ` travankor [this message]
2020-04-07 19:25 ` [PR PATCH] [Merged]: " Hoshpak
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=20200407064612.vyKuRtpucfLRDO8EIhaGUU-o8CtE2hfCVgjiikSxNh8@z \
--to=travankor@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).