Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: python-cryptography: split python2 package
Date: Mon, 08 Feb 2021 20:39:05 +0100	[thread overview]
Message-ID: <20210208193905.tuU276XxCyg-Dzdk8lH854z9e9YaMkDAhU8ot1z_wD4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28595@inbox.vuxu.org>

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/28595#issuecomment-775393349

Comment:
If `setuptools_rust` upstream rejects the patch to honor RUSTFLAGS in the environment, either we patch anyway or we work around its tendency to overwrite that variable by wrapping `cargo` for cross builds:
```bash
pre_configure() {
	if [ "$CROSS_BUILD" ]; then
		cat > ${XBPS_WRAPPERDIR}/cargo <<-EOF
		#!/bin/bash
		if [[ ! "\$RUSTFLAGS" =~ "--sysroot" ]]; then
		    export RUSTFLAGS="\$RUSTFLAGS --sysroot=${XBPS_CROSS_BASE}/usr"
		fi
		exec /usr/bin/cargo "\$@"
		EOF
		chmod 755 ${XBPS_WRAPPERDIR}/cargo
	fi
}
```

  parent reply	other threads:[~2021-02-08 19:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 19:26 [PR PATCH] " ahesford
2021-02-08 19:37 ` [PR PATCH] [Updated] " ahesford
2021-02-08 19:39 ` ahesford [this message]
2021-02-08 19:39 ` ahesford
2021-02-08 19:39 ` ericonr
2021-02-09  3:28 ` ericonr
2021-02-10 14:56 ` [PR PATCH] [Updated] " ahesford
2021-02-11 14:38 ` ahesford
2021-02-11 14:38 ` [PR PATCH] [Closed]: " ahesford

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=20210208193905.tuU276XxCyg-Dzdk8lH854z9e9YaMkDAhU8ot1z_wD4@z \
    --to=ahesford@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).