Skip to content

Conversation

Keruspe
Copy link
Contributor

@Keruspe Keruspe commented Feb 17, 2018

This fixes zsh completion install when $datadir != $prefix/share

@rust-highfive
Copy link
Contributor

r? @alexcrichton

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

@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 17, 2018

📌 Commit a6f9f1e has been approved by Mark-Simulacrum

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 17, 2018
@Keruspe
Copy link
Contributor Author

Keruspe commented Feb 19, 2018

Btw, would this be a good candidate for a beta backport?

@Mark-Simulacrum
Copy link
Member

I think probably no since it's not really fixing any regressions in beta, and doesn't seem like a critical patch. This is strictly a "new" bug so to speak, right? Not something we regressed on?

@Keruspe
Copy link
Contributor Author

Keruspe commented Feb 20, 2018

It kind of is as I got to that because I needed to change the prefix because of the removal of relative_libdir. But I totally get how that's non critical and I'm fine with keeping a workaround downstream for the time being

@Mark-Simulacrum
Copy link
Member

Oh, in that case, yes, this seems like a viable candidate for a backport. The change is relatively small anyway. I've nominated.

@Mark-Simulacrum Mark-Simulacrum added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Feb 20, 2018
@ishitatsuyuki
Copy link
Contributor

This can be rolled up.

@Mark-Simulacrum
Copy link
Member

This changes Cargo.lock which is somewhat likely to cause conflicts so I'd prefer to not roll it up.

@alexcrichton alexcrichton added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Feb 27, 2018
@bors
Copy link
Collaborator

bors commented Mar 1, 2018

