mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
dev-dotnet/dotnet-sdk-bin: bump to 8.0.402
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -34,3 +34,9 @@ DIST dotnet-sdk-8.0.401-linux-musl-arm.tar.gz 206681269 BLAKE2B 70b0ccf05cfba79f
|
||||
DIST dotnet-sdk-8.0.401-linux-musl-arm64.tar.gz 207159631 BLAKE2B 6147ce5db03adc6fcf565411d86dc4afa4e777ed11dc2da5760f7d7b74b268239f0e897152ace3aa39763d72c84975380945c88f7764b00f43a4752e90c44b00 SHA512 2faab93dd38a49386032083a0f4a3a5a5661d6ecff4a98f068ed7aa07b201233804fa0e5efa4911b6eebedc9994d59c4d5d843deb773e7e2627b2aa97e634a82
|
||||
DIST dotnet-sdk-8.0.401-linux-musl-x64.tar.gz 211854109 BLAKE2B 26eed64cc8fdc5e54dd14fc70ee4555909d0308317823c6dc424bbddc6196a99e7cc27b4e6a40f77d8efa659273be03b3387c37f688a254db5ebe4e8f47b0d6f SHA512 e711b74832269463e27f98b049c442d3684cdc213115133285a2b189ef4564b65127747cdd3a900de53581019bdf8f47426f2cfc9bfc1c0c3a83106f9bb54ea5
|
||||
DIST dotnet-sdk-8.0.401-linux-x64.tar.gz 211866896 BLAKE2B 48700c9b7c0044992c0e5fb32e99f2e57fb7ce27a21b8e1619f92545b426d5f53047ac8400e34fd6e36c2211fd3f675a8bd008da7aed2caf1166962ced3061b2 SHA512 4d2180e82c963318863476cf61c035bd3d82165e7b70751ba231225b5575df24d30c0789d5748c3a379e1e6896b57e59286218cacd440ffb0075c9355094fd8c
|
||||
DIST dotnet-sdk-8.0.402-linux-arm.tar.gz 206708920 BLAKE2B c903462de82ea4444e97e70dfe5241792f2daac735b79381d856cd4d902998674e08f5452ba3562355ec53c6627f91949de43b454e52e406c6955f36a4616db1 SHA512 ac654aded46a89a825f5e7471332834800b1a11a14bcd92282da155bea89966add3fa9ed8281d6f20bd4a4f5d2c5aefaf454c0c630cda09aa759c2f6a7755d10
|
||||
DIST dotnet-sdk-8.0.402-linux-arm64.tar.gz 207268193 BLAKE2B d4ae310abee221b3f114f7ee3f3def39d31fc744ffa0b943cca94f30152e332333bd02194a175793447a68d661d689ad4f37b625be13758d938499a8a800a142 SHA512 03a98e2fa90902f1251f231e268eb70c59639ef806d0466ce14ec3224d0739526a38982ca84d68e76ebd99f5962d6d490915358aa70e9276842e4f148fbd9596
|
||||
DIST dotnet-sdk-8.0.402-linux-musl-arm.tar.gz 206766969 BLAKE2B a2f1f09e58b26ab05214da579197fe6f20df1882b67aa8398d149642ab07c3de402a83d7e02d5263530962f625b00b98299cc77f75a7306b9a27b0cb3d9262d6 SHA512 d08e1bcf304c4ea4c7cde0f63a56077536e758b7cb512a593edc4afe4646f5e6256df6ebda48bb4e0955c92ae6b128e47157cb7331ae4691bc0c40a7ce732a83
|
||||
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
|
||||
|
||||
@@ -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}.8"
|
||||
|
||||
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.33
|
||||
~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
|
||||
}
|
||||
Reference in New Issue
Block a user