From 22230e510e031a97cafc85353610e573b7508e98 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 1 Feb 2024 17:48:32 +0000 Subject: gentoo auto-resync : 01:02:2024 - 17:48:32 --- dev-dotnet/Manifest.gz | Bin 4295 -> 4295 bytes dev-dotnet/dotnet-sdk-bin/Manifest | 8 +- .../dotnet-sdk-bin-6.0.417-r3.ebuild | 146 -------------------- .../dotnet-sdk-bin-6.0.417-r4.ebuild | 145 ++++++++++++++++++++ .../dotnet-sdk-bin-7.0.404-r3.ebuild | 147 -------------------- .../dotnet-sdk-bin-7.0.404-r4.ebuild | 146 ++++++++++++++++++++ .../dotnet-sdk-bin-8.0.100-r3.ebuild | 148 --------------------- .../dotnet-sdk-bin-8.0.100-r4.ebuild | 147 ++++++++++++++++++++ .../dotnet-sdk-bin-8.0.101-r2.ebuild | 148 --------------------- .../dotnet-sdk-bin-8.0.101-r3.ebuild | 147 ++++++++++++++++++++ dev-dotnet/dotnet-sdk/Manifest | 2 +- dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild | 8 +- 12 files changed, 594 insertions(+), 598 deletions(-) delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r3.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r4.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r4.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r4.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r3.ebuild (limited to 'dev-dotnet') diff --git a/dev-dotnet/Manifest.gz b/dev-dotnet/Manifest.gz index 9127eb4c38ae..dce227ead5a4 100644 Binary files a/dev-dotnet/Manifest.gz and b/dev-dotnet/Manifest.gz differ diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest index 69ff5f2e5c98..f9560e22d6d0 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-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 +EBUILD dotnet-sdk-bin-6.0.417-r4.ebuild 3648 BLAKE2B 30f9f9137ca49917cab920be7512d598892bddb724bfa46f661a0e2fd5803c3eba49e1bfe9efdab9d807c8d9c232fd6e0a46850f82e1be436e961cd01c4ea7a3 SHA512 8e5462640b371e08dc6ae09b4dabb87b5fbed64e489a651205e300233d91858ebfe06448550d7eff0ec2a19ea7a0e83eb4f5a6d35728f9b215ff632a6db06442 +EBUILD dotnet-sdk-bin-7.0.404-r4.ebuild 3690 BLAKE2B c41cb0900c2443dd7513742631524dd506ba7369cdb1e28a013fae0288a146ca5e2dfb6c8cf0811e856ebf91ba030f3191a6d9f357dac3ddf6a14b751ccdddd9 SHA512 7a98fb4176848cac670e05160f83efc1fa4eb733d959906328106c5fd530f786105ec9352e3d44a4303488bbf2a9ea492ec157ac1dd0407b16726ea5173dbadb +EBUILD dotnet-sdk-bin-8.0.100-r4.ebuild 3731 BLAKE2B 8d0a4db925472a4496dc059cbd7ff865177b5304c98b8184f2482a7786bf9d4214f0c0fcab4800c0191d2628d13707f69b37bade9ceb644d040914e1224c4583 SHA512 2dd1a3e3df3a26b83c55ecfd00bd3ea56b5550018bb60756b83f6173e2479463377e7ad586bacaaeb735ca28c6679339590b6fd86e85350fa30c714fc6d407c5 +EBUILD dotnet-sdk-bin-8.0.101-r3.ebuild 3734 BLAKE2B a9daacbf73c5ac348fba10cc52c2970f450208a18af7c949629cfc9b153357eb1d607b19f0e94e5646feca6eae3adba7e0d462bce4ce9d16d29ed7f702c2dbcb SHA512 2c0b9e1c63106b641753ae85f87c018426f0c6cf86d53e2c7b49cc5fb85e03e8cab79445ae3b628f644735ab8087458645a3d624d2c16720cbfc48cf5057f15f MISC metadata.xml 399 BLAKE2B 77e69a42625154f791fdf1e9559921a4e7aa077e91f78d3ec52779818287d05612080ca21a4199a3531e8d1af34a78f362a07b3cd89cd027dc1f0b6cf84fbbdf SHA512 d0b85e5ea0a2a4aa361d21a81218ef5dd68f6d51972addc771681208342075a860436a135e8f219cb5b4424f8a40d1dace8260c6c0eb1da3ef1a0dd13811c1d0 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 deleted file mode 100644 index 11eef21196e3..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r3.ebuild +++ /dev/null @@ -1,146 +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}" - - # 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-6.0.417-r4.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r4.ebuild new file mode 100644 index 000000000000..0714019b2155 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.417-r4.ebuild @@ -0,0 +1,145 @@ +# 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" + +# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, +# bug https://bugs.gentoo.org/923430 +RESTRICT="splitdebug strip" + +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-7.0.404-r3.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild deleted file mode 100644 index fec8f0f1835d..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r3.ebuild +++ /dev/null @@ -1,147 +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}" - - # 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-r4.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r4.ebuild new file mode 100644 index 000000000000..3e3f048ac1ab --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.404-r4.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}.14" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="amd64 arm arm64" + +# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, +# bug https://bugs.gentoo.org/923430 +RESTRICT="splitdebug strip" + +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-8.0.100-r3.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild deleted file mode 100644 index e2e720b4af62..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r3.ebuild +++ /dev/null @@ -1,148 +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}" - - # 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-r4.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r4.ebuild new file mode 100644 index 000000000000..06710163ef35 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.100-r4.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}.0" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="amd64 arm arm64" + +# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, +# bug https://bugs.gentoo.org/923430 +RESTRICT="splitdebug strip" + +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.101-r2.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild deleted file mode 100644 index b4bdad035971..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r2.ebuild +++ /dev/null @@ -1,148 +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}" - - # 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-r3.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-r3.ebuild new file mode 100644 index 000000000000..81675d234044 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.101-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}.1" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64" + +# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, +# bug https://bugs.gentoo.org/923430 +RESTRICT="splitdebug strip" + +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/Manifest b/dev-dotnet/dotnet-sdk/Manifest index 0bd53b97f0c3..6200d66b9f9f 100644 --- a/dev-dotnet/dotnet-sdk/Manifest +++ b/dev-dotnet/dotnet-sdk/Manifest @@ -1,3 +1,3 @@ DIST dotnet-sdk-8.0.100-prepared-gentoo-amd64.tar.xz 1714535960 BLAKE2B fd6027b86168d8801b1d8a7bbb08e9c358918a7693b03fa4e7e43e2a58568a65d71e2c5907ec7c7a03b83685608cd16aa010706fb4d14cd44ab0f0669654c8c2 SHA512 75efdcf44383445bc81981e2077be03c7311db316e295aa7f960f50d65367cde9bd86351f345072feb827a569c8de4fa8c9829d92000d2cbeb312ee9ddc17b44 -EBUILD dotnet-sdk-8.0.100-r2.ebuild 4216 BLAKE2B 7ffbafde89cfbcf2b4f62ee35832dcf9d49180e0e6c4090ead9ddb1b308b668cfb2b45d1af7a580f8fb2525acf4644bb862e3166e6ace7da4173787761814399 SHA512 5c7f6eb4ad46f06d3448bdee91b53b05ca3b2bf37b1d1f72c82888e0c1734b8c23c99adcce4b3f1d9ef1e9629e5fe67b6018c2c9c08d7c8de877cfffd9dbf7e8 +EBUILD dotnet-sdk-8.0.100-r2.ebuild 4212 BLAKE2B 158ed41ee90860f1c942ff170cced99f378d46d50e1c78000a410ea87dce2212906459db37d4f6b871f2a7bbc90e590e59e08334d7eae9787b3e2fb1fec39596 SHA512 755171a0dc355fcccb06094ef5a166774b4b342a41e2ad26e30f05ed320ebcd7182ff6b6675275905990402f2f6919e0955246e5207ad48acbb9e37e9f860466 MISC metadata.xml 518 BLAKE2B f9733bd3b6b343126c400ce35dc7e4e57421a6643219341c4beab83d47beb1182306f3d0c5f1e7ff0854fd49818b2c6af37598170b88e2eb82b62d478735abf0 SHA512 940830b1208c39e4cfd72817d399156b027e5ac51dcc7bb983c9ec973f8f2ef76e440a2d358d15f7a2e185c42ae98c986210224f1477923967e3dc70eb0cfde9 diff --git a/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild b/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild index c312e4734619..75ac94521502 100644 --- a/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild +++ b/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild @@ -42,6 +42,10 @@ S="${WORKDIR}/${PN}-${RUNTIME_SLOT}" LICENSE="MIT" KEYWORDS="amd64" +# 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} " @@ -152,10 +156,6 @@ src_install() { fperms 0755 "${dest}" dosym -r "${dest}/dotnet" "/usr/bin/dotnet-${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() { -- cgit v1.2.3