runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Incorrect PKG_RID selected during cross-build of corehost

Open hqueue opened this issue 9 years ago • 1 comments

Steps to reproduce

Host: Ubuntu 14.04 x64

./build.sh --env-vars TARGETPLATFORM=arm,TARGETRID=ubuntu.16.04-arm,CROSS=1

Expected behavior

Build script correctly invoke cmake with -DCLI_CMAKE_PKG_RID:STRING=ubuntu.16.04-arm

Actual behavior

cmake is invoked with -DCLI_CMAKE_PKG_RID:STRING=ubuntu.14.04-arm

Reason

In the src/corehost/build.sh(https://github.com/dotnet/core-setup/blob/master/src/corehost/build.sh#L7), -DCLI_CMAKE_PKG_RID is defined using host machine RID even when cross building.

Proposed solution

Use RID of rootfs for -DCLI_CMAKE_PKG_RID instead of host machine RID.

hqueue avatar Dec 16 '16 08:12 hqueue

Closing this issue, since PR dotnet/core-setup#812 is merged.

hqueue avatar Dec 19 '16 04:12 hqueue