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 B59E5158041 for ; Wed, 13 Mar 2024 16:40:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 070F7E29BE; Wed, 13 Mar 2024 16:40:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CED3DE29BF for ; Wed, 13 Mar 2024 16:40:27 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 864F4340DE6 for ; Wed, 13 Mar 2024 16:40:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AC8631525 for ; Wed, 13 Mar 2024 16:40:22 +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: <1710348015.7788269d3b1b8c9ee2598cb191637cfe945981f1.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-8.0.202.ebuild X-VCS-Directories: dev-dotnet/dotnet-sdk-bin/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 7788269d3b1b8c9ee2598cb191637cfe945981f1 X-VCS-Branch: master Date: Wed, 13 Mar 2024 16:40:22 +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: 2a4f408c-3a46-4eba-98d3-7c260711010f X-Archives-Hash: d3e7a9f05fba7ab631edea5221ed8a4f commit: 7788269d3b1b8c9ee2598cb191637cfe945981f1 Author: Maciej Barć gentoo org> AuthorDate: Wed Mar 13 15:00:24 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Wed Mar 13 16:40:15 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7788269d dev-dotnet/dotnet-sdk-bin: bump to 8.0.202 Signed-off-by: Maciej Barć gentoo.org> dev-dotnet/dotnet-sdk-bin/Manifest | 6 + .../dotnet-sdk-bin/dotnet-sdk-bin-8.0.202.ebuild | 157 +++++++++++++++++++++ 2 files changed, 163 insertions(+) diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index 095874fb11db..ea3ec5bc5d6c 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -22,3 +22,9 @@ DIST dotnet-sdk-8.0.201-linux-musl-arm.tar.gz 221507166 BLAKE2B e2e72b5d4f685180 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 +DIST dotnet-sdk-8.0.202-linux-arm.tar.gz 221618859 BLAKE2B 5956cc1d0b726e6a52de9c8c6ca1fa4c3400d46b228f35274022ac3eaa4e6c59f9ecb80cf1ecdf0ab4f1cac3cd27116897d57afa4523bdbc95e5b65807f60bb3 SHA512 8cc8be3cad5c3e12ea8293e7b2e2d66647ff01fcf1d390791350a55e13f4c5e74a673dac85918e878b25f61eda690da5c7af7c2d289d6f4d0277476b43366961 +DIST dotnet-sdk-8.0.202-linux-arm64.tar.gz 221517969 BLAKE2B e73b5cf47ccf2fcdcb6bb1a6df04ac35e352243bf0d2e862e2d94ea727019e3033a9237141cfc174ef8ef5a0e212cb294c9fe1506292dc418ffabd83c7f7dddb SHA512 83ba9a467487de49bb38d388010c3f0d51336e6167cf3e116e56cd18b0ffd3d52099f8567bc434ce02430beef38dee20ff1e4ceb71a6d7967fc0e1c2da12ebae +DIST dotnet-sdk-8.0.202-linux-musl-arm.tar.gz 221670792 BLAKE2B 9652853fc212cebb75649217494ba649172710d08543a42bd12f5aab5b6435ff2cac03c10b069222fcb1f4921b6f2718c5caabf3a2b75ce986826aab78b0069b SHA512 7c96bad8f5cef25b499ace592536b85b264d66e5da15850b314035995ac6a157507e2744ff8207ea9db99cede9ea9773994a1319d488e8ec26a0f9edf7ea10a4 +DIST dotnet-sdk-8.0.202-linux-musl-arm64.tar.gz 221390383 BLAKE2B 5102262974b802c3a0dfefec58d025612c0fbe5f120bb57ba7a482b966193d2ff1ef762e70a14a3a38014dd35b394010e76148710e99599d2ce5fa36ca22f786 SHA512 f5d1f025d18062247e7c392903c012b5e7f625609cff19d9eac81755065fc468a1d66b0396492258257bf42a88a07e40a040d0cb296bed620d326f58e2cd69cd +DIST dotnet-sdk-8.0.202-linux-musl-x64.tar.gz 226257142 BLAKE2B dff4d5e9b97dd3af8646bf280efb097ff0dcf1f9df77e56c8ee5b3d35e78fe6ac655d8c609ef593339bac6dfbe585fd67525a19ec321ee63a75127edb72da913 SHA512 809d8e488723e7be053cf572222b0d81ea7dd10a5034617f044bd0c752f6eaa14034c2d13f093a06d64af6b5b5cc65efb5d9fbb9de8edd00d215cc8e9f26a587 +DIST dotnet-sdk-8.0.202-linux-x64.tar.gz 226275111 BLAKE2B 17ffb1919ecde439b48db6c8df52a58b12dbd3e077bde6da1f9c7057b162e35cca0e4ce4eef9cdc8c929209773dce236d31e8ca8abcf780255e577a045db144d SHA512 e0e790c7cc6f8129913317d326c599ff8e8ed4927d4e0adccbe55c50be5c353fe3d83043e529973ced2b302b8432c2ab31533b94ffe9c363eaa9964a7160643a diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.202.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.202.ebuild new file mode 100644 index 000000000000..35d59a50075c --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.202.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}.3" + +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.28 + ~dev-dotnet/dotnet-runtime-nugets-7.0.17 +" +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 +}