summaryrefslogtreecommitdiff
path: root/dev-dotnet/dotnet-sdk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-31 06:31:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-31 06:31:03 +0000
commit2e36bcecf24a3f583ae8f27b71ba13b3cfd39778 (patch)
treef2362fa4c0f61f631c2b7a484fb90b8283618656 /dev-dotnet/dotnet-sdk
parent7d7cc3f0fa58454952dec67b110b41d503bca422 (diff)
gentoo auto-resync : 31:12:2024 - 06:31:02
Diffstat (limited to 'dev-dotnet/dotnet-sdk')
-rw-r--r--dev-dotnet/dotnet-sdk/Manifest2
-rw-r--r--dev-dotnet/dotnet-sdk/dotnet-sdk-9.0.101.ebuild25
2 files changed, 25 insertions, 2 deletions
diff --git a/dev-dotnet/dotnet-sdk/Manifest b/dev-dotnet/dotnet-sdk/Manifest
index 3708b154aaab..676ac438720d 100644
--- a/dev-dotnet/dotnet-sdk/Manifest
+++ b/dev-dotnet/dotnet-sdk/Manifest
@@ -3,5 +3,5 @@ DIST dotnet-sdk-8.0.107-prepared-gentoo-musl-amd64.tar.xz 1785364676 BLAKE2B 507
DIST dotnet-sdk-9.0.101-prepared-gentoo-glibc-amd64.tar.xz 1915948468 BLAKE2B c8acdbbec22b993e1f9a1081c610c9e35cc757cdc611a99bdacab6566b1fc47a50bdac76aba953b255b669fbe740eeff25f9e572a4997482d9b553e830e4f429 SHA512 bf3b3e624bf54b3d57b042f30be2b21a22abf8433036cf32e7acbb2df05fa4119066dff6cc5d3c85efcd9bb553e81c07d11c6b09e10bc4027ceff3f8d48b2fdd
DIST dotnet-sdk-9.0.101-prepared-gentoo-musl-amd64.tar.xz 1914093068 BLAKE2B c5cb3ee695dd8e278c7688943befb98858f631f175fda9d49514a86f590594ebc9e86f0a6a6614a4c54f696da084f6bf9f96cbcad00745a14bbfa563525f71c8 SHA512 acbb21d34cfaa366b8ad17d4d7451828439f2798d3ceec5d6f5c4117418f1258ffafcef7f1eb4f53882126516248b8536a723db314b7f9a916e298a9eed43c59
EBUILD dotnet-sdk-8.0.107-r2.ebuild 6120 BLAKE2B 7780f37bcf5f1eda79e9aaeb7a5ef73e682ad981c4e212a51d63bc86fed1fe8a5eda3a0548240b1d28f9955c64ddf672aba5f1052deeba2c257e50fcb87ebd38 SHA512 976fca7f25b9b93a4beacf49d6647aff2aeecb58f543540d3221a15d8874f18c4c8c013dcbfab94bbcbbd7acd1aabff8c142e84ef6082c3766cc122b86a946aa
-EBUILD dotnet-sdk-9.0.101.ebuild 6902 BLAKE2B 316030b94c3bd58be0b99eadac32e859d3415a6269aee952d04da0fa7a8f2a800a13caf5723870f1848bfc1c42f6f9c2d597fa92ff1b10cb16c2660b73399fd0 SHA512 04009d974ea75a102ab735d0b286d5ad8fd1d7e67b1b2c14379cfb099ca3591f46a392c800bf0b15281dce20231dc5f8f81a497c44551b312569ca41f630ba0a
+EBUILD dotnet-sdk-9.0.101.ebuild 7713 BLAKE2B b22759779552d13e91e2b60f0fda62dd371d9c062ce4e476c3e52b0caea6c22dd70b2a060d56e0333839b846fa58513a2713fab18afd968c27cb036095575202 SHA512 ce1d4345818d0abced2e3c97765884ff92d9aa63031669505b0e3c1aa55ac2a057032796bea2db2c0b34913a50855e68f2f8e3d2fc7d2ce2b35401e7ef633c4a
MISC metadata.xml 518 BLAKE2B f9733bd3b6b343126c400ce35dc7e4e57421a6643219341c4beab83d47beb1182306f3d0c5f1e7ff0854fd49818b2c6af37598170b88e2eb82b62d478735abf0 SHA512 940830b1208c39e4cfd72817d399156b027e5ac51dcc7bb983c9ec973f8f2ef76e440a2d358d15f7a2e185c42ae98c986210224f1477923967e3dc70eb0cfde9
diff --git a/dev-dotnet/dotnet-sdk/dotnet-sdk-9.0.101.ebuild b/dev-dotnet/dotnet-sdk/dotnet-sdk-9.0.101.ebuild
index 90916c287cff..d5bce67a8124 100644
--- a/dev-dotnet/dotnet-sdk/dotnet-sdk-9.0.101.ebuild
+++ b/dev-dotnet/dotnet-sdk/dotnet-sdk-9.0.101.ebuild
@@ -85,6 +85,7 @@ BDEPEND="
dev-vcs/git
$(llvm_gen_dep '
llvm-core/clang:${LLVM_SLOT}
+ llvm-core/lld:${LLVM_SLOT}
llvm-core/llvm:${LLVM_SLOT}
')
"
@@ -177,9 +178,13 @@ src_prepare() {
filter-flags -Wlto-type-mismatch
filter-lto
+ local llvm_prefix="$(get_llvm_prefix -b)"
+ export CC="${llvm_prefix}/bin/clang-${LLVM_SLOT}"
+ export CXX="${llvm_prefix}/bin/clang++-${LLVM_SLOT}"
+ export LD="${llvm_prefix}/bin/lld"
+
unset DOTNET_ROOT
unset NUGET_PACKAGES
-
unset CLR_ICU_VERSION_OVERRIDE
unset USER_CLR_ICU_VERSION_OVERRIDE
@@ -209,6 +214,20 @@ src_prepare() {
echo "$(makeopts_jobs)"
EOF
chmod +x "${fake_bin}/nproc" || die
+
+ # Overwrite "init-compiler" scripts.
+ # TODO: Consider - this probably overshadows CCache.
+ cat <<EOF > ./init-compiler.sh || die
+export CC="${CC}"
+export CXX="${CXX}"
+export LDFLAGS="${LDFLAGS} -fuse-ld=lld"
+export SCAN_BUILD_COMMAND="scan-build"
+EOF
+ local init_compiler=""
+ for init_compiler in diagnostics runtime ; do
+ mv "./src/${init_compiler}/eng/common/native/init-compiler.sh"{,.orig} || die
+ cp ./init-compiler.sh "./src/${init_compiler}/eng/common/native/" || die
+ done
}
src_compile() {
@@ -220,6 +239,10 @@ src_compile() {
ewarn "Failed to remove ${package_versions_path}, build may fail!"
fi
+ local -x EXTRA_CFLAGS="${CFLAGS}"
+ local -x EXTRA_CXXFLAGS="${CXXFLAGS}"
+ local -x EXTRA_LDFLAGS="${LDFLAGS}"
+
# The "source_repository" should always be the same.
local source_repository="https://github.com/dotnet/dotnet"
local verbosity="${GENTOO_DOTNET_BUILD_VERBOSITY:-minimal}"