diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-06-19 13:53:28 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-06-19 14:32:49 +0200 |
commit | 5d70d56e3240c06316aa0f2d28a447b0078b0578 (patch) | |
tree | 5ae186ec3d595789fbb001c46ec80d61b417d483 /dev-dotnet | |
parent | dev-cpp/cpp-httplib: bump to 0.16.0 (diff) | |
download | gentoo-5d70d56e3240c06316aa0f2d28a447b0078b0578.tar.gz gentoo-5d70d56e3240c06316aa0f2d28a447b0078b0578.tar.bz2 gentoo-5d70d56e3240c06316aa0f2d28a447b0078b0578.zip |
dev-dotnet/dotnet-sdk-bin: bump to 8.0.302
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-dotnet')
-rw-r--r-- | dev-dotnet/dotnet-sdk-bin/Manifest | 6 | ||||
-rw-r--r-- | dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild | 158 |
2 files changed, 164 insertions, 0 deletions
diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index f394d40967b8..6ab0e51a0dec 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -28,3 +28,9 @@ DIST dotnet-sdk-8.0.301-linux-musl-arm.tar.gz 217577714 BLAKE2B ab930f5176c26d1c DIST dotnet-sdk-8.0.301-linux-musl-arm64.tar.gz 217393481 BLAKE2B ee127bf72e8fa3c5416ea0d7d527ab2668789c438dedb74f09e69acd3b6c12aced5d482384e355ae7437e5a117921ed651e3348688ccaf25842794379889ef07 SHA512 646716f924ab20826a3520a2f75fa0e188f2306b8b8a1695f15834a14688dfd9c871909401810aaa387abb2eb9397414b21ac3b6b0ce1f3458dc96fb84c951bb DIST dotnet-sdk-8.0.301-linux-musl-x64.tar.gz 222149362 BLAKE2B 1d3d1b060e5162aba1db8b9dc626ef38f52dc5794601b2cbde87638413354ac9fa04fe175a60b2a38b54069322a79701d46600ef8e8a5773890699e4e7f8597f SHA512 25e11e1b658e89121650ac5ec2b21d0cda42442d807dc3fd32b79f2d818ace9ed505f0e95994ed6edac7392c62dc094a056ea43d8c054a190cb3fe395fe802cd DIST dotnet-sdk-8.0.301-linux-x64.tar.gz 222131054 BLAKE2B 811ce5a5031269c641e75c668a7a4ccaf5fa4bc75adb4e5d8c8ae4c75fe491a6dd9a0632e5f6b2ee6b343e775365c1b9e3b5ea353015a39a53f0ccdbddbbf6c4 SHA512 6e2e1ad5fe3f00e6974ad3eac9c5b74cd09521f19e06eb9aff45a44d6c55e4a2c1cd489364735215d2ea53cec2a7d45892a5ede344a8421be9ad15872c3496a2 +DIST dotnet-sdk-8.0.302-linux-arm.tar.gz 217370278 BLAKE2B 9841c032eab527b31844e8f13d42fa1829b1280ef8ed7b61a751d7a691d66081afa0a559cb4dcbe2e72ca23ab64e6268d5f26cb4c087493da9424d90d9a7b042 SHA512 2758d4844986794b34bcb34f24a153cee47d73fb787702dc7b6727e8dbe1e8c1c9e6bb350bf990c974be46821bcbf85e116ff2007727e2c3dcfa010c6f4cd3e0 +DIST dotnet-sdk-8.0.302-linux-arm64.tar.gz 217456475 BLAKE2B 16880c4e083efead4938e4fb8fba8d8de9ed9c46e79576240c077528d6774a89bd30f033c920c64c244a753063c41b36a231c3b450da6fd4854edde0a4007804 SHA512 a6432f93056d74a7dd666f0deda80c96e6dd6a5e6291f71a0128846df9dee5aa0016fc3bd39f34ce5a859bb82ea4e4302790a78ffc2d05216f07f9bf94440c40 +DIST dotnet-sdk-8.0.302-linux-musl-arm.tar.gz 217524374 BLAKE2B 3904054e1c5d465923ef75bc3500091c659382c610d23d00a0e921992d42ac07ecf0c43636888a45565bc805670badc7d6004accf510b455b0ff6f27b88b97bd SHA512 ad01cf664b42e85bfaa1f8cd13b159266b5b332e4b9c54b8f01e0d08da85c151437be30e142661b38e90b5896c17db30e086c78c47d1f3bb6b57c17e52c1483b +DIST dotnet-sdk-8.0.302-linux-musl-arm64.tar.gz 217376564 BLAKE2B b90fff2fc5d27598b65d8b2adf5b2b3a03b38b2332fa6a2fa4274b16f0cdf1f6b54fd7bbbe9b09e076690c357789e51172f67ae085d8476e33afa0d283410bae SHA512 bc504f76a5eb984373f96520c3ae0d439da9778bc4ba39455f89b809e203543ca164f3c27523b84245a5223ae7eed64931ea78a136041eecb1d1a226cd60471b +DIST dotnet-sdk-8.0.302-linux-musl-x64.tar.gz 222083567 BLAKE2B 361ced459b2c1d6a5ce9e6ec86b591749dae19bdf94ec2ef365f57876062bc558576ab132fc8cef36c2ead378b66886def886bef9d08d1300e9cc60fd7e79883 SHA512 8b5c2f13162ab667c84b371c5a9826173872f2485f806826b9df252537ca77c354b32cc58532e497fdf619f666413b1627e84d18bad616165b5454a8e2d110d2 +DIST dotnet-sdk-8.0.302-linux-x64.tar.gz 222084318 BLAKE2B 56d7ade37162a3dbbd248f50a278338bf5a3d019b8001bb60e33e2a050c4e38cf3fecd958ed8bb6b7fb0fde9646bcc29e0d5aecfc13435ae9a6f2a8f0105c34f SHA512 43d0ea1df12c15a0e47560d2a84857ab50eb04ac693ab41413c04c591719101c4c8165e052a42a66719c67bd07ac299ca47edbb4944a2901df765042e56b316f diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild new file mode 100644 index 000000000000..168c060e8789 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild @@ -0,0 +1,158 @@ +# 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}.6" + +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="" + +# 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.31 + ~dev-dotnet/dotnet-runtime-nugets-7.0.20 +" +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 +} |