Skip to content

Commit

Permalink
dotnet-sdk: add missing deps and patch to make linker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
TinfoilSubmarine committed Sep 7, 2021
1 parent 6ce775f commit cce7e1f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
23 changes: 23 additions & 0 deletions srcpkgs/dotnet-sdk/files/9999-runtime-link-order.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/src/installer/corehost/cli/apphost/static/CMakeLists.txt b/src/installer/corehost/cli/apphost/static/CMakeLists.txt
index a9d5b04..653b356 100644
--- a/src/installer/corehost/cli/apphost/static/CMakeLists.txt
+++ b/src/installer/corehost/cli/apphost/static/CMakeLists.txt
@@ -212,14 +212,14 @@ target_link_libraries(
libhostcommon
${CORECLR_LIBRARIES}

- ${ZLIB_LIBRARIES}
- ${LIBGSS}
- ${NATIVE_LIBS_EXTRA}
-
${START_WHOLE_ARCHIVE}
${RUNTIMEINFO_LIB}
${NATIVE_LIBS}
${END_WHOLE_ARCHIVE}
+
+ ${ZLIB_LIBRARIES}
+ ${LIBGSS}
+ ${NATIVE_LIBS_EXTRA}
)

if(NOT FEATURE_DISTRO_AGNOSTIC_SSL)
12 changes: 7 additions & 5 deletions srcpkgs/dotnet-sdk/template
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Template file for 'dotnet-sdk'
pkgname=dotnet-sdk
version=5.0.202
version=5.0.206.1
revision=1
wrksrc="source-build-${version}-SDK"
hostmakedepends="git tar wget"
makedepends="icu-devel"
hostmakedepends="git tar wget python3 cmake clang llvm"
makedepends="icu-devel libunwind-devel lttng-ust-devel zlib-devel mit-krb5-devel"
short_desc="SDK for making dotnet CORE apps"
maintainer="KawaiiAmber <japaneselearning101@gmail.com>"
license="MIT"
homepage="https://dotnet.microsoft.com"
distfiles="https://github.com/dotnet/source-build/archive/refs/tags/v${version}-SDK.tar.gz"
checksum=aea8e4f3323aa95316969958585ccc7030f9be7c79d38188a9137ef789ada7cd
checksum=e531ac5ea818b0c10e945922ee761a0a33ec2389fa112721ea3e1c405461a0de

_prof=${DESTDIR}/etc/profile.d
_target=${DESTDIR}/usr/libexec/dotnet
Expand All @@ -22,8 +22,10 @@ esac
_RUNTIME_ID="void-${_ARCHITECTURE}"

do_configure() {
cp "${FILESDIR}"/9999-runtime-link-order.patch patches/runtime/

vmkdir ${_prof}
vcopy ${FILESDIR}/dotnet.sh ${_prof}
vcopy "${FILESDIR}"/dotnet.sh "${_prof}"
}

do_build() {
Expand Down

0 comments on commit cce7e1f

Please sign in to comment.