summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-06-04 12:49:34 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-06-04 17:07:32 +0200
commitef5947c814926f310595780478d198cb9a3e7690 (patch)
tree283760b51bf006a5063ebbcd5ec77eec8c86e1bb /dev-dotnet/dotnet-sdk-bin
parentdev-dotnet/dotnet-runtime-nugets: bump to 7.0.20 (diff)
downloadgentoo-ef5947c814926f310595780478d198cb9a3e7690.tar.gz
gentoo-ef5947c814926f310595780478d198cb9a3e7690.tar.bz2
gentoo-ef5947c814926f310595780478d198cb9a3e7690.zip
dev-dotnet/dotnet-sdk-bin: bump to 8.0.301
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-dotnet/dotnet-sdk-bin')
-rw-r--r--dev-dotnet/dotnet-sdk-bin/Manifest6
-rw-r--r--dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.301.ebuild158
2 files changed, 164 insertions, 0 deletions
diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest
index b9261dd3bc45..f07406874b0b 100644
--- a/dev-dotnet/dotnet-sdk-bin/Manifest
+++ b/dev-dotnet/dotnet-sdk-bin/Manifest
@@ -22,3 +22,9 @@ DIST dotnet-sdk-8.0.300-linux-musl-arm.tar.gz 217378627 BLAKE2B f68d287fba305dff
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
+DIST dotnet-sdk-8.0.301-linux-arm.tar.gz 217540827 BLAKE2B 4fc4c33c72bae3eeadbb9097032423924a46b69ba2329a75934a2607216440ac38523caa104d458b86cee7d2ce5c462b9d51be65ebf49a143e7e2387892d844d SHA512 9a44abe4ab6c6a8b8b8c599b140722098e4c710fb86d3ff387402ce98fc5bdf2e8271558b2de0822b5ef73c8781d5fae219d69411697b3cd59ccfc0283286a69
+DIST dotnet-sdk-8.0.301-linux-arm64.tar.gz 217384858 BLAKE2B 6ef4fecf1877387c89c360deff9b17f51f4953cb1cfad6524661d5f71bf035eda412fa4b2439cdf749061c7ddccae2359243a92a1fdce273673654e4214271b7 SHA512 cb904a625d5e4ef4db995225d6705b84201dc7d7d09a0b1669baccc86e05419472719025036dd78983b21850f7663d159ae41926364d1d3ca0eab62862f75d29
+DIST dotnet-sdk-8.0.301-linux-musl-arm.tar.gz 217577714 BLAKE2B ab930f5176c26d1c41dc063d6e33fa86848a12d8c4c05266920fa46bc1c139adfca0e2d082665851be427130b9f5b39350a3a39750756e2743f6664327301ac9 SHA512 19c32bf5cc14452cd0eaa40eceb0f5d63730c80ee9045cd9ee9057bb78b3add430b7337c2e2ddc05902777ba6517f879c10572c32da0ce21877ce1d9523a753b
+DIST dotnet-sdk-8.0.301-linux-musl-arm64.tar.gz 217393481 BLAKE2B ee127bf72e8fa3c5416ea0d7d527ab2668789c438dedb74f09e69acd3b6c12aced5d482384e355ae7437e5a117921ed651e3348688ccaf25842794379889ef07 SHA512 646716f924ab20826a3520a2f75fa0e188f2306b8b8a1695f15834a14688dfd9c871909401810aaa387abb2eb9397414b21ac3b6b0ce1f3458dc96fb84c951bb
+DIST dotnet-sdk-8.0.301-linux-musl-x64.tar.gz 222149362 BLAKE2B 1d3d1b060e5162aba1db8b9dc626ef38f52dc5794601b2cbde87638413354ac9fa04fe175a60b2a38b54069322a79701d46600ef8e8a5773890699e4e7f8597f SHA512 25e11e1b658e89121650ac5ec2b21d0cda42442d807dc3fd32b79f2d818ace9ed505f0e95994ed6edac7392c62dc094a056ea43d8c054a190cb3fe395fe802cd
+DIST dotnet-sdk-8.0.301-linux-x64.tar.gz 222131054 BLAKE2B 811ce5a5031269c641e75c668a7a4ccaf5fa4bc75adb4e5d8c8ae4c75fe491a6dd9a0632e5f6b2ee6b343e775365c1b9e3b5ea353015a39a53f0ccdbddbbf6c4 SHA512 6e2e1ad5fe3f00e6974ad3eac9c5b74cd09521f19e06eb9aff45a44d6c55e4a2c1cd489364735215d2ea53cec2a7d45892a5ede344a8421be9ad15872c3496a2
diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.301.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.301.ebuild
new file mode 100644
index 000000000000..168c060e8789
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.301.ebuild
@@ -0,0 +1,158 @@
+# 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}.6"
+
+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}"
+# 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"
+
+CURRENT_NUGETS_DEPEND="
+ ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT}
+"
+EXTRA_NUGETS_DEPEND="
+ ~dev-dotnet/dotnet-runtime-nugets-6.0.31
+ ~dev-dotnet/dotnet-runtime-nugets-7.0.20
+"
+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
+}