commit: 7493db627130babae26bd4b5a691a76bc478737a
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 13 13:15:03 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Apr 13 15:14:06 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7493db62
dev-dotnet/dotnet-sdk-bin: bump to 9.0.105
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
dev-dotnet/dotnet-sdk-bin/Manifest | 6 +
.../dotnet-sdk-bin/dotnet-sdk-bin-9.0.105.ebuild | 171 +++++++++++++++++++++
2 files changed, 177 insertions(+)
diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest
b/dev-dotnet/dotnet-sdk-bin/Manifest
index 44eb5b214b92..877468a33c5f 100644
--- a/dev-dotnet/dotnet-sdk-bin/Manifest
+++ b/dev-dotnet/dotnet-sdk-bin/Manifest
@@ -34,3 +34,9 @@ DIST dotnet-sdk-9.0.102-linux-musl-arm.tar.gz 205458058
BLAKE2B d6db6f5725a3fb7e
DIST dotnet-sdk-9.0.102-linux-musl-arm64.tar.gz 205773161 BLAKE2B
0a939d986d15dbc215785529faef8aaca045026469e4cc5ead736cdb764e67882e91b08626d33452ecbd0c95f7834574c9d2685a34c3de491b8b4c96e9e53b8f
SHA512
5da98e46c280e21c3734a0c9081e7ddb78ad62775a51a129b42a6f021330d263a875da2f44a7aafe8156e7c9ae0f9bb21b502057692b360f2afe0882f0e61132
DIST dotnet-sdk-9.0.102-linux-musl-x64.tar.gz 210712549 BLAKE2B
b9eaed3f609a75704e8707b69643b0539e2d10ecd69443f8e6feb6197315fe993de8c14a2543f58ac64c91480e0acff2e20647f7dacc46c830d12b517dbd4663
SHA512
60e091854d17da9a6011569f0a4819eac72ce6fe06d01757feeb83ad56c17645fa438257631ecbbf6ee94ac3a973eff9ad4d3e12deadda3eb41c1b69ca8d5308
DIST dotnet-sdk-9.0.102-linux-x64.tar.gz 210604728 BLAKE2B
fb95b1694a2e54bb05f323d546c4077b8e574ba39ffe8b3bdf33d72fa6e45b2dd13d38eb52b08ddcf1fe143fa596a3ca1647b980f8de7e43fea316b8b6eca1a7
SHA512
f093507ef635c3f8e572bf7b6ea7e144b85ccf6b7c6f914d3f182f782200a6088728663df5c9abe0638c9bd273fde3769ec824a6516f5fce734c4a4664ce3099
+DIST dotnet-sdk-9.0.105-linux-arm.tar.gz 206126024 BLAKE2B
0971c8873cffdc69ccec29146465b95c742fa9ef8f536da9be7e0c99b079ee92e3f312d7d3661e37117405a3fa361d9220b952da2fc2df8cb9d278d726804ad9
SHA512
904aedeeb9a4ec89d5a6a9e5c5c060f20b9ad9a2e67b01c6f10bafcf75b333e797827ae55c3e0f2f3df3f1a7265eb31bd678a8674bb467d71e87cfb1e060c331
+DIST dotnet-sdk-9.0.105-linux-arm64.tar.gz 206392848 BLAKE2B
3564245bfe22b2477b76e499d840c6b0cd18f50a6d4dadd3b8ec42a0353c7e9870d6c1905fa5f2acf2783cc729cae032bd227351d9f07ada4afee850fb26f58a
SHA512
6e184a6bf7f6b6800996f34976fe83ce0891710a95407221cdf53df7185f21dce9893efafc8cf1e7104f05a02ac55fe21aec3b1b6d161d7b7e086d729458056f
+DIST dotnet-sdk-9.0.105-linux-musl-arm.tar.gz 206143965 BLAKE2B
958b14852dba2af83cacf4c58604f4a6224f01f4e92716265477a688c19878b407ed775c871627181fa06c2cd835ec0f6d15c42bee148a1bfb609b453740117d
SHA512
6e6cb0b8fdc71ef3945c1734bc85d31a961c0492856a762802f1a5af43590a898f92f717e8df29f0b585debe7e13afa11ed482b611821116c0513a246f239bd4
+DIST dotnet-sdk-9.0.105-linux-musl-arm64.tar.gz 206292427 BLAKE2B
682c28369d25a6371a5a3b8433b496f88d768fbc9b480e6723942592fad0d481a95b6e2d613b718214178442a43bb2beccd54c70d0b273bb6370a5f6104fbdbc
SHA512
e22b57ffca4b5b17a97902e8cfa81be3bc9575e9762765b2f93c9e7f156f9a888c76f7961e0f8942080076ccac25cfecf17138e016a45758a4ffd8c5d7f21651
+DIST dotnet-sdk-9.0.105-linux-musl-x64.tar.gz 211211151 BLAKE2B
acae8028bf151fcf75197d9a2d910dc74a2f77fa40c08a7a3c5d23035e1537fc768bf0312aaf02b5549cc947bc6d2b175a771d1006dc4c89adddf736b09351d9
SHA512
71291709bc0defc461f291d96f57f0626540c7723d82d300d1401d7a3fcd150b6ce78ed4b4b2996b1c4688deb2f75ddb0fd2b0ef221ab3d56bc2cf8e852c7de7
+DIST dotnet-sdk-9.0.105-linux-x64.tar.gz 211139177 BLAKE2B
f2b85f5c75e7dd080609f7a7676195807012f94b24f8669f0f4fbb3f24580893e1aded2b05f95bd07ed7b3afe1753e03839dd94c8166fa4bc76afcfb28b2528b
SHA512
f795bb35f432b71f940eb62bfa4ca3df5d708f497467ae16a67d2d19817a8f7e8cf5e6faa791412eb0da017be59ff93a2ad723675b3f3152f39bff64d545f4c0
diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.105.ebuild
b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.105.ebuild
new file mode 100644
index 000000000000..8054637cd5dc
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.105.ebuild
@@ -0,0 +1,171 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+SDK_SLOT="$(ver_cut 1-2)"
+RUNTIME_SLOT="${SDK_SLOT}.4"
+
+DESCRIPTION=".NET is a free, cross-platform, open-source developer platform"
+HOMEPAGE="https://dotnet.microsoft.com/
+ https://github.com/dotnet/dotnet/"
+SRC_URI="
+amd64? (
+ elibc_glibc? (
+
https://builds.dotnet.microsoft.com/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz
+ )
+ elibc_musl? (
+
https://builds.dotnet.microsoft.com/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz
+ )
+)
+arm? (
+ elibc_glibc? (
+
https://builds.dotnet.microsoft.com/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz
+ )
+ elibc_musl? (
+
https://builds.dotnet.microsoft.com/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz
+ )
+)
+arm64? (
+ elibc_glibc? (
+
https://builds.dotnet.microsoft.com/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz
+ )
+ elibc_musl? (
+
https://builds.dotnet.microsoft.com/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz
+ )
+)
+"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="${SDK_SLOT}/${RUNTIME_SLOT}"
+# See bug https://bugs.gentoo.org/932377
+KEYWORDS="~amd64 ~arm ~arm64"
+
+# STRIP="llvm-strip" corrupts some executables when using the patchelf hack,
+# bug https://bugs.gentoo.org/923430
+RESTRICT="splitdebug strip"
+
+CURRENT_NUGETS_DEPEND="
+ ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT}
+"
+EXTRA_NUGETS_DEPEND="
+ ~dev-dotnet/dotnet-runtime-nugets-6.0.36
+ ~dev-dotnet/dotnet-runtime-nugets-7.0.20
+ ~dev-dotnet/dotnet-runtime-nugets-8.0.15
+"
+NUGETS_DEPEND="
+ ${CURRENT_NUGETS_DEPEND}
+ ${EXTRA_NUGETS_DEPEND}
+"
+
+RDEPEND="
+ app-crypt/mit-krb5:0/0
+ dev-libs/icu
+ dev-util/lttng-ust:0/2.12
+ sys-libs/zlib:0/1
+"
+BDEPEND="
+ dev-util/patchelf
+"
+IDEPEND="
+ app-eselect/eselect-dotnet
+"
+PDEPEND="
+ ${NUGETS_DEPEND}
+"
+
+QA_PREBUILT="*"
+
+MUSL_BAD_LINKS=(
+ apphost
+ createdump
+ dotnet
+ libSystem.Globalization.Native.so
+ libSystem.IO.Compression.Native.so
+ libSystem.Native.so
+ libSystem.Net.Security.Native.so
+ libSystem.Security.Cryptography.Native.OpenSsl.so
+ libclrgc.so
+ libclrjit.so
+ libcoreclr.so
+ libcoreclrtraceptprovider.so
+ libdbgshim.so
+ libhostfxr.so
+ libhostpolicy.so
+ libmscordaccore.so
+ libmscordbi.so
+ libnethost.so
+ singlefilehost
+)
+MUSL_BAD_SONAMES=(
+ libc.musl-aarch64.so.1
+ libc.musl-armv7.so.1
+ libc.musl-x86_64.so.1
+)
+
+src_prepare() {
+ default
+
+ # Fix musl libc SONAME links, bug https://bugs.gentoo.org/894760
+ if use elibc_musl ; then
+ local musl_bad_link
+ local musl_bad_link_path
+ local musl_bad_soname
+
+ for musl_bad_link in "${MUSL_BAD_LINKS[@]}" ; do
+ while read -r musl_bad_link_path ; do
+ # Skip if file either does not end with ".so"
or is not executable.
+ # Using "case" here for easier matching in case
we have to add
+ # a special exception.
+ case "${musl_bad_link_path}" in
+ *.so )
+ :
+ ;;
+ * )
+ if [[ ! -x
"${musl_bad_link_path}" ]] ; then
+ continue
+ fi
+ ;;
+ esac
+
+ einfo "Fixing musl libc link for
${musl_bad_link_path}"
+
+ for musl_bad_soname in "${MUSL_BAD_SONAMES[@]}"
; do
+ patchelf --remove-needed
"${musl_bad_soname}" "${musl_bad_link_path}" || die
+ done
+
+ patchelf --add-needed libc.so
"${musl_bad_link_path}" || die
+ done < <(find . -type f -name "${musl_bad_link}")
+ done
+ fi
+
+ # Remove static libraries, bug https://bugs.gentoo.org/825774
+ find ./packs -type f -name "libnethost.a" -delete || die
+}
+
+src_install() {
+ local dest="opt/${PN}-${SDK_SLOT}"
+ dodir "${dest%/*}"
+
+ # Create a magic workloads file, bug #841896
+ local featureband="$(( $(ver_cut 3) / 100 * 100 ))" # e.g. 404 ->
400
+ local workloads="metadata/workloads/${SDK_SLOT}.${featureband}"
+
+ mkdir -p "${S}/${workloads}" || die
+ touch "${S}/${workloads}/userlocal" || die
+
+ mv "${S}" "${ED}/${dest}" || die
+ mkdir "${S}" || die
+
+ fperms 0755 "/${dest}"
+ dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SDK_SLOT}"
+}
+
+pkg_postinst() {
+ eselect dotnet update ifunset
+}
+
+pkg_postrm() {
+ eselect dotnet update ifunset
+}