diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-12-09 17:32:11 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-12-10 02:33:37 +0100 |
commit | 3472fbc57e8c684c3a271769392903d73528374c (patch) | |
tree | d2d2f8c3a36250b9193ecb5e60043db88e32cfb9 /dev-dotnet/dotnet-sdk-bin | |
parent | app-containers/docker-cli: add 27.4.0 (diff) | |
download | gentoo-3472fbc57e8c684c3a271769392903d73528374c.tar.gz gentoo-3472fbc57e8c684c3a271769392903d73528374c.tar.bz2 gentoo-3472fbc57e8c684c3a271769392903d73528374c.zip |
dev-dotnet/dotnet-sdk-bin: bump to 9.0.101
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-dotnet/dotnet-sdk-bin')
-rw-r--r-- | dev-dotnet/dotnet-sdk-bin/Manifest | 6 | ||||
-rw-r--r-- | dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.101.ebuild | 171 |
2 files changed, 177 insertions, 0 deletions
diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index 566d1bcb8800..7ce27102a822 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -34,3 +34,9 @@ DIST dotnet-sdk-9.0.100-linux-musl-arm.tar.gz 203641766 BLAKE2B a9c4d75c502d0a34 DIST dotnet-sdk-9.0.100-linux-musl-arm64.tar.gz 204170026 BLAKE2B c00768a33984e68de7c1f27c87f37b1cf5555e5df0db8e61071ce06740bde24bb8de3b20d4132db307c6083e75fec5b5bb8b29ad947b27fcbf9d9496f878321e SHA512 dae06d007327f6f53f50cb3a2884b93cd2fcbb73c756a8ac5ff673617f9bdf00093932f3a83652211fc2eeb57c271078644ef5c28a42897d8397f76d0e89586d DIST dotnet-sdk-9.0.100-linux-musl-x64.tar.gz 209088176 BLAKE2B bc33f90a7f2aa5e64289e36b33724ef89f710d32211c05f6371853424a3140dce0336c15d50c6ae0d44dcc55aba22378c2d236096395c69a0b45d61b6bb4ab3b SHA512 e2032e6b4ed99adb3a92b7e041ea895ee09c6ed2455a1f68e55ed53bd613c8c20ef4aa5c434393bb5fdbc2f5635a83067f77451fe2fd3febcee264fe077acdaa DIST dotnet-sdk-9.0.100-linux-x64.tar.gz 209148140 BLAKE2B 4fa610ddb4a4df326f591b0b588252402de1fa5910b94c49ca278d06bfd65385c63689e415adf0c3d64ab47a8eb0b2c4fe21bdd5a57224f3ef90b5a293961b6f SHA512 7f69bda047de1f952286be330a5e858171ded952d1aa24169e62212f90a27149e63b636c88ad313a6e3ec860da31f8c547ff4ab6808103a070f7fb26ba99c1c7 +DIST dotnet-sdk-9.0.101-linux-arm.tar.gz 204796826 BLAKE2B 980060407fe72d06a78d069d749429128ef04af99cb08c32dca951eff7622da8725bde8c08eeff2bcf5d6bcfc0584cbd0162fe6c66dc35cfd5f7ff663a49701a SHA512 cdf8989d02e4a6aa21e68081e956318c94c601583a757d5eb433919ebe7fa518f207aa0f58a09ee28cf95f445c486386c229de69891433a4a29145ef596aa1a4 +DIST dotnet-sdk-9.0.101-linux-arm64.tar.gz 205271787 BLAKE2B 9b65c5d7b1c9dfe254305f6fc95dfb6ba8aaf138ab6c7db2e635250a3cab8f3369fa3b431d4c1f2e463b13fb90e786dd064bbb3f9d3090e2d4a7f0530fa972e2 SHA512 c5f9c17dded5101cb4b65ad1033ae4d82fc5b04303bdce4eb61a6dc47efa84202bd726d05caf117e536a01bd78ad773b8d23cbf43bc655e5eb9912b12078e0b1 +DIST dotnet-sdk-9.0.101-linux-musl-arm.tar.gz 204932960 BLAKE2B ff45915cc58e2c5adf9a43119d0dbf10cc7a1e621947f926f8c5fd8b34facebe1d10e199e382e95f67d76e88a5fc74df265657cc0bf7ff9863132784de543d78 SHA512 7e6560e69b83b9e64961e91155f8585421c3a2ce76897871d386492c623e9280f66f2284dc49362bc38739e48172523ce54b2269524437394ea3e908728a0118 +DIST dotnet-sdk-9.0.101-linux-musl-arm64.tar.gz 205372709 BLAKE2B 7dc36729384f4b701c89a57de5deb99f3382abc7b644ff896a8b606bf73f122461a12ac1ab12ca9472dfa3bc214a9c332d7123ff03a7fa51405e533c85f7341f SHA512 6a6d6a6d6dfbdacb48374c0ac9bdb1c93781f3970c8778b0bee1f159a22b00176868264e605331fef833cb9fed829b4ffd414276d0d1140a8b0e257195c2f374 +DIST dotnet-sdk-9.0.101-linux-musl-x64.tar.gz 210448851 BLAKE2B 36ff6a5d671950d44a39456f2812004074697e8990e4576fa00480cd826c85671a12710c4eaadd846b0c738220efd4e1c03e07529b0bb468b5352f368001ceee SHA512 3f4e14fb7b52dfb57b1e31cb5973e6e0a338f7f030f12b3082d3b55f12f9587ddf4926a7c5fcf86b7671397e44f8e5c20fb949d70e9a7dd0dc27be73a548dffc +DIST dotnet-sdk-9.0.101-linux-x64.tar.gz 210346874 BLAKE2B 3695630974f5f8bde4a3b2071072e4afbb848446db0161c061ed59e11b56073af38493256cfdea41cc6692a040dd180cc9af4302af55789a491e72f96741c0f5 SHA512 91b37efd64242e5f1f3c2025d183eb34e17f3a9271c5602f29ddf794845eee103723ef955ed869788ebf5a731e8ddc69328799c92c64cb118e1328d259a6ad01 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.101.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.101.ebuild new file mode 100644 index 000000000000..16206d68455b --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.101.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2024 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://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz + ) + elibc_musl? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz + ) +) +arm? ( + elibc_glibc? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz + ) + elibc_musl? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz + ) +) +arm64? ( + elibc_glibc? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz + ) + elibc_musl? ( + https://dotnetcli.azureedge.net/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.11 +" +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 +} |