Skip to content

Conversation

@steveisok
Copy link
Member

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

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
@steveisok
Copy link
Member Author

steveisok commented Jun 24, 2021

Official build where we need to validate the change. AOT Compiler packs are only generated here.

https://dev.azure.com/dnceng/internal/_build/results?buildId=1204648&view=results

@radical
Copy link
Member

radical commented Jun 24, 2021

This specifies the files to be included, IIUC:
<NativeRuntimeAsset Include="$(MonoAotCrossDir)$(TargetCrossRid)\**" TargetPath="tools/" />

Can we get execute permissions from those files, and use that to populate the xml?

@lewing
Copy link
Member

lewing commented Jun 24, 2021

This specifies the files to be included, IIUC:
<NativeRuntimeAsset Include="$(MonoAotCrossDir)$(TargetCrossRid)\**" TargetPath="tools/" />

Can we get execute permissions from those files, and use that to populate the xml?

you could do something like all the files in tools without an extension pretty easily

@radical
Copy link
Member

radical commented Jun 24, 2021

Official build where we need to validate the change. AOT Compiler packs are only generated here.

dev.azure.com/dnceng/internal/_build/results?buildId=1204648&view=results

Will that happen as part of some step there, or do we manually download, and check permissions?

@steveisok
Copy link
Member Author

steveisok commented Jun 24, 2021

Will that happen as part of some step there, or do we manually download, and check permissions?

Has to be manual for now.

@steveisok
Copy link
Member Author

@radical and I validated a sample of the linux and osx packages have the right permissions. Also, the official build completed.

@lewing lewing merged commit 20ff641 into dotnet:main Jun 24, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mono][workload] Cross compiler pack fails to install on browser due to permission setting

3 participants