diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-05-01 17:38:20 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-05-01 17:38:20 +0200 |
commit | 13105228dc4ec9bf3e28728417cdcb28613a77e3 (patch) | |
tree | e9b8d538445ce10cdb2551a3ad852dd46fa971b8 /dev-dotnet/dotnet-sdk-bin | |
parent | dev-dotnet/dotnet-runtime-nugets: bump to 7.0.18 (diff) | |
download | gentoo-13105228dc4ec9bf3e28728417cdcb28613a77e3.tar.gz gentoo-13105228dc4ec9bf3e28728417cdcb28613a77e3.tar.bz2 gentoo-13105228dc4ec9bf3e28728417cdcb28613a77e3.zip |
dev-dotnet/dotnet-sdk-bin: bump to 8.0.204
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-8.0.204.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 a0d1b752b636..763c0407602b 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -16,3 +16,9 @@ DIST dotnet-sdk-8.0.203-linux-musl-arm.tar.gz 221707667 BLAKE2B f4561a35e0ce7481 DIST dotnet-sdk-8.0.203-linux-musl-arm64.tar.gz 221570139 BLAKE2B b6d9aaafc0cdab6c83db9d466c54ea6e5be5be612494d7a34ab41138a7354925b5960b3a79b74271ead757f9a2d1c95e89869b81128c6d3deff7c64630ffecfd SHA512 33cf09807d9280d3f4a860ea7650f73732c7d86d462a06b6e40e7945d0fc8c6e9c5e799059de86939cd0de88d35afb67d1829150b9fc2e5ccdce0d55d9e771f7 DIST dotnet-sdk-8.0.203-linux-musl-x64.tar.gz 226138600 BLAKE2B 5df8fedafdfae99eb86944e1f0684f907a1e5e4405d5c45367ff6e50f0f9006035367603c15db56492b23e175a82f400efdff1c6ba5ae199a6062f5b3eb6890a SHA512 d2b6d8b411470c1a856d546dea087285dad7adb3b3fc5335b024d6f9054ac869073742c283158294c7b866dbd58dda4d9fa2a2c245fb4618c44ca5a61ddec7da DIST dotnet-sdk-8.0.203-linux-x64.tar.gz 226131531 BLAKE2B 6b70ea6b4c462cb489e87837e7d98166a41d6e7eefc93534318d4d4504c1e441cc7aad3bc19da05758049f771c3423d5d20786691cfbc179a090ed1ae3847693 SHA512 78b1913b54a1a4c9f13cc2864a11540b5fd3bdf4ebb49837483e19c0906a1890f2dfcf173635a1c89714bf735cbcaa01db0f7ae90add5295da69a0638ed5e60e +DIST dotnet-sdk-8.0.204-linux-arm.tar.gz 221632389 BLAKE2B f3d74ad11a8835f3309a929b7fd23348cbbfa2d5b048ad5b640eb898e8fb5769a368f6a999cc8eb75f72eb8406b4429571ce98a6b2eca47529d9f474a12a0803 SHA512 45230c8f180209c3b8315a3d9825eaa55d1b1dd2c9b427d038890b17987f9ccf4288f4661263862c4a19231a7657562ee09595d7e09799e38d22138f03c49047 +DIST dotnet-sdk-8.0.204-linux-arm64.tar.gz 221695183 BLAKE2B b23e7a1276e14c87a2f9bb8f95caed7d85d7a06a3a7e43be1b215bced7cbb1a8784fa22848fa4f2f8c04ffd0fbc2c19ff0bafabadf6b35d6d721052365f819cb SHA512 7000b559efe502e9a799e9fccb6bccc2e39eb21331d6cb2be54f389e357436b84f5ccbcc73245df647749ee32d27f7fb8b7737d449312f0db7dd3409f8e12443 +DIST dotnet-sdk-8.0.204-linux-musl-arm.tar.gz 221633449 BLAKE2B 04277da97e0a9c127aabedc85957e3bccf9ecab34d645eeb7d898b9d8218f670884807c0188664564ce4822e99b5c1c6d6f54c1464886903aefbbc333ca0a444 SHA512 49ec1d93764da0e726e691365b22545e935b96633175e5cbcc64d57f26c5ac13afdb8b668b7b481e85d31d841c8fc0850266f78589674d7a1d288001a57beaab +DIST dotnet-sdk-8.0.204-linux-musl-arm64.tar.gz 221795912 BLAKE2B dbc3a8ea1f513162b1d0025426a8d13feb65bbf9f4ff2c90a5ae5965937c616c663b51e2e77c4fc3ceda45c186b6bd0b2213b1db62d539e0ed68f15a92eaec7b SHA512 07655fcb66f4d2c636efdc6605b20b44f64fec6682fae1a4a83ce9cfc1e3c81a7443a715ff0f46aaac25a0b61d12fc4da3d1fe46d6f74c0e93260f649dccf05e +DIST dotnet-sdk-8.0.204-linux-musl-x64.tar.gz 226240480 BLAKE2B 3ac3004da5a0f8e2e40f1be6a90eadd8391ca6a8420ad043a03412c7d6dcc417c3db5e6c0f757c7e20b04c4249b4be86102ef22c51f28103fcd6a0de4afddc56 SHA512 fc2f10626e5496aace5363af5d722ee71ae33d1856d76b90b0f4adf4f8898d53aa92cfc6efc765e52b2a0d092eb8e4c2ff15c691f82d7f449bec1fbd407e22a0 +DIST dotnet-sdk-8.0.204-linux-x64.tar.gz 226097539 BLAKE2B 11dcaf7c7ac60695295d930354f3ce0f428a941702629033ea6fb097c30907c4d63353a89fd0e2be6f525125c57c4747193a0be35fe85249088c0bf1ba521fc1 SHA512 b45d3e3bc039d50764bfbe393b26cc929d93b22d69da74af6d35d4038ebcbc2f8410b047cdd0425c954d245e2594755c9f293c09f1ded3c97d33aebfaf878b5f diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.204.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.204.ebuild new file mode 100644 index 000000000000..9830e7e6a5a3 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.204.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}.4" + +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.29 + ~dev-dotnet/dotnet-runtime-nugets-7.0.18 +" +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 +} |