commit: 2ddeecba7487fda2f4d83cd559fc62d6636d5911 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Mon May 20 18:08:25 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Tue May 21 00:51:10 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ddeecba
dev-dotnet/dotnet-sdk-bin: bump to 8.0.300 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-dotnet/dotnet-sdk-bin/Manifest | 6 + .../dotnet-sdk-bin/dotnet-sdk-bin-8.0.300.ebuild | 157 +++++++++++++++++++++ 2 files changed, 163 insertions(+) diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index 763c0407602b..dd85bac39cfc 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -22,3 +22,9 @@ DIST dotnet-sdk-8.0.204-linux-musl-arm.tar.gz 221633449 BLAKE2B 04277da97e0a9c12 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 +DIST dotnet-sdk-8.0.300-linux-arm.tar.gz 217482888 BLAKE2B 309027b54d43fd44bb05f73a612c10d91e9b5af46ee2d1f1cf1f60030668d06364bf442c44f900ac6e69f6dcdaa84f16a1974cd05a140fe7beaf615577168d67 SHA512 13fd4818d3cb64dcdbf23748d0e8afcdfb981c1d6f0a8721d41c3794c363dae615612838e0db1050fd8b218ccf8e27a2c97e5a0da61da0d384c008b08c1f066b +DIST dotnet-sdk-8.0.300-linux-arm64.tar.gz 217385231 BLAKE2B 1080d581bb0b17b4bd7f4d49ab4ead7be2da885fb7b671034db879ecc29e88334f63da1caa663cb9aa1bbc122a1b961d0105c4e0941a38c8192425a866f0f2d5 SHA512 b38d34afe6d92f63a0e5b6fc37c88fbb5a1c73fba7d8df41d25432b64b2fbc31017198a02209b3d4343d384bc352834b9ee68306307a3f0fe486591dd2f70efd +DIST dotnet-sdk-8.0.300-linux-musl-arm.tar.gz 217378627 BLAKE2B f68d287fba305dffcdd10e2d63f3743fe2f7132af6a7bed42f64be636a53890360d4a19a05122dd3ed0f438d6aaca0d36dc2dc1f91fc5103ee144ce446ffda50 SHA512 768bc41911895272ed8b8629d3ae36ccedb74c9982b94c8bee6575870cdce6bd9ffab26751f48cedd4b3c7921b3fb6d3416364bc4102f61983dd0b18e9aca104 +DIST dotnet-sdk-8.0.300-linux-musl-arm64.tar.gz 217509196 BLAKE2B 85471f8354e2683a4d1a5dd7daaff8fc7a4b05084469d1bad6ee043cb690c96516af587e16130da532f8e326941d0d401fecf3abbc07f2e162dde99dd3221754 SHA512 fde1657c8e6be40dd7b140d8253dfb0323826797cdc3ae2217b689598262ac51bee409388f2b21cb499daf0db713ed27034baac92f43c0b529a68c2f8d8ad26d +DIST dotnet-sdk-8.0.300-linux-musl-x64.tar.gz 222011574 BLAKE2B c534c41a927654407ba850ef67ffec632b98e63b603fb1d95908d27767755cd9243838534c47b5a46594e72e8b226e190375dfc9222dae41781aadb4985a73bf SHA512 87250809f75cbe408ccac9901a213afc54805526a613fbf88fd02a165c56cab5f770730de03d98f6e798e9013e6b98e8b8e31279e251a3c31c2976b89e643fd1 +DIST dotnet-sdk-8.0.300-linux-x64.tar.gz 222050156 BLAKE2B 9cd6efc134507a87290740f715fd5790a4c860b15ee69352dd43dff62f6768096a6f9781fae9c6d567b26b80002da9db777d5d34492b9225333a3cf1dc90270d SHA512 6ba966801ad3869275469b0f7ee7af0b88b659d018a37b241962335bd95ef6e55cb6741ab77d96a93c68174d30d0c270b48b3cda21b493270b0d6038ee3fe79e diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.300.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.300.ebuild new file mode 100644 index 000000000000..c28c1541ef6e --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.300.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}.5" + +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.30 + ~dev-dotnet/dotnet-runtime-nugets-7.0.19 +" +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 +}