Don't modify apphost hardcoded path

Instead, rely on the path being set through
/etc/dotnet/install_location. For more details, see
https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md
This commit is contained in:
Omair Majid 2023-12-12 15:15:45 -05:00
parent 55ce24fc53
commit e0cb209bff

View File

@ -429,9 +429,6 @@ popd
%autopatch -p1 -M 999 %autopatch -p1 -M 999
# Fix bad hardcoded path in build
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/runtime/src/native/corehost/hostmisc/pal.unix.cpp
%if ! %{use_bundled_libunwind} %if ! %{use_bundled_libunwind}
sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props
%endif %endif