From aa2a28c1618b04e5d1cde61f3fe7ddc8328fe5bd Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Thu, 1 Feb 2024 14:14:00 +0100 Subject: dev-dotnet/dotnet-sdk-bin: do not strip any binaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/923430 Signed-off-by: Maciej Barć --- .../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 ++++++++++++++++++++ 8 files changed, 585 insertions(+), 589 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/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 +} -- cgit v1.2.3-65-gdbad