diff options
Diffstat (limited to 'dev-dotnet')
-rw-r--r-- | dev-dotnet/dotnet-sdk-bin/Manifest | 6 | ||||
-rw-r--r-- | dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.105.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 dd85bac39cfc..305849dbc134 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -10,6 +10,12 @@ DIST dotnet-sdk-7.0.404-linux-musl-arm.tar.gz 214217752 BLAKE2B 32d392dfd4d4e60b DIST dotnet-sdk-7.0.404-linux-musl-arm64.tar.gz 213918271 BLAKE2B a310e95905ccb65506318c10fa4d492baf822dd143ac3ded8e9212ab0f304e188d0728deeeb03a0d34d3ab95e88fbc2d4fd4d727c2841bdd9401cf27396edf4b SHA512 209f29d23945d61d8d2bce57ed120b970ffdde7a23fcd397602e4755ff4be6ace2284d42297708e7cb2ef8a2f569885b0595b218e01b84b923c76c58fee1adb4 DIST dotnet-sdk-7.0.404-linux-musl-x64.tar.gz 218631734 BLAKE2B 4dc1d752cbb6c60d494be3b8fd9e1bdebdca0f48e5c61cea2948ca384c9136b87612cfd89a77cd9960b4a660061c3f2791ce8be1987edade2d0c70e28b325d1d SHA512 db21720eadc79fadf62332cf0a10bbf8c83a96521b25967e69ce54a14a16d9098abb9c8d2c263170332a30ccd0fd1eca92129a1e9fc3c3460fc265ace38bb04c DIST dotnet-sdk-7.0.404-linux-x64.tar.gz 219088775 BLAKE2B 5b743021dd2209228fea77c7b63dc423ce70f1e8bae317dca0d3cd4e62ea4f770b790ca64dd15173281ef8224fce6fc211b57fe5460ce0ed427afe4b2a064c1a SHA512 f5c122044e9a107968af1a534051e28242f45307c3db760fbb4f3a003d92d8ea5a856ad4c4e8e4b88a3b6a825fe5e3c9e596c9d2cfa0eca8d5d9ee2c5dad0053 +DIST dotnet-sdk-8.0.105-linux-arm.tar.gz 209116084 BLAKE2B 3166c6b24ef6fe7dc27dba5bfd349a7006a353d587d7d6ed509038d2d50566ff50450b4ec166639fd5d995d066b9b0bc035b5b824472e2e5ef60c17510f495de SHA512 6aa5adc487b2f5e887a7c91ea9a6d1f948ea5ca6520e93826610c5ea58827f37421bd0ef09ebc0d9e2d3108dcb41aedb51188630df5e1da199e0ab2ee0d6acf8 +DIST dotnet-sdk-8.0.105-linux-arm64.tar.gz 208945369 BLAKE2B 98e61c44cbeb58c9b6e6da2eb7108b25f08ccf2deab2af0ba48b47f7a71d7955e6c4be97d111965faefc9b42aa08492347b8b4a27d352fd288a88e029d33b9a0 SHA512 8f04afa385676d2ec879ad22734a4c869d931ba4bc7507d0aa5889561d0230e382598057bdf75792048b28bd9a1c8eb187e80691f603309a46d6c50d71373381 +DIST dotnet-sdk-8.0.105-linux-musl-arm.tar.gz 209188121 BLAKE2B d4974b81d0c6c466293327fbef9774d18794bdbdab254858f75b997eb6ee224509d46bc75444922426e3dc58f47890489b8846a6053136e49db9372963c1b55a SHA512 b898fadd8b4a4e6a6ec2c3d936d20729dd03f912123fe7b8a40bbee609839ad019a6501a21712ad4e9b6c93d6a1ce5f8c9227f0fb5387edb08a0a8bea44d3c31 +DIST dotnet-sdk-8.0.105-linux-musl-arm64.tar.gz 209063416 BLAKE2B bd6d7ceffb7ab1ccef60b312c5e2eab073d8b5397534d867e41ce6942f5addcc96efe10fa959e45004b62fb728ab24e4b1443c3131531a5df62af60474617b53 SHA512 ea1cbb3fe35447418f552d51a359a4f133754240aeca91fea8e5ed97dcdd9b01a4cbfeb6354ec1a3f71c7fcdf82000c7f9492c42b66fc69caafd023927e6f658 +DIST dotnet-sdk-8.0.105-linux-musl-x64.tar.gz 213676181 BLAKE2B 8aa2513e2520c175ac80278af66bc5f943243f373b5d82b89af05a0e1174404e5cf79ecf7e75be0ba1bcb90b7f4886377eb833bf658d7fcac8377bad6765d299 SHA512 d8a8b2ea25b70139a4ac1356c210221243add6956a946fbc24c7195850624a4f25569e22024188dd718b1ff0fadbf775a6df97f8aa5ec2244159adfd81bb14dc +DIST dotnet-sdk-8.0.105-linux-x64.tar.gz 213741300 BLAKE2B 17f6fe0d440fcb89d1b8959b869efc1adbd72dad6029a5d7e2f563ff41d9724402528e88758ac75f7ff6a0e1a36a354e5f46f3bae450fb6dacafaddadd330563 SHA512 60ff271ee7851ff9ab851f9dc3e3d0abc87ac9b982959abfc8f0a3b58301fb6a0ff7b9f07f8df18668e1e8182c688d0d661bb9cb1771a2d40a0015d02009fce8 DIST dotnet-sdk-8.0.203-linux-arm.tar.gz 221422071 BLAKE2B c4cb0184eb5bb4435c2f73058f857dba1d163c81d23ad33645b82ea4afa9981c09c70be7a054596ed77cf653967d07a1f95deea9ff1dc3d7986c35e264eb86e9 SHA512 ebebd4f3be6e9772f23d313b991950d6997716fc0f9c079414a72a0f998c55a32ea19f145ea1b1724fea527ca12a7cbea7afefa60a520679a20b99f68f184e15 DIST dotnet-sdk-8.0.203-linux-arm64.tar.gz 221512731 BLAKE2B d23b64c4263a674c79a649c1afe2d301f81598150d2bed61c8c8abf6175b46ef5b10b10307e1c85247d1724689c3608f7712cbbf90b2b4f5bb0afa9fc55d9e35 SHA512 cda16b2141c1115ec42303d82f2720ddf5368b7242207e21d3fdd81fa89df2676f0d394ca7293c76c35ed2448b289174739771ec447404ad9c84c72459cc0d81 DIST dotnet-sdk-8.0.203-linux-musl-arm.tar.gz 221707667 BLAKE2B f4561a35e0ce7481fbe29b2b5148d2f598690b26faf7b252efab6fc1f660553042b4e159aee1060687f6024158a9fd9582aef2c563a840f9a5ff44473186d0ad SHA512 4ae716cac29a5381dc6341b2e5214f57c7b82928a0a756a2b3cef7d8063d52a29a66cea10e3ae03e379ec220a833e479f944dc762b3cc44c255a02bb715b84a5 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.105.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.105.ebuild new file mode 100644 index 000000000000..c28c1541ef6e --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.105.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 +} |