From 1e39e6a8c127767a57f0465ed9ece4fefb44b4ae Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 1 Feb 2024 11:48:39 +0000 Subject: gentoo auto-resync : 01:02:2024 - 11:48:38 --- dev-dotnet/dotnet-sdk-bin/Manifest | 8 +- .../dotnet-sdk-bin-6.0.417-r2.ebuild | 142 -------------------- .../dotnet-sdk-bin-6.0.417-r3.ebuild | 146 ++++++++++++++++++++ .../dotnet-sdk-bin-7.0.404-r2.ebuild | 143 -------------------- .../dotnet-sdk-bin-7.0.404-r3.ebuild | 147 ++++++++++++++++++++ .../dotnet-sdk-bin-8.0.100-r2.ebuild | 144 -------------------- .../dotnet-sdk-bin-8.0.100-r3.ebuild | 148 +++++++++++++++++++++ .../dotnet-sdk-bin-8.0.101-r1.ebuild | 144 -------------------- .../dotnet-sdk-bin-8.0.101-r2.ebuild | 148 +++++++++++++++++++++ 9 files changed, 593 insertions(+), 577 deletions(-) delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r2.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r3.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r2.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r2.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r1.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild (limited to 'dev-dotnet/dotnet-sdk-bin') diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index 764cb73e676d..69ff5f2e5c98 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -22,8 +22,8 @@ DIST dotnet-sdk-8.0.101-linux-musl-arm.tar.gz 209611402 BLAKE2B d833a8bcf794e3ea DIST dotnet-sdk-8.0.101-linux-musl-arm64.tar.gz 209818487 BLAKE2B ac7bb3babf4008a513b57c37d8f7b8e0bdf119e51ad9e42011aba7cfe6a32e11d8d9a0b2c835d25d39ad7a74302804ecb776acf0dafe134cf276eae86ba4ddf9 SHA512 796d9fa4fda9d7d0f014820e20a8bad63052ba5e15dcb4fcb44ce33438a1aa4cd5e2ea0ad4a538b07946302b9649638762e3bfaa22a70318f0f17bc50c105193 DIST dotnet-sdk-8.0.101-linux-musl-x64.tar.gz 214418879 BLAKE2B 981dab8fb6248749e34f7229cf0c3f3702908c6347e6cf2c266787913e79095af2acb81316a82ae55c74d4a34a4c782218c69e92ac6cf3ce6830350bc3f949c5 SHA512 95751235b774ed1050b721528495c1ba561c0bce99989a5fd6c0d0510b8b7d07a34ef186f347d16194b07d5ec4966ae8cb47aa7c1a65eebcea8a68fd90fb22e5 DIST dotnet-sdk-8.0.101-linux-x64.tar.gz 214222713 BLAKE2B 7b886f200ec07e6625ca004c7875a3a921d2e935c0767173821502c0d37974aecf89e4bbee62c44c83f49f306107189311d94a18f4265408acbcc708e5688984 SHA512 26df0151a3a59c4403b52ba0f0df61eaa904110d897be604f19dcaa27d50860c82296733329cb4a3cf20a2c2e518e8f5d5f36dfb7931bf714a45e46b11487c9a -EBUILD dotnet-sdk-bin-6.0.417-r2.ebuild 3527 BLAKE2B 7b8591baf37564d7fc666cf5732da90f1b3fa1095bdd80bf81d345478794de1e8ca2a49409dfc7498a759b78d9d736344828abe2b4bda8aa2a4482a5a7785e1f SHA512 cd1e4225818f58dd0d4341c98db2037a47f5a9d76704d0cdbc01f288ee0cb6016afa5567a11277310d20d7169bedab1624d861dc3484a4d8b37e89f5a144c8ec -EBUILD dotnet-sdk-bin-7.0.404-r2.ebuild 3569 BLAKE2B c67c8108f15b3b9fff9b1fc183beec2ff8ffe9f96b1f6684c8b3022a75983ed2b5162eba5f4621f272fc1b883a05b994257322edf7e19d7092a9bb5bde8f201c SHA512 3925db24d2d8914eee6d59c24b82ac945660cc1ffb3024af78cf78413c87b8c2fd9fa76757c60addb8601fbcd66563c95ef1c1628dff02828b2382ef9a40202f -EBUILD dotnet-sdk-bin-8.0.100-r2.ebuild 3610 BLAKE2B b58403afd7ed2bc7832473b725e1f0edc983fa013d2eef16230598117d52b80e12e7ae28417b5fcc3fc916b6210941855332f495c397d3e41f6d9f061b58bd39 SHA512 5c1abbfba9c0bd7b8f21aa3c6a5ca3935d726d740e95694e85d08acebef1fbe62ceaf845995003793f31a4e894552d8c068f5647a8c5f44ffb7e834482379464 -EBUILD dotnet-sdk-bin-8.0.101-r1.ebuild 3613 BLAKE2B 14d6b2366c9189badd8d89eb6969396d672bbc31fe0379d3e9a38df8259581555cb4159d4c009dbcfaa707cce7afc48d3ee00f153a5075de5fbdc5a93d5921c8 SHA512 0b8ca4d5659e2bc865a08d71d6be6eb9c7b0a9050619e460efec1d0d9a05e7669060b14ea9a287ddd5553dafc13b650d429b64bc411afd00ad67f7c9b2fbdaba +EBUILD dotnet-sdk-bin-6.0.417-r3.ebuild 3674 BLAKE2B 0eb2ae6362caf09ea1d814f476e3e4912f5af4126023b2aa7151fc39ef727ea91733243221bc1814af744435e0176a1181272fb6f80576701b2ddffed1f7e466 SHA512 0d556749b04c8dd93ef70dc9cf0859a9d64c0117d23216f144aeb4200e1b423fd0cac6408bd24f315000914a57a528037366188ab76fd2f175f4cec4b3741aea +EBUILD dotnet-sdk-bin-7.0.404-r3.ebuild 3716 BLAKE2B cec3c873e9e636adfc55d1e9ea8f345e4eac87d18f8f21de947c472cffe1cdfd30da77dfba4a97fa0556f88da83be6e318722b5db628a9e9722d29f2a5b67831 SHA512 eab75e36036f84c7a084446f5cf683cb835b77a043c8ffc04d42f503607d1784c6139fec997874157c85967b699eda4a44d734a4de9d72848c6ab44bce069588 +EBUILD dotnet-sdk-bin-8.0.100-r3.ebuild 3757 BLAKE2B fb4d3115f9153f3a340f334050ef187bbc51bd16ea3f58803fcc10f4aab9da6a924558a9c2077615280602a97115ce4ecce4a43846d1f77c65a9bd7304e4c8eb SHA512 dcfb55105d70968cc9f95c17aa5406a2c6610c66f6c33a638bac0ebfa7de972b50d4b78315bf7d29ba39b9af059a23480774df0465c8e6dc539d0109a4985f94 +EBUILD dotnet-sdk-bin-8.0.101-r2.ebuild 3760 BLAKE2B c3e52d71aab1c820af3cc8cfeae3b7c624adddd67ec5ff45314f70b758d6ea053fd919d2bfca027a48d10ec9554ed45ca3b8f47415db11bc85a6b779ad153238 SHA512 a63bbb652b9e8bf04bede053d6fd0bd1f31bdd30dc7aad07376334475c733475027da88d8fe4b2c47ccdb9026177a2dbe3599a30046822c8ecf1a67bfa781092 MISC metadata.xml 399 BLAKE2B 77e69a42625154f791fdf1e9559921a4e7aa077e91f78d3ec52779818287d05612080ca21a4199a3531e8d1af34a78f362a07b3cd89cd027dc1f0b6cf84fbbdf SHA512 d0b85e5ea0a2a4aa361d21a81218ef5dd68f6d51972addc771681208342075a860436a135e8f219cb5b4424f8a40d1dace8260c6c0eb1da3ef1a0dd13811c1d0 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r2.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r2.ebuild deleted file mode 100644 index ff4d8c61be4f..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r2.ebuild +++ /dev/null @@ -1,142 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=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}" - -SDK_SLOT="$(ver_cut 1-2)" -RUNTIME_SLOT="${SDK_SLOT}.25" -SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" - -LICENSE="MIT" -KEYWORDS="amd64 arm arm64" -RESTRICT="splitdebug" - -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=" - ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} -" - -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 -} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r3.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r3.ebuild new file mode 100644 index 000000000000..11eef21196e3 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r3.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=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}" + +SDK_SLOT="$(ver_cut 1-2)" +RUNTIME_SLOT="${SDK_SLOT}.25" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="amd64 arm arm64" +RESTRICT="splitdebug" + +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=" + ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} +" + +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}" + + # STRIP="llvm-strip" corrupts some executables when using the patchelf hack, + # bug https://bugs.gentoo.org/923430 + dostrip -x "/${dest}/dotnet" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r2.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r2.ebuild deleted file mode 100644 index ef7d6fbccea9..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r2.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=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}" - -SDK_SLOT="$(ver_cut 1-2)" -RUNTIME_SLOT="${SDK_SLOT}.14" -SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" - -LICENSE="MIT" -KEYWORDS="amd64 arm arm64" -RESTRICT="splitdebug" - -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=" - ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} - ~dev-dotnet/dotnet-runtime-nugets-6.0.25 -" - -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 -} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild new file mode 100644 index 000000000000..fec8f0f1835d --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=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}" + +SDK_SLOT="$(ver_cut 1-2)" +RUNTIME_SLOT="${SDK_SLOT}.14" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="amd64 arm arm64" +RESTRICT="splitdebug" + +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=" + ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} + ~dev-dotnet/dotnet-runtime-nugets-6.0.25 +" + +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}" + + # STRIP="llvm-strip" corrupts some executables when using the patchelf hack, + # bug https://bugs.gentoo.org/923430 + dostrip -x "/${dest}/dotnet" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r2.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r2.ebuild deleted file mode 100644 index 4b12b99a8b28..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r2.ebuild +++ /dev/null @@ -1,144 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=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}" - -SDK_SLOT="$(ver_cut 1-2)" -RUNTIME_SLOT="${SDK_SLOT}.0" -SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" - -LICENSE="MIT" -KEYWORDS="amd64 arm arm64" -RESTRICT="splitdebug" - -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=" - ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} - ~dev-dotnet/dotnet-runtime-nugets-6.0.25 - ~dev-dotnet/dotnet-runtime-nugets-7.0.14 -" - -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 -} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild new file mode 100644 index 000000000000..e2e720b4af62 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=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}" + +SDK_SLOT="$(ver_cut 1-2)" +RUNTIME_SLOT="${SDK_SLOT}.0" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="amd64 arm arm64" +RESTRICT="splitdebug" + +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=" + ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} + ~dev-dotnet/dotnet-runtime-nugets-6.0.25 + ~dev-dotnet/dotnet-runtime-nugets-7.0.14 +" + +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}" + + # STRIP="llvm-strip" corrupts some executables when using the patchelf hack, + # bug https://bugs.gentoo.org/923430 + dostrip -x "/${dest}/dotnet" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r1.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r1.ebuild deleted file mode 100644 index b00890c77647..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r1.ebuild +++ /dev/null @@ -1,144 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=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}" - -SDK_SLOT="$(ver_cut 1-2)" -RUNTIME_SLOT="${SDK_SLOT}.1" -SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" - -LICENSE="MIT" -KEYWORDS="~amd64 ~arm ~arm64" -RESTRICT="splitdebug" - -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=" - ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} - ~dev-dotnet/dotnet-runtime-nugets-6.0.26 - ~dev-dotnet/dotnet-runtime-nugets-7.0.15 -" - -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 -} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild new file mode 100644 index 000000000000..b4bdad035971 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=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}" + +SDK_SLOT="$(ver_cut 1-2)" +RUNTIME_SLOT="${SDK_SLOT}.1" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64" +RESTRICT="splitdebug" + +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=" + ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} + ~dev-dotnet/dotnet-runtime-nugets-6.0.26 + ~dev-dotnet/dotnet-runtime-nugets-7.0.15 +" + +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}" + + # STRIP="llvm-strip" corrupts some executables when using the patchelf hack, + # bug https://bugs.gentoo.org/923430 + dostrip -x "/${dest}/dotnet" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} -- cgit v1.2.3