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

Add UnixFilePermissions.xml for Mono AOT compilers #54501

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

directhex
Copy link
Contributor

As is, mono-aot-cross files installed to a system location via workloads are not executable by the end user:

-rwxr--r--  1 root  wheel    11M Jun  1 14:33 /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm/6.0.0-preview.5.21301.5/tools/mono-aot-cross

Ref: #53545
Ref: dotnet/sdk#16894
Ref: xamarin/xamarin-macios#11869
Ref: dotnet/android#6010

Copy link
Member

@radical radical left a comment

Choose a reason for hiding this comment

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

Other than the .exe comment, LGTM!

@rolfbjarne
Copy link
Member

Does this have to be back ported to P6?

directhex added a commit to directhex/emsdk that referenced this pull request Jun 21, 2021
…ot executable by the end user:

```
-rwxr--r--  1 root  wheel   106K May 31 07:30 /usr/local/share/dotnet/packs/Microsoft.NET.Runtime.Emscripten.2.0.12.Sdk.osx-x64/6.0.0-preview.5.21281.1/tools/bin/llc
```

Ref: dotnet/runtime#54501
Ref: dotnet/runtime#53545
Ref: dotnet/sdk#16894
Ref: xamarin/xamarin-macios#11869
Ref: dotnet/android#6010
@directhex directhex merged commit d08c08d into dotnet:main Jun 21, 2021
@directhex
Copy link
Contributor Author

@rolfbjarne good question. I think the answer is "yes", the supporting changes in dotnet/sdk are in P6

steveisok pushed a commit to steveisok/runtime that referenced this pull request Jun 24, 2021
We introduced Microsoft.NETCore.App.MonoCrossAOT.UnixFilePermissions.xml in dotnet#54501 to make sure the right permissions are set when installing AOT compiler workload packs.  We hardcoded the list to include mono-aot-cross, llc, and opt.  However, in wasm's case they only have mono-aot-cross.

This change makes the xml file a template and only includes mono-aot-cross for browser and all three for the other configurations.

Fixes dotnet#54612
lewing pushed a commit that referenced this pull request Jun 24, 2021
* Fix MonoCrossAOT.UnixFilePermissions for wasm

We introduced Microsoft.NETCore.App.MonoCrossAOT.UnixFilePermissions.xml in #54501 to make sure the right permissions are set when installing AOT compiler workload packs.  We hardcoded the list to include mono-aot-cross, llc, and opt.  However, in wasm's case they only have mono-aot-cross.

This change makes the xml file a template and only includes mono-aot-cross for browser and all three for the other configurations.

Fixes #54612

* Use property instead of item for the file nodes

* Ankit suggestion

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants