Skip to content

configure: test $SHELL's permission #30251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2015
Merged

configure: test $SHELL's permission #30251

merged 1 commit into from
Dec 25, 2015

Conversation

nodakai
Copy link
Contributor

@nodakai nodakai commented Dec 7, 2015

On some weird setup where $SHELL is a relative path (can happen under GNU
Screen,) file -L "$BIN_TO_PROBE" fails and $CFG_CPUTYPE is wrongly set to
i686. We should not only check its string value but also permission on
filesystem.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

if [ -r "/usr/bin/env" ]; then
BIN_TO_PROBE="/usr/bin/env"
else
err "Cannot determine if Rust should be built for i686 userland, or x86_64"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't an error before but rather it just went ahead with x86_64 (I think), could that be retained?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually i686 would have been picked up, but anyways, I'll demote err to warn.

On some weird setup where $SHELL is a relative path (can happen under GNU
Screen,) `file -L "$BIN_TO_PROBE"` fails and $CFG_CPUTYPE is wrongly set to
i686.  We should not only check its string value but also permission on
filesystem.
@pnkfelix
Copy link
Member

@bors r+ 00e6667 rollup

@bors
Copy link
Collaborator

bors commented Dec 22, 2015

⌛ Testing commit 00e6667 with merge b4d3b6e...

@alexcrichton
Copy link
Member

@bors: retry force

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Dec 23, 2015
On some weird setup where $SHELL is a relative path (can happen under GNU
Screen,) `file -L "$BIN_TO_PROBE"` fails and $CFG_CPUTYPE is wrongly set to
i686.  We should not only check its string value but also permission on
filesystem.
bors added a commit that referenced this pull request Dec 25, 2015
@bors bors merged commit 00e6667 into rust-lang:master Dec 25, 2015
@nodakai nodakai deleted the patch-1 branch December 25, 2015 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants