commit:     1f3b48233543e0122db369552b9f0d76d388cbd3
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  5 15:13:34 2026 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Jan  5 15:55:55 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f3b4823

dev-dotnet/dotnet-sdk-bin: bump to 9.0.308

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-dotnet/dotnet-sdk-bin/Manifest                 |   6 +
 .../dotnet-sdk-bin/dotnet-sdk-bin-9.0.308.ebuild   | 174 +++++++++++++++++++++
 2 files changed, 180 insertions(+)

diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest 
b/dev-dotnet/dotnet-sdk-bin/Manifest
index cd6e81fe70e3..87d8265c3258 100644
--- a/dev-dotnet/dotnet-sdk-bin/Manifest
+++ b/dev-dotnet/dotnet-sdk-bin/Manifest
@@ -28,3 +28,9 @@ DIST dotnet-sdk-9.0.111-linux-musl-arm.tar.gz 205871077 
BLAKE2B 46ba6f7ceed554bf
 DIST dotnet-sdk-9.0.111-linux-musl-arm64.tar.gz 206267314 BLAKE2B 
8b6dddd92138a254004e72f97190e7d06c2ebf1ca2093bcc40a973586e86fc6d51b6c259316e11e08353cbf3d18bf3d1def06938955dfc93569dbb9cf93aaaae
 SHA512 
9f91b1fca6916d18f36c84c144b3b5019dfaddff2016ff0ad4defd2efa2143806e3bca193717c6e62006f5ba4f124afa9ebe4c2f11f9540f7de3ebb06ea3eb2b
 DIST dotnet-sdk-9.0.111-linux-musl-x64.tar.gz 211108576 BLAKE2B 
d0afced4c0873c74accb76493564c06dea908bb4f6abb72b718f39ad6b6a58e362357028ce158d78bde47278c4cf78bad1c4c3022a1236adcd27e2b96685fcc9
 SHA512 
f80984ab6c3422971de9f23592fc91e30b7139006ed4fec811a1936bb70a2de023cafdbca1acf48078ba82fc1681979fc141cf09b7eddb3331f2d176de14e6e6
 DIST dotnet-sdk-9.0.111-linux-x64.tar.gz 211180852 BLAKE2B 
5f3611726302b7e5d24cd24faad6b5004ec5a5ed487ef7c38f7e30cd8cbbb74e3a2b95f0a7445060588aad47778d7d543ea236de78619e73f57f8ca668ab5e2a
 SHA512 
927820957afdf38d2b4cdb3ca0d24ce71d67821f50a7f71413c38e627b87740c5a9bb0e240498beb7aba536bc1cbac0e7dd41b3025ecf8643c4ee40e973d2963
+DIST dotnet-sdk-9.0.308-linux-arm.tar.gz 212697051 BLAKE2B 
826dc1f450ed100e4e2d2b9862cc5efae83bbef1a326d29333426bc45ecb9382a562857dea74d512d8ab0004e22c6ee04eb3f5534a30e0fe983b780f14ff46dc
 SHA512 
de250787bbe4f9fb38b76d1f0bed6b3b8d8ed51b3d289dba68f1a4963ccce92fe54e940f22d970fd2f5209f123113a11499a98710584d53bb5d214a0fb767929
+DIST dotnet-sdk-9.0.308-linux-arm64.tar.gz 213339534 BLAKE2B 
36c522ac16879feb7c5f6858737595346e216864b29c476481d08ecb8df33d7e33ae588b159046a1c7d175a7f498d6750579b86022f0948597e7806d5fd41336
 SHA512 
21fbdcdcb8762f3579ef2a8ac5d92cb0db960901f1c30d037fa1652238ef606bfc7bffa2e51fcc83f94f3c2c7d5bee5dcfed4b66baa455ae3d38681e264d23ff
+DIST dotnet-sdk-9.0.308-linux-musl-arm.tar.gz 212774222 BLAKE2B 
c2ef284ee41e7dc065d07c0b64eafa3c004b6c8bb875cf5da40ea215ab963639f9d1e378f9bf2a5fd8b9b8c186931f401d74ea499cbe50bef1636bf5fb741b9f
 SHA512 
7331f9386e55028fc3ca213ed558bc6e61fd32bb9b900426cbad1a3ab678da8a9eda135e073c318874741a802e2598f0c99f93d161cb4861a59cbb6394c648c8
+DIST dotnet-sdk-9.0.308-linux-musl-arm64.tar.gz 213179970 BLAKE2B 
4539177d1b8eda1db2ebe76bbd280d4bc5bba7a899deb5492e3fae18eb70cf3c76659cb78db48c85cd2dbda9d78ec4987470a639f004217b08ddb7d8854cc824
 SHA512 
008ef58b44fb1c765b88c8c6687d96cea37cfdb8c7114161420743ff916b62bd67ffee0c98135bea05d9c228306ef1ed114f2d815dcb5b8b3cb717f9c513a632
+DIST dotnet-sdk-9.0.308-linux-musl-x64.tar.gz 217996334 BLAKE2B 
b948ecd7da5c84526e6a2af188f7cf14d4e44b9aa48b8af35a5099c3a63b5c2d84efd8e458a394de7c4c34001a6f38d3c1da491b88ff2b1f258127f0799502f2
 SHA512 
cead5aee110f52798ed420caf49dd0f4768e15a99dec36b41174e6b331208d5d8be5e3ed440bed16d1b85cf906091bda68af5bcdb0383c353e9e61ff6b24df36
+DIST dotnet-sdk-9.0.308-linux-x64.tar.gz 218066196 BLAKE2B 
556c5919ff2379c4c9d09560d7e6d8057073e9c6570e8477408d2c6ebb4f4bb9fef54b6a8929a3f7241403f495cce63065053c8e78674e4b74d464ec4a8a6d8c
 SHA512 
3aacff096524a1dae9bc035f71a6805fa7ec3430d395771fc1c85505165a78361ce2cc9c9c35433376e5c30aec37e2eb2e77de0a6ba7ddd7dc6053baf2c2709a

diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.308.ebuild 
b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.308.ebuild
new file mode 100644
index 000000000000..0623be1a3c64
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.308.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2026 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}.11"
+
+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.22
+"
+NUGETS_DEPEND="
+       ${CURRENT_NUGETS_DEPEND}
+       ${EXTRA_NUGETS_DEPEND}
+"
+
+RDEPEND="
+       app-crypt/mit-krb5:0/0
+       dev-libs/icu
+       || (
+               dev-util/lttng-ust-compat:0/2.12
+               dev-util/lttng-ust:0/2.12
+       )
+       virtual/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
+}

Reply via email to