diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-02-21 18:48:30 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-02-21 19:50:08 +0100 |
commit | df1f01bd686f76938f8c500856dd072b964dfe55 (patch) | |
tree | a40822c42c5b4e9e36c68e4831e60dcf07197635 /dev-dotnet | |
parent | sys-apps/bolt: add 0.9.7 (diff) | |
download | gentoo-df1f01bd686f76938f8c500856dd072b964dfe55.tar.gz gentoo-df1f01bd686f76938f8c500856dd072b964dfe55.tar.bz2 gentoo-df1f01bd686f76938f8c500856dd072b964dfe55.zip |
dev-dotnet/dotnet-sdk-bin: bump to 8.0.201
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.201.ebuild | 157 |
2 files changed, 163 insertions, 0 deletions
diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index 4b8b5324bd47..16128c7c23a1 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -28,3 +28,9 @@ DIST dotnet-sdk-8.0.200-linux-musl-arm.tar.gz 221630199 BLAKE2B a3ffe46d7b790d9a DIST dotnet-sdk-8.0.200-linux-musl-arm64.tar.gz 221489257 BLAKE2B fd0cb9bf1007cbdc42f196674fd19e0461e9435aa4968beca051a31133b5e830dc1c9c7969f1a489efc4f18dabb2f999ac14269fb06fff1e264b22a71e407c1e SHA512 a65149b1b6eca4ebca30bf0f537e0759bc84ae6bb6ab528dcbbc357a0ebeaac21dbaab320ee97a9cb107d6b43b2f042837d669cf6c45df7f5756cfb3e7beab21 DIST dotnet-sdk-8.0.200-linux-musl-x64.tar.gz 226287389 BLAKE2B e73229c5ce60b6d6933725ac9f911d44486cb5515baca45f8abf874d4a179eacddc6b8ea5190a552019fb1de1ff6ad0d6cb18b3e62aa1fa29cbfb8c3431f99e5 SHA512 c13d33ae2ec4ffbc8269ab89bced97fa659eaf173b0ca146f06174d51990b74bcbfb13333c9162973754ef5c328e41a52643f61fc33474c5335b6bacb9bb5fda DIST dotnet-sdk-8.0.200-linux-x64.tar.gz 226151582 BLAKE2B 2677de02a7725894045bddc6d1c3aa3a33cd42c41a069b76254e285f2f2e80959fbbbc4f2aa328143505da6af45fc56d387a2759074f82f0219861751a8a68d0 SHA512 58417468b72c89a66ad0bf54a0e4af13f8a3a37f2aae6e28ef762b9cdd783af0c13ad62ce185446d920b2709ec73c980d888fd73a413a8dce154ac15cb0056a3 +DIST dotnet-sdk-8.0.201-linux-arm.tar.gz 221645704 BLAKE2B 427f82e2010f2397283bbbae5fdd05f313f1eac6becc21f9f0a09ff8eed20c190141928d183cf4bda5ee5368a6d7430e2046adb2743b6d0d6ab2e0d49eb53cf9 SHA512 92760c4a4f3bf559daa41b8b87d7f10995aa5ae11783af053d854e8b9e8b042cf6e984bda40490aff051e4463f7cc8ed25d905090e5cee029c81afdb7f8b32c2 +DIST dotnet-sdk-8.0.201-linux-arm64.tar.gz 221301228 BLAKE2B 8b3fcb75bd0460d75e7d9e8dc9a311336ea0fdca574fdfb754f64d8d9e432275ef23482aa0d2645ea5de3288471dd1254935e1885af36c1838a30f909ad66a3f SHA512 37e230970cfeffdc3873e42595b79ecdf6bfe266a01ace6953725e69a2b64313ce144bf4d4f861130f61f680ead9b4d8a819dd5543c5470c37bbc13d88a78c80 +DIST dotnet-sdk-8.0.201-linux-musl-arm.tar.gz 221507166 BLAKE2B e2e72b5d4f6851805323988b3c701695c173a40a7f3dcc465f0448cd111ed6c94b4a34cd955aecb03c4fd65e649113dd4c56a75740904f435ca3d48c8b655f2a SHA512 687e3ad0ba66825f3dd5b83ca6decd8a09b16eafb5a8c58fdcb7118b306b699f870393a0cd3d163c98deaad2f38f2d7df4c96678537b1e49b73b421073e14aed +DIST dotnet-sdk-8.0.201-linux-musl-arm64.tar.gz 221701326 BLAKE2B 4e2ee14a973844f65ce71d5ec815ca664bff162b45f0c72962bae52270d5e19edef09ad3cdffab9c5d90f88f9a7ecbb257a835e591de5dc3afab31d68e8b75fd SHA512 4a7c7dec45239a3ecbbb88dd4dc43b2ea66b016a974ebbbbe8960885d6118a0310679c2ced8f27ba5963311fedcce29ad31b0e43a20a01225778d8b6a1fe6e8c +DIST dotnet-sdk-8.0.201-linux-musl-x64.tar.gz 226193676 BLAKE2B 32b0d540e59e0e6d5c0891e2c8d519209eb94920cdb7c1c81729fcdb4d241c4d577e3d8113f02f77f3b35606a948e5192e7d40087d22a73d388885d0d13286e6 SHA512 06483d787d1cc0633ed94175747a90fded1bbbb4744f82db003f691b291da112d47e27350e5051cb7f413b913a44611f21dfaa5556c798a95f64b5026e9b4923 +DIST dotnet-sdk-8.0.201-linux-x64.tar.gz 226357468 BLAKE2B 84c6befaa5b2cfd54c226522fd937c3a48705aa46ee06f10e2fb9cec86496d8820342481e328ade8aef10557c135fb2517d34b70d3d37489dfe3fa81b6f58be5 SHA512 310cf54f595698435b533931b12f86d49f89d27243cf7c87a5b926e0c676b80e869aa58aaff17b5095536c432f377c67d92bf0ca8941b9d891d4b3879637d488 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.201.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.201.ebuild new file mode 100644 index 000000000000..38929dc875b5 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.201.ebuild @@ -0,0 +1,157 @@ +# 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}.2" + +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}" +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.27 + ~dev-dotnet/dotnet-runtime-nugets-7.0.16 +" +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 +} |