☔ The latest upstream changes (presumably #48349) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 1, 2018
@Keruspe
Copy link
Contributor Author

Keruspe commented Mar 1, 2018

Rebased on top of current master

@Keruspe
Copy link
Contributor Author

Keruspe commented Mar 1, 2018

@alexcrichton while at it, do you want me to pull in your compression change from rust-installer in the first commit?

@alexcrichton
Copy link
Member

@bors: r+

Sure yeah feel free, but no worries if it happens later!

@bors
Copy link
Collaborator

bors commented Mar 1, 2018

📌 Commit a989ee9 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 1, 2018
@bors
Copy link
Collaborator

bors commented Mar 8, 2018

☔ The latest upstream changes (presumably #48806) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 8, 2018
Signed-off-by: Marc-Antoine Perennou <[email protected]>
@Keruspe
Copy link
Contributor Author

Keruspe commented Mar 8, 2018

I guess this can be rolled up now

@bors
Copy link
Collaborator

bors commented Mar 11, 2018

⌛ Testing commit d14f07e with merge aaaefd7e01a15a8e9846e4d4bdad365d3460241c...

@bors
Copy link
Collaborator

bors commented Mar 11, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 11, 2018
@kennytm
Copy link
Member

kennytm commented Mar 11, 2018

@bors retry rollup-

Failed on 32-bit macOS. Seems like a spurious error.

Removed rollup marker, in order to unblock the beta backport. Creating a rollup including this PR is still welcome.

[01:29:46] failures:
[01:29:46] 
[01:29:46] ---- [run-make] run-make/reproducible-build stdout ----
[01:29:46] 	
[01:29:46] error: make failed
[01:29:46] status: exit code: 2
[01:29:46] command: "make"
[01:29:46] stdout:
[01:29:46] ------------------------------------------
[01:29:46] rm -rf /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin && mkdir /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin
[01:29:46] rm -rf /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin && mkdir /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin
[01:29:46] DYLD_LIBRARY_PATH="/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin:/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/lib:" '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/bin/rustc' --out-dir /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin -L /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin  linker.rs -O
[01:29:46] DYLD_LIBRARY_PATH="/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin:/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/lib:" '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/bin/rustc' --out-dir /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin -L /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin  reproducible-build-aux.rs
[01:29:46] DYLD_LIBRARY_PATH="/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin:/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/lib:" '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/bin/rustc' --out-dir /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin -L /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin  reproducible-build.rs -C linker=/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin/linker
[01:29:46] DYLD_LIBRARY_PATH="/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin:/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/lib:" '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/stage2/bin/rustc' --out-dir /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin -L /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin  reproducible-build.rs -C linker=/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin/linker
[01:29:46] diff -u "/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin/linker-arguments1" "/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin/linker-arguments2"
[01:29:46] 
[01:29:46] ------------------------------------------
[01:29:46] stderr:
[01:29:46] ------------------------------------------
[01:29:46] mkdir: /Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/run-make/reproducible-build.stage2-i686-apple-darwin: File exists
[01:29:46] make[1]: *** [debug] Error 1
[01:29:46] make[1]: *** Waiting for unfinished jobs....
[01:29:46] 
[01:29:46] ------------------------------------------
[01:29:46] 
[01:29:46] thread '[run-make] run-make/reproducible-build' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2893:9
[01:29:46] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:29:46] 
[01:29:46] 
[01:29:46] failures:
[01:29:46]     [run-make] run-make/reproducible-build
[01:29:46] 
[01:29:46] test result: �[31mFAILED�(B�[m. 176 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 11, 2018
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 11, 2018
When executing run-make tests we run a risk of leaking the `MAKEFLAGS`
environment variable if `./x.py` itself was called from `make` (aka `make check
-j3` as the OSX bots do). We may then leak accidentally fds into the child
process and trick it into thinking it's got a jobserver!

Hopefully addresses [this] spurious failure

[this]: rust-lang#48295 (comment)
@bors
Copy link
Collaborator

bors commented Mar 11, 2018

⌛ Testing commit d14f07e with merge ae22d0ebabc99183fbba992f1c50a4412002597a...

@bors
Copy link
Collaborator

bors commented Mar 12, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 12, 2018
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Mar 12, 2018
…ennytm

test: Forcibly remove MAKEFLAGS in compiletest

When executing run-make tests we run a risk of leaking the `MAKEFLAGS`
environment variable if `./x.py` itself was called from `make` (aka `make check
-j3` as the OSX bots do). We may then leak accidentally fds into the child
process and trick it into thinking it's got a jobserver!

Hopefully addresses [this] spurious failure

[this]: rust-lang#48295 (comment)
@alexcrichton
Copy link
Member

@bors: retry

hopefully fixed by #48938

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 12, 2018
bors added a commit that referenced this pull request Mar 12, 2018
test: Forcibly remove MAKEFLAGS in compiletest

When executing run-make tests we run a risk of leaking the `MAKEFLAGS`
environment variable if `./x.py` itself was called from `make` (aka `make check
-j3` as the OSX bots do). We may then leak accidentally fds into the child
process and trick it into thinking it's got a jobserver!

Hopefully addresses [this] spurious failure

[this]: #48295 (comment)
@bors
Copy link
Collaborator

bors commented Mar 12, 2018

⌛ Testing commit d14f07e with merge 222b0eb...

bors added a commit that referenced this pull request Mar 12, 2018
rustbuild: pass datadir to rust-installer

This fixes zsh completion install when $datadir != $prefix/share
@bors
Copy link
Collaborator

bors commented Mar 12, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 222b0eb to master...

@bors bors merged commit d14f07e into rust-lang:master Mar 12, 2018
@kennytm kennytm removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 12, 2018
bors added a commit that referenced this pull request Mar 13, 2018
[beta] rustbuild: pass datadir to rust-installer

Backport from #48295
djrenren pushed a commit to djrenren/compiletest that referenced this pull request Aug 26, 2019
When executing run-make tests we run a risk of leaking the `MAKEFLAGS`
environment variable if `./x.py` itself was called from `make` (aka `make check
-j3` as the OSX bots do). We may then leak accidentally fds into the child
process and trick it into thinking it's got a jobserver!

Hopefully addresses [this] spurious failure

[this]: rust-lang/rust#48295 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-accepted Accepted for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants