From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DB21F158083 for ; Thu, 26 Sep 2024 17:19:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB0E7E2A31; Thu, 26 Sep 2024 17:19:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB384E2A31 for ; Thu, 26 Sep 2024 17:19:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDE12343249 for ; Thu, 26 Sep 2024 17:19:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 43E461EA4 for ; Thu, 26 Sep 2024 17:19:26 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1727371163.2e74b1f161870d5b9b3b5b22781f526105dcbefc.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-dotnet/dotnet-sdk-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-dotnet/dotnet-sdk-bin/Manifest dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.100.1.24452.12_rc.ebuild X-VCS-Directories: dev-dotnet/dotnet-sdk-bin/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 2e74b1f161870d5b9b3b5b22781f526105dcbefc X-VCS-Branch: master Date: Thu, 26 Sep 2024 17:19:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 63cb17ea-2d53-4242-9435-d6623bbc29d0 X-Archives-Hash: fb51b9f83ee062d294c271b0e5575bec commit: 2e74b1f161870d5b9b3b5b22781f526105dcbefc Author: Maciej Barć gentoo org> AuthorDate: Thu Sep 26 17:10:16 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Sep 26 17:19:23 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e74b1f1 dev-dotnet/dotnet-sdk-bin: bump to 9.0.100.1.24452.12_rc Signed-off-by: Maciej Barć gentoo.org> dev-dotnet/dotnet-sdk-bin/Manifest | 6 + .../dotnet-sdk-bin-9.0.100.1.24452.12_rc.ebuild | 174 +++++++++++++++++++++ 2 files changed, 180 insertions(+) diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index b0e25ec7d6b9..73dcee3532c1 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -40,3 +40,9 @@ DIST dotnet-sdk-8.0.402-linux-musl-arm.tar.gz 206766969 BLAKE2B a2f1f09e58b26ab0 DIST dotnet-sdk-8.0.402-linux-musl-arm64.tar.gz 207283957 BLAKE2B da6d7662bc2d9d2573f63a948dacde273ac9f403a36bd6e1eaed7cb6130bf3b837494e62e30754cd66edc452ae167ebb7636935b8fe4f6e77882e9dd5dbd5fb5 SHA512 939a8eeb001983f493828eda5cea9cfe26245d7cd6be11a9f303d04a4b7d6d7bafbda64ae64243d5aa6d6583e1e58115053215369e14b1aaf9d914f311ada1c7 DIST dotnet-sdk-8.0.402-linux-musl-x64.tar.gz 211914244 BLAKE2B b6e58d60de9d102c18f6b92050831badb99946584a5348d937003e9b8c22939e7c9263c20cd53d457be494de51d055bff41d23db2a539affc6e4c495c03ab860 SHA512 3c74dd447d31363f6f753bfd8359313e8abb2b008717e9f2a860d71236aea915f0a81739045802380e211ed4f478105f00f93152983eedd9b8a43224c8531af1 DIST dotnet-sdk-8.0.402-linux-x64.tar.gz 211866121 BLAKE2B fdae6c90af5cd66cd4c8914c72ef167bfc1ab545052f2d6e8337ab4ee226a916628b883d6fdf487b9e63b9efd86517b4af112808af6dfc162e76b65e3c3ecdcd SHA512 a74f5cb0ac34ac3889c7616da7386563103e28a60fc8f767857f9b65c34c34d11301593de6b248d26c72557d63c18b0f7ce15bbcc0114f321c5e14dcec98008c +DIST dotnet-sdk-9.0.100-rc.1.24452.12-linux-arm.tar.gz 198009391 BLAKE2B 2cf5963bfa9e43e89a9213e1c8188f4378334efe43394958aefd43e44ed69cd380de75ad1ed29f21c64d14e6e06dac7165e1071e9977deaedf9db776e9a4dad0 SHA512 f31a4a2c3080a921cfdd71933d1f57c2f57ff4c43f5a0ad6f52640bc791e54f8c0526d8e1206ad21f8682357a53cf6d488a8b01107e7c34beafe2c8c3425dd8c +DIST dotnet-sdk-9.0.100-rc.1.24452.12-linux-arm64.tar.gz 198908952 BLAKE2B d188a3fbf93bb8f72d4c5e0be5729d7fb1fb63bc6e46122d8cc935917966ef3a34f648260bc2b9b8d00cc6d8b48f4cbeec137167ec287a14163a05edea413875 SHA512 f5742537128801c199a127266175066058788a26e8a603cbd26a1c16e9ef33a5d418e4790a3cea722d7de483eee8b68e0de4bb1dfdf279713369ed3b4d163a11 +DIST dotnet-sdk-9.0.100-rc.1.24452.12-linux-musl-arm.tar.gz 198139808 BLAKE2B 9229e45144e69fc61d8a968e377b1b1fd8b37d9dd6415ca1e48a5588b815daa83e519b225256c4e96d0cc1e4d9cc1f4ac5d955cf4e20556e1ced6f9826b72e13 SHA512 8480900e14bd1034f586c3e17402be2f04cab250d79b4d1dda3aa887e9fafa683ad388adf7f25b5c7b0dc433375ce1c272b3d9419636e6db0f7bf300e841a0a5 +DIST dotnet-sdk-9.0.100-rc.1.24452.12-linux-musl-arm64.tar.gz 198816947 BLAKE2B 22d235a094b21c5c2fd7cce4805017c3f8ab588315aafb559ce4944600e717489212aa6f388b7e3b784e8884aa8ebdd841b868a794316db4e50ba7cff8734b72 SHA512 656bfa4e7c4a3ee280b99eaffa620b09b89b3a3b9f6d33c9d787c1f8938b84afb5aa43d80546e81a2bfd532770c282c59aea167f50d01a57027a2061e595f0e9 +DIST dotnet-sdk-9.0.100-rc.1.24452.12-linux-musl-x64.tar.gz 203678090 BLAKE2B 6aa341185b68d33c4479b223f48308c43bb416e177174c43884f6a32537ebae10dc2c4225a8d119ceb7209fbfca9faf4ea7416a5cb3981e6c295e11e0abb6b6b SHA512 b1d8004cf9c3ffb530fbb3d4259174cb076a32ba00268daa43dbf452fe6d46ccf979a63d7f53ae70a2fa7a101a9df1bd3b840552ac92a852119bb7385a65f65f +DIST dotnet-sdk-9.0.100-rc.1.24452.12-linux-x64.tar.gz 203613000 BLAKE2B 75d2682a2c9543fc79276f93e5ae1f1323f6a6b1d8aa61daff35b288b6424ef803d8a26846f982afe571688e83ebb6df76ab6678708addf422537edcc35aba0b SHA512 e8130817b779d0104a6eee33d98d97c3fad1c336013435f47c0e9e22370172b75da37ade76e49dec7cbe696884390d2e6941cc69e2bad5593d6d1c6b41083051 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.100.1.24452.12_rc.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.100.1.24452.12_rc.ebuild new file mode 100644 index 000000000000..8b4a486015bb --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-9.0.100.1.24452.12_rc.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +REAL_PV="$(ver_cut 1-3)-rc.$(ver_cut 4-6)" + +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/${REAL_PV}/dotnet-sdk-${REAL_PV}-linux-x64.tar.gz + ) + elibc_musl? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${REAL_PV}/dotnet-sdk-${REAL_PV}-linux-musl-x64.tar.gz + ) +) +arm? ( + elibc_glibc? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${REAL_PV}/dotnet-sdk-${REAL_PV}-linux-arm.tar.gz + ) + elibc_musl? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${REAL_PV}/dotnet-sdk-${REAL_PV}-linux-musl-arm.tar.gz + ) +) +arm64? ( + elibc_glibc? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${REAL_PV}/dotnet-sdk-${REAL_PV}-linux-arm64.tar.gz + ) + elibc_musl? ( + https://dotnetcli.azureedge.net/dotnet/Sdk/${REAL_PV}/dotnet-sdk-${REAL_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" + +# Currently unsupported in ::gentoo. +# CURRENT_NUGETS_DEPEND=" +# ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} +# " +EXTRA_NUGETS_DEPEND=" + ~dev-dotnet/dotnet-runtime-nugets-6.0.33 + ~dev-dotnet/dotnet-runtime-nugets-7.0.20 + ~dev-dotnet/dotnet-runtime-nugets-8.0.8 +" +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 +}