commit:     ed6a22f2c97595db80d258379f7450000c00716f
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 16 20:14:08 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Oct 16 22:31:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6a22f2

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

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

 dev-dotnet/dotnet-sdk-bin/Manifest                 |   6 +
 .../dotnet-sdk-bin/dotnet-sdk-bin-9.0.306.ebuild   | 175 +++++++++++++++++++++
 2 files changed, 181 insertions(+)

diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest 
b/dev-dotnet/dotnet-sdk-bin/Manifest
index 675c511aa1d4..c25e65348e3f 100644
--- a/dev-dotnet/dotnet-sdk-bin/Manifest
+++ b/dev-dotnet/dotnet-sdk-bin/Manifest
@@ -34,3 +34,9 @@ DIST dotnet-sdk-9.0.302-linux-musl-arm.tar.gz 212607437 
BLAKE2B 058e7accb6cd428f
 DIST dotnet-sdk-9.0.302-linux-musl-arm64.tar.gz 213109821 BLAKE2B 
f84f8f83cbe3e2b6010251e48ad5c9da85923ead2b3ef500604a22ed4ccdaf68cef7717a7d4364ffb08fb8148f72a7d64de5c804afcd0c515fd3c4846c28d7d3
 SHA512 
c84b1b419aaf2d778b080e019f0937897dc8a64d0612a3c2203acdcbb1ff598847a87a3ec3c688f3d03accb2180752b3c9b10043a60478347151bab3655ded1f
 DIST dotnet-sdk-9.0.302-linux-musl-x64.tar.gz 217948829 BLAKE2B 
5b8c8d32b3078097643f50fd147b1f643af97deb21fc7b36963593be29255dcf115904066b18f27293412fc34fc7d9db35ae3e68be234d1a067457da54ab307f
 SHA512 
01a0138fc5e6b05f6bf77f51b225cbb73606552f121f7c947e4a9c5db45775d4031d79a4ae1fc6e6b3b5d6388ecd2b0d503e5447b2e892fed9539a0728e624dd
 DIST dotnet-sdk-9.0.302-linux-x64.tar.gz 217911201 BLAKE2B 
b7528b800a2caf785b67bcd8aaf2b7dcf299863d19719490499f383df39bd6c62e47ac0ae3fa179e6f180bb0a694e4ca5eb953f2c029cfeb3398755c5fb58deb
 SHA512 
fe46a96e794388b345105e47896e4e91099ffd907a7127ff2cadf76adb3a7be0b43f0cd8d2c376ae455283d08f4751f7ef11890fd2697304ef114447ae209c88
+DIST dotnet-sdk-9.0.306-linux-arm.tar.gz 212658801 BLAKE2B 
590f7db88724c6e94e3c99494fd5ccff7af5c10f39c37797119d2e82ce9bccc0c3eeebf7a80d540e0e09239f95b802f2a1e6087502e406343d444a3e4f1e5373
 SHA512 
45f65947801961f8dc93c7ab7d28906eb34b0bd943e155fd7113bd9603304bb98cd1eab80c6bab5bf365aa9512c6796f1e820bd5c54226529a4f9f96cffeb31f
+DIST dotnet-sdk-9.0.306-linux-arm64.tar.gz 212953097 BLAKE2B 
c782634812ad52ba3ef99bee857e1653e4f6c1a4c08968b9276a4c5cd8825444c6b2e9d0e6772838016edb72beda8112ecdb53601d0be95e53f7a176590efea8
 SHA512 
72667eb4167308fec780a9fbb59a16087d1015afa09ce771a04e21663782cabbd59c395587af6835dcc1f34e2e677c765e44dcc68a446d2caa4ed4a4a0e329ee
+DIST dotnet-sdk-9.0.306-linux-musl-arm.tar.gz 212725036 BLAKE2B 
9ea2b4ce7a302962e5bd731a5958ac2564563a941d74f6d112b6acbfb7e895e41991073ad4f3e3e9b6b74a74fa263a9825bc44448647699cacf44dca0a8db1e5
 SHA512 
b6ae08e0e135582570049e7b420b7002fd425509ab514a0ac55a79bf1ebee96e393817f69c6432e3f9cbf24508f126f7d6cb17dc46eb5605727999d6f6c9e099
+DIST dotnet-sdk-9.0.306-linux-musl-arm64.tar.gz 213178337 BLAKE2B 
516a9a702fdfe9520718c04f7c465ade76b72a83811b8d00e1acae569c696e6e878952674b659991253efcac49ff34bb78c93a98073c01f43a815dba6618b9b4
 SHA512 
2f370339dcc78dfac9978759aedb46ce12e36a3eb0c5a7cb4a779076bb86d0bea1a4efe7045b1a693a6d369bec176c714222832c776aa792bc930523d007ec8a
+DIST dotnet-sdk-9.0.306-linux-musl-x64.tar.gz 217994820 BLAKE2B 
da4f5c6d6f36a70c8acee0caaeca872c34e67b97bd9f3bb813bdb32ab0799a86d525666295e69b6ae2e6c72c83a9e40ca6eec5ede698f200fa67361eebd81abf
 SHA512 
c11584b5593cf9c292b60c2f579d026ccc8a085dd9235e341028fb696a882ff5e0a306923a9faa024921d4fc216226910eb5f07afce93e974e680e9f000b36df
+DIST dotnet-sdk-9.0.306-linux-x64.tar.gz 217825114 BLAKE2B 
e34866222cf5822f1235448ba1199620c6d1ccffeabad86f3f72842833c91bffcf05b7036a049f1ed1132f03d745f95587968957f6da523b19fd838d2faaa3b8
 SHA512 
bbb6bdc3c8048e7cc189759b406257839e7d4bd6b8b1ba4bcdaeea8f92340e6855231043dd73f902130ca5357af72b810bb51a4da4d1315a2927ff85f831f1d5

diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.306.ebuild 
b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.306.ebuild
new file mode 100644
index 000000000000..6142cea56783
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.306.ebuild
@@ -0,0 +1,175 @@
+# 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}.10"
+
+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.21
+"
+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
+       )
+       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
+}

Reply via email to