Skip to content
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

install.sh in distribution tarballs does not preserve executable bit #44594

Closed
RalfJung opened this issue Sep 15, 2017 · 3 comments
Closed

install.sh in distribution tarballs does not preserve executable bit #44594

RalfJung opened this issue Sep 15, 2017 · 3 comments

Comments

@RalfJung
Copy link
Member

Steps to reproduce:

  • ./x.py dist
  • cd $SOMEWHERE
  • tar -xzvf $RUSTC/build/dist/rust-src-1.22.0-dev.tar.gz
  • ls -lah rust-src-1.22.dev/rust-src/lib/rustlib/src/rust/src/jemalloc/include/jemalloc/
    Observe how some files here are executable.
  • mkdir foo && ./install.sh --prefix=foo
  • ls -lah foo/lib/rustlib/src/rust/src/jemalloc/include/jemalloc/

Expected behavior

The same files should be executable.

Actual behavior

No file is executable.

It seems rustup blissfully ignores the installer scripts here anyway, because rustup does preserve executable bits. This makes me wonder what the point of these scripts is, anyway...

@RalfJung
Copy link
Member Author

The fix has landed in rust-installer and will arrive here with the next submodule update. (No idea how frequently these are usually done.)

@alexcrichton
Copy link
Member

No submodule is updated on a regular cadence, feel free to send a PR to update it!

@RalfJung
Copy link
Member Author

All right, will do.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Sep 16, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Sep 16, 2017
alexcrichton added a commit to alexcrichton/rust that referenced this issue Sep 17, 2017
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

No branches or pull requests

2 participants