commit: 820b43de6a9b96df68058e167bb5036e006a1bb3 Author: Blake LaFleur <blackburn2929 <AT> gmail <DOT> com> AuthorDate: Thu Nov 13 14:42:52 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Nov 13 20:13:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820b43de
dev-dotnet/dotnet-sdk-bin: bump to 10.0.100 Part-of: https://github.com/gentoo/gentoo/pull/44604 Signed-off-by: Blake LaFleur <blackburn2929 <AT> gmail.com> Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-dotnet/dotnet-sdk-bin/Manifest | 6 + .../dotnet-sdk-bin/dotnet-sdk-bin-10.0.100.ebuild | 175 +++++++++++++++++++++ 2 files changed, 181 insertions(+) diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index d233dcc000c5..44fdb8afc77c 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -1,3 +1,9 @@ +DIST dotnet-sdk-10.0.100-linux-arm.tar.gz 232325080 BLAKE2B 2ee98749887564b1ee74bcaf0f9a9ffdee14145e0baffba9ba339e7139a8b2f1a2399fadeb911ae6b94ee75b352a8d7aaabeca0656ee17f039b711d176cb59d3 SHA512 45f2d7fd05670a5a14fa480889e45920782277575dba0da44c259997d059d64070b40ac7aae9f0c3a3076d9fed5b787854a8abdc2dfdb4783b449c05c1c9b49c +DIST dotnet-sdk-10.0.100-linux-arm64.tar.gz 231804420 BLAKE2B 5e9e1fa246bea009371bc60bd1e9b7815b081e73f4a3725da09b7c4d8fb619b5223a6c7b768e19415fa773097edaee8a67792dcba99d048f8d99644e80ff15ab SHA512 24fc2b105ab8484c34213ef57ac4e6a36a6593241f0ebc6cf0a40ec2f5fea2d76de85c4b87b2a53814d194e32ec1288dd5053cd6f52768d79cd0ac948cbf84ea +DIST dotnet-sdk-10.0.100-linux-musl-arm.tar.gz 232467102 BLAKE2B 2d41ec58ab6793a70238adc9338d5e6b872206638fd991ad45c93745018c1a26ab76784b82a50b8de1e2e99ff167c6f22ef20a826ed9923826da9c2a5cf5f8a0 SHA512 5a543758451019c29c9dc3220c3095be5234a9adc6fe5dccc367886b160a907b2d6a81be8fd3c0f527e9ec832703b2546dec81a8df2802d9f6ef5614082e13b0 +DIST dotnet-sdk-10.0.100-linux-musl-arm64.tar.gz 231665415 BLAKE2B 5668259acbcec9b133cc807fd8d8be75c16b887a82d91eb52b8bc7b37b300cd64d35fe9a07c0bb229548e05e07cfd66b7a13428c3cdde23bfee87a9c96039df0 SHA512 5fb94421ce5896fb36b64bd0f975a83d1938641205d89f44722c8ea44a03fb5844d9fee6d72f92ac563d1040b76ee3f1e63e2f738467b4329d2eabed0c5b04ca +DIST dotnet-sdk-10.0.100-linux-musl-x64.tar.gz 239088372 BLAKE2B 4cd20d24f3897dada8234a018dc9896beb88fd2f4801badc123ce0a654ca2c5bc4f65b53abae1381774e5c00b5098a51e3db6c8fd802c1574cf38e062a39bc81 SHA512 2fb7ddc9b232a67f69262b8beebb5fa223da86c9314f074ed79b151a7bbd0b1b5c36be5480d363d82709ae69fd90f7a6a451ef68026e0406581434ed288b20ec +DIST dotnet-sdk-10.0.100-linux-x64.tar.gz 239125653 BLAKE2B 0dd958737d7ce6ec97460d35d24970ffaea9b3dfa3fb66ac7bc7f274fbd99545a142da1f1a2ecbd14c3fd57ddc16b6e6e0c07a18ba8ae2930602bc1455e78de9 SHA512 f78dbac30c9af2230d67ff5c224de3a5dbf63f8a78d1c206594dedb80e6909d2cc8a9d865d5105c72c2fd2aa266fc0c6c77dedac60408cbccf272b116bd11b07 DIST dotnet-sdk-6.0.417-linux-arm.tar.gz 182268907 BLAKE2B fef6b9845d6ba6fd19cbe580f3a868ad48872fc919d119123886a9c975281ed0ab407cfe24421da1fb6bc6cc907c3d693278e0a3ab05f4382c10203095710c6e SHA512 f14d5d24d6611139cff313275599923856307c3afe57d2439eb95e2a89da5fb54fdb6ce5b0d7a243f2d031af4eb0c277ce1914725f8b9dcff4002fcc05489f08 DIST dotnet-sdk-6.0.417-linux-arm64.tar.gz 179979647 BLAKE2B 069d6afc216b6ed3ebe3093e933f88af4d51f6a994fc4aeaae85658583a5cabf5e8ab08a0e1cfe53f7f19743769a9183b9e3d64b5464d6d96288ba51d983f261 SHA512 39cada75d9b92797de304987437498d853e1a525b38fa72d0d2949932a092fcf6036b055678686db42682b5b79cdc5ec5995cb01aa186762e081eb1ed38d2364 DIST dotnet-sdk-6.0.417-linux-musl-arm.tar.gz 182168816 BLAKE2B b5e149074cb6076e03aaa90545d3916c072e9d1c46f6831633786658424fb8cbf12e72c3f497cb49755696668acb027534606152514f09d3417336aa7eb44eab SHA512 86bff3ab8cecfd16f3d9d26da87b6cbeffd2041d474c56602ee5d77f6883fa64cfe85a19291fdc5afaab438fa5871e366f754b211ece161887f53c637473b661 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-10.0.100.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-10.0.100.ebuild new file mode 100644 index 000000000000..27d6a13cac51 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-10.0.100.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}.0" + +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 + ~dev-dotnet/dotnet-runtime-nugets-9.0.11 +" +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 +}
