commit: 20d859e077ac15383c168bc1f74e736c540a2453
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 2 15:15:02 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Jun 2 18:13:36 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d859e0
dev-dotnet/dotnet-sdk-bin: bump to 9.0.300
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
dev-dotnet/dotnet-sdk-bin/Manifest | 6 +
.../dotnet-sdk-bin/dotnet-sdk-bin-9.0.300.ebuild | 172 +++++++++++++++++++++
2 files changed, 178 insertions(+)
diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest
b/dev-dotnet/dotnet-sdk-bin/Manifest
index 5a6155d23d9e..775d2cdb6848 100644
--- a/dev-dotnet/dotnet-sdk-bin/Manifest
+++ b/dev-dotnet/dotnet-sdk-bin/Manifest
@@ -34,3 +34,9 @@ DIST dotnet-sdk-9.0.106-linux-musl-arm.tar.gz 206081948
BLAKE2B 26aedb507254da4e
DIST dotnet-sdk-9.0.106-linux-musl-arm64.tar.gz 206417236 BLAKE2B
7500c02b42a4cb34f7a709398052551b12bb59b862640b6fd2c6c9f737727d9b19e3572ecca7763d21bf012182bd68417f69c9dbc155a279a05c928954683db1
SHA512
834d136255e2c220e7c0327bc47e89326b57e0352b6ab01abba073cbda4d4d2933cbc6ae4440f2b9911a52ad5d05bc0f7ffb36e790f9ea4561567dd3e22bd514
DIST dotnet-sdk-9.0.106-linux-musl-x64.tar.gz 211400426 BLAKE2B
df6c058da7829732e2c4a013aa382393e17e23e759973cb9ededa56157f32ff33c9814864201727dfb7ad034a46448eba0650843c9fad41967b414891b99f202
SHA512
28f5adaedca5dfb1c0125c323789485c972591a65cbd518fb5d951d73131de1e7a92ff09713622788d02acf78906fa7412538c6c7e9b3c4bf6715f6495ff826c
DIST dotnet-sdk-9.0.106-linux-x64.tar.gz 211203936 BLAKE2B
c87e80eadcf56e566cde136f520a458a1549ab4d1071e431f8c769db0ac5b330afa93db10a6a7a537d80a1b351f089281502cb712dd515491b281c0654069b26
SHA512
f977c90a5e56c3db7b7d4e23844cdb496ee966bd31ad63f8b84363a7eff28a3fb14109350381bd836ddbc67d6750f3f7dd55471e4c5d00b0214341741856fb2d
+DIST dotnet-sdk-9.0.300-linux-arm.tar.gz 212625737 BLAKE2B
deeb334bb88f192c0e036cb70127a13b1ff6b359dcb1a272b303a57bbd534b333b404bbb2c4dd97ba5f5dfc2e801bea7eed4a713f13bfee1c68964b26fdd29d5
SHA512
ca20957d3f4a09bffb86bb21b1379ff19bc62907b50d37090bb705f28064b064131aa01ca4328a29ac66365ee5539fd3152efe79c61294ad7958b19e6114d4de
+DIST dotnet-sdk-9.0.300-linux-arm64.tar.gz 213033038 BLAKE2B
a75d670dfa72c8af3277b9271e09aa0b4d138c6c275ae3e018994363aa8d0e8df82edf7185fde8e1a8c8259a1d18f2ad2a53155c41fccfc1fa6e923ee8a8e85d
SHA512
c3c48b256eaf0a662412dc8cfbfa387bb97f3af84ae9cb1aba53f2d34afa5ee735c87b979549ce97eb3aa451c12bd3b10e6453eea6d4ac096d9eeecaedaad540
+DIST dotnet-sdk-9.0.300-linux-musl-arm.tar.gz 212603345 BLAKE2B
29b1fff839cffa28d1a90c75a35ae273f602534121956c398e446c0e5fc5ef11c8edd03765842d4683e851a8b02eeaae58d1b0005e53cf5a09682a06ddb1a6eb
SHA512
e19f4f7bfce95e73112afde42e7c16c897c016195ebb36f4e411a3bf1aa939f4c1456f9d4abb968dc8eba75531c8edaeb673df0e9e570d8dc5cb725ca57700d5
+DIST dotnet-sdk-9.0.300-linux-musl-arm64.tar.gz 213014876 BLAKE2B
90811082554da57bbf0fec25b68ec2d27f080ceb7f2422bf4d69f5940c591c26db2f4c33fb718de8aaaaefb7edda86181111a0c0bab258f1db44cd1512de496d
SHA512
0d9c5bf285f13ac3206ce327effe384fbca11af739c82c222b274654866c58d88338d66b91d4517906d7abeba33e97dd869c75b52b7cecef10af3e6e206eadb2
+DIST dotnet-sdk-9.0.300-linux-musl-x64.tar.gz 217831069 BLAKE2B
eb6eb56b6be4fdb393761898a9a3f58b271d0c581b8397fd969ffe649ab058e7b5111ff3cde1cdbc896bb7f4ffb09f3f565a8e0d87b8c0954923220e8f341569
SHA512
a03fd3f772f288c501ae0cb950ac9a3491785d0f39660fb12814a9fc40d58f7dafb835a3ffb8e5e4016a9d199d0dfb960e053bbb695b54a5803967f1f2f2fe33
+DIST dotnet-sdk-9.0.300-linux-x64.tar.gz 217847129 BLAKE2B
f83acd3e70f25f83048c335b9d9ca3c15e3ae91938f1e87b27430f66e613c5331daf08729a66b73de30a741a317dbca73060bdab88b98f73dfac2a04d376e3ac
SHA512
dcab6daef3164390d09edc169d4bf8ec3480af1288e9766c07d20d3c7b70517d263083c3900381fda59c3a7f0aef3fd75ee4f604173c889e8222d6449091d843
diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.300.ebuild
b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.300.ebuild
new file mode 100644
index 000000000000..01a4d5799e63
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.300.ebuild
@@ -0,0 +1,172 @@
+# 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}.5"
+
+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
+# Latest versions are unkeyworded.
+# 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.16
+"
+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
+}