From b8c7370a682e4e29cda623222d17a790c01c3642 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 7 Aug 2024 12:37:21 +0100 Subject: gentoo auto-resync : 07:08:2024 - 12:37:20 --- dev-dotnet/dotnet-sdk-bin/Manifest | 21 ++- .../dotnet-sdk-bin/dotnet-sdk-bin-8.0.107.ebuild | 158 +++++++++++++++++++++ .../dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild | 158 --------------------- .../dotnet-sdk-bin/dotnet-sdk-bin-8.0.303.ebuild | 158 +++++++++++++++++++++ 4 files changed, 330 insertions(+), 165 deletions(-) create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.107.ebuild delete mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.303.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 26b39891f5c3..ecff2208ac7c 100644 --- a/dev-dotnet/dotnet-sdk-bin/Manifest +++ b/dev-dotnet/dotnet-sdk-bin/Manifest @@ -22,15 +22,22 @@ DIST dotnet-sdk-8.0.106-linux-musl-arm.tar.gz 209248865 BLAKE2B 68fa57d4cebd7ff5 DIST dotnet-sdk-8.0.106-linux-musl-arm64.tar.gz 209116519 BLAKE2B 543cc6b7fe8e7f295bf72cc39dc92a68d1b5d24e77d7083853495f27dd9e993a635598448f9a3f9dd84232c8af70b623ea6c3d27fb277288a09bdc7c740d763c SHA512 605fd1210a69fe1e933b64cb0377bda7e7fcfab17854069e252d444431260292d1470dbe645acc68e7ebec52985893497bfde9ba25a03794dbff9987437b2b45 DIST dotnet-sdk-8.0.106-linux-musl-x64.tar.gz 213814352 BLAKE2B 48bff3e97b53249fc33c79fa1630197e6dc51ec5c962060335b2a5bc2ac27ae451a83669ac364eb3c30c4e69e36a7659e52e165bb0b25511f0d2791e0d8a22be SHA512 ac5cbd009cb29624f6a686fe476ed9a6ad290aa22d9a613f2e14f35076f251e3e3ec6b7b1d1760daf5efff5e2d673654770bb9ab0761326a71dc7e190deb63ab DIST dotnet-sdk-8.0.106-linux-x64.tar.gz 213776097 BLAKE2B ee629c5b85e87306da989f8f9df4e00b46b57ff0014accfdd8de31c3ee548ec8886a602acb45a64a2db194807f403b440e7c2190e50daf0e002d43160e7d42d2 SHA512 06eecc146b16eef0654fb4fd17faec06c6dc1b7236acc7e4a33e4b13cbea1d725faeb9eda41a0c12e65ec4c89d6624971429ca223638387c66f1d3e4dcd1407b -DIST dotnet-sdk-8.0.302-linux-arm.tar.gz 217370278 BLAKE2B 9841c032eab527b31844e8f13d42fa1829b1280ef8ed7b61a751d7a691d66081afa0a559cb4dcbe2e72ca23ab64e6268d5f26cb4c087493da9424d90d9a7b042 SHA512 2758d4844986794b34bcb34f24a153cee47d73fb787702dc7b6727e8dbe1e8c1c9e6bb350bf990c974be46821bcbf85e116ff2007727e2c3dcfa010c6f4cd3e0 -DIST dotnet-sdk-8.0.302-linux-arm64.tar.gz 217456475 BLAKE2B 16880c4e083efead4938e4fb8fba8d8de9ed9c46e79576240c077528d6774a89bd30f033c920c64c244a753063c41b36a231c3b450da6fd4854edde0a4007804 SHA512 a6432f93056d74a7dd666f0deda80c96e6dd6a5e6291f71a0128846df9dee5aa0016fc3bd39f34ce5a859bb82ea4e4302790a78ffc2d05216f07f9bf94440c40 -DIST dotnet-sdk-8.0.302-linux-musl-arm.tar.gz 217524374 BLAKE2B 3904054e1c5d465923ef75bc3500091c659382c610d23d00a0e921992d42ac07ecf0c43636888a45565bc805670badc7d6004accf510b455b0ff6f27b88b97bd SHA512 ad01cf664b42e85bfaa1f8cd13b159266b5b332e4b9c54b8f01e0d08da85c151437be30e142661b38e90b5896c17db30e086c78c47d1f3bb6b57c17e52c1483b -DIST dotnet-sdk-8.0.302-linux-musl-arm64.tar.gz 217376564 BLAKE2B b90fff2fc5d27598b65d8b2adf5b2b3a03b38b2332fa6a2fa4274b16f0cdf1f6b54fd7bbbe9b09e076690c357789e51172f67ae085d8476e33afa0d283410bae SHA512 bc504f76a5eb984373f96520c3ae0d439da9778bc4ba39455f89b809e203543ca164f3c27523b84245a5223ae7eed64931ea78a136041eecb1d1a226cd60471b -DIST dotnet-sdk-8.0.302-linux-musl-x64.tar.gz 222083567 BLAKE2B 361ced459b2c1d6a5ce9e6ec86b591749dae19bdf94ec2ef365f57876062bc558576ab132fc8cef36c2ead378b66886def886bef9d08d1300e9cc60fd7e79883 SHA512 8b5c2f13162ab667c84b371c5a9826173872f2485f806826b9df252537ca77c354b32cc58532e497fdf619f666413b1627e84d18bad616165b5454a8e2d110d2 -DIST dotnet-sdk-8.0.302-linux-x64.tar.gz 222084318 BLAKE2B 56d7ade37162a3dbbd248f50a278338bf5a3d019b8001bb60e33e2a050c4e38cf3fecd958ed8bb6b7fb0fde9646bcc29e0d5aecfc13435ae9a6f2a8f0105c34f SHA512 43d0ea1df12c15a0e47560d2a84857ab50eb04ac693ab41413c04c591719101c4c8165e052a42a66719c67bd07ac299ca47edbb4944a2901df765042e56b316f +DIST dotnet-sdk-8.0.107-linux-arm.tar.gz 209085051 BLAKE2B 9c8c43acb174d3cb34c2c6381185d03274704853299d9fb316961c20e485722a3cc815ab8fdf4df05fc9b43d2f2ee7e84c284ff5306ecc2b2f7d2270d4355379 SHA512 782065b4bf96901c91448412bb22fba27958e8812caba0a02cf8dbf2333f7320ba2c1eecbef4859f4034eb80d04bdb853a1836e1d284bdf5f623c7416dfc9861 +DIST dotnet-sdk-8.0.107-linux-arm64.tar.gz 208873804 BLAKE2B a684603d3ef888c8322af2636e7c1b1bfcb0d7f3f84b2a24875d2c3b22cfbc360b3ca630e68fc742e128e6173d73f6d377331977d6fa59af4c17e3f05de99091 SHA512 ab487873827677f44efe4372e0c325a48f339008d00307876e1e56795bc006be1770e8b1f9581c7197ea1bf857eae525aca18934591f603363f8fe9e021e7b2a +DIST dotnet-sdk-8.0.107-linux-musl-arm.tar.gz 209094033 BLAKE2B ecc7f6ea32a71ecbf53840829ce6becf4859d0229e846a9c1d239ec5cfcb73c9c91e28ad2f1d7e5b9a84d30805287a4f064d0a30710877d99b743d3b37171241 SHA512 e6e6325c6292bf435a0771c33eaf330dc132a11372ea6d12427f5a6c24cb6db260d95b1dfbba3c232cf9d5166f61192a05c7e3be4210a05a6687634fb0a887c6 +DIST dotnet-sdk-8.0.107-linux-musl-arm64.tar.gz 208907068 BLAKE2B 0ee7875279dd37572c6d0b6360d76efa1078ffd8a67822c587a60e9ca50fee6c35418d7ddb92f182d2bbc8fc2c11bb015ea2790e668103b9f6c486b3414169d6 SHA512 5b99a07607cae652e4b392c17a7856ffb5df939e95d741d07c385d422e5511394567b5102213da1dc65183680d0e908d83c43c95b14bfabec305ca7731d9d676 +DIST dotnet-sdk-8.0.107-linux-musl-x64.tar.gz 213639420 BLAKE2B ee877963955c1ae23b69c3fce1b2ab1d799b646e5917d5a1eb19e707bfeacd0118fca79a91993b97a40aafdacffe259a5c94b303c0b277e3202d2bfc75a99b33 SHA512 f25c95f9acff4db16593541fda517c32477eb618dc9ad5b3983a4ab5bd62fdd3c03c7d9f56afe1132aff5137bbdc4161e0b83f7c8101cb1766b82ed4072becef +DIST dotnet-sdk-8.0.107-linux-x64.tar.gz 213608643 BLAKE2B 716886da2c5a2190dc81e031b9e439eb31f6318418fdf47d487f3aacad99368f642f13d80aa6dd961517939d3e7e6f59efc4563a5ac62c4d7fc3a798e709e32a SHA512 10e0fbdc589e5e0de4fb0fe0e9c839bb2257c51948037a224d4358b8328b6791014ab4cb164beb617c83531a6ed774acb37b08e4a1b53f165e3eb853fd41a959 +DIST dotnet-sdk-8.0.303-linux-arm.tar.gz 218288787 BLAKE2B 7f689b9c695b2622f2489a9bb3b7d080e7f488d8c3dc63cf8bc1df0bba6fc7b97fd6407308c9998de40dcacfeea2e23eebbd4dafc7cd57ddb30b34819273c2eb SHA512 03b3730d1fd5e1955b8a23e69695c975e88e781513b1f47027ce4ed96a8743ba2560ca87ae2e937ebd89ef69a3aa05c4ca2f39eede5a27bd937775f372b9feba +DIST dotnet-sdk-8.0.303-linux-arm64.tar.gz 218493906 BLAKE2B 2018811bbbde7835da9634635e479856e55a851eed0e6eed966cb8a125638c6f10f2a4687bc4134a895cbc4c8363b5ce878b8f8ebd2c5f37622452590f225f62 SHA512 09cb6b12770febe186e36971afdbcea6e8bf5fb34b7701cd8c416f597d3b7e930d05e51ccef1985e5598291540ef2d721187904587469300bb39772317e2be5c +DIST dotnet-sdk-8.0.303-linux-musl-arm.tar.gz 218348934 BLAKE2B 4461a1b2cd3229e91cdffe315b04561029694f5425b80d00b57a3517c56952a3b93245ef7b4ccf156089252f3558b5324cfb9b25af1ba26dca293590528cdde8 SHA512 5e119bf1496bebd3b62d0c0c837bb8e8695784c91f9042771b01b47953d82e59605d7c04f2b821340792ace2966587a10d980bebeb8f9a39f1e8e4588ab59a6c +DIST dotnet-sdk-8.0.303-linux-musl-arm64.tar.gz 218434418 BLAKE2B 2ca5f6999542f39325b6fe4c80a202d3e8fd931c958c97b6c08a2d8a27c509ee3c876b739ad3bca3acc951d73a10a25ce1a6315217c4080a7a4302198d80bd7d SHA512 88a42a0a9f0b6981eeb0d2cdbde0fd98631d57c09ddca566bc1b4d4b99a9165e276a3434f6804bd54628387edae99c8f0025e889c0e06ade0defaf2fa5858d65 +DIST dotnet-sdk-8.0.303-linux-musl-x64.tar.gz 223120552 BLAKE2B 7a8c257cd1c723d7232481a134b499afa0825f561957ccb0c2aa5baa6b20114e4db0d19fcec25a54ac8020799b6fd7afa582c9d221fc2a9208cd4f2b495e5e58 SHA512 5696332dcfa1dd16f897f68dd190e45f6604fd8228d563394ef9da09f2ff99214ba23b80fa416b7748a5c34912eb42523ba83138d5cbc4468e1efc15b747630a +DIST dotnet-sdk-8.0.303-linux-x64.tar.gz 223236164 BLAKE2B 3008c5b3f84a965b717b2f51733cbf6d5ba218f5ae97dc250a2e7279e645b8577d8b6d5443f73e8130385d2263196f954ba6bfa64a2b33a8685d0c5a4035ed19 SHA512 814ff07ccdfc8160c4a24adfda6c815e7feace88c59722f827a5a27041719067538754911fc15cb46978e16566fe0938695891723d182055190e876131faedda EBUILD dotnet-sdk-bin-6.0.417-r4.ebuild 3648 BLAKE2B cae115deee48b38c6ebb1eba1a4eea60d4d21d5378702aa1a72dd3569b548f1bbdfbe0f0030ec0911eb9f564d208c49fbba14712651d2da555cc778b5399a435 SHA512 36011a4300685da89ece02df2f3f4193e34976e3e38ea41c88937a1b90e4ba21fb0fa908e5544b90b4e3ccde89af9b15d86fdf9969233ca4e2a85e267cb45b0a EBUILD dotnet-sdk-bin-7.0.404-r4.ebuild 3827 BLAKE2B ebeeaad4a1a335fff5ea6f07e0a28d65337b0d948626636bbe8435cc4fa7a8ef356fbd78b294dad0f9913b595775d45bc5a0ed45cfc0daf7705280b492224d18 SHA512 9d841acc5259e8c5f1ad98b1864bdec93b972c797ff7cfad17bd1ab03ad35a25554868f20167de622513ac47ab49f5e492fd9bad97256f7db5598abd6f994cc0 EBUILD dotnet-sdk-bin-8.0.105.ebuild 3868 BLAKE2B 4f2f27f6130dee4fb0b952a4dfcb124b107c9724a2a1752e5b6bdca426be10b5849be8370775eb820c1df90940abfb9bf1a5cba99020480003875d82ca3a0b17 SHA512 252f9736ce7d5baaa166a7bc32f8676095bf2fab82679039ef0755e262dc7fbad4840bb3491070572b0e3ba4165f2f71964a2ee0f6de2a8b9b6e54983de6297c EBUILD dotnet-sdk-bin-8.0.106.ebuild 3912 BLAKE2B 21029d0a3f246285523ba784a3f7ac6ad64c7f53795e573697b500aba33ba1707be38587be1b3bdf958062bbabee53660480f2b756cde67406c75b608fba13e7 SHA512 61c8ef0c82b18baf0a739c8a3e075d83b8b793908a4f78a21dd94cec44dc9eea4da223d87226cf796e6541b377a3f9caef68478dcf92844c5a0deff8bd86badc -EBUILD dotnet-sdk-bin-8.0.302.ebuild 3896 BLAKE2B 968bf429ec2638b025dd540d1679b40d78049fa6a892a4cec8e34bc18cd4e99a9daf0ee1edfe038853d656c03d390090272cc92ff8bfbf992dc9d93b4a21ac6d SHA512 4af99ed3bab6b71f46da96464d9feb36251ebf2fbaf471a32b6019c43007177b512d83e17055ef3e7fa6da017c92fc4029016e8fa972bde3736070dca6c75d5e +EBUILD dotnet-sdk-bin-8.0.107.ebuild 3912 BLAKE2B f6cd700ccdcaec8791d1803e6fd1260b0afd8ef71f2cd26d30e89d153d59bcc75cabe09139fa471cbf714e20f86c6c7b61613e3700e7f00626e872dae346565c SHA512 295bb77f6fc7f9e7eaa7869bfd33fe4264b5b899474f3637a99fc0894a9636dfddd807acd35820ccbe739abab31ba3043ff922b85a79372ee9da77cd38b6f6bb +EBUILD dotnet-sdk-bin-8.0.303.ebuild 3896 BLAKE2B ed47259ae1c611cc0f5df6dc24ee5b54ac67b754145687d51e54a47a985549936b56a44692f7075c983a60b89d4c799799d87b9713a88844f50efec9313a99ec SHA512 29a8f1006c9232f3b9ef63846276ad54b39b7be4652f870e5d223b5eef1bd1f0cc09035e44f94dd6efad2675dac41d8d02b31cb596e32cd64db71057228fdd35 MISC metadata.xml 399 BLAKE2B 77e69a42625154f791fdf1e9559921a4e7aa077e91f78d3ec52779818287d05612080ca21a4199a3531e8d1af34a78f362a07b3cd89cd027dc1f0b6cf84fbbdf SHA512 d0b85e5ea0a2a4aa361d21a81218ef5dd68f6d51972addc771681208342075a860436a135e8f219cb5b4424f8a40d1dace8260c6c0eb1da3ef1a0dd13811c1d0 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.107.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.107.ebuild new file mode 100644 index 000000000000..601d0882fdc1 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.107.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +SDK_SLOT="$(ver_cut 1-2)" +RUNTIME_SLOT="${SDK_SLOT}.7" + +DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" +HOMEPAGE="https://dotnet.microsoft.com/ + https://github.com/dotnet/dotnet/" +SRC_URI=" +amd64? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz ) +) +arm? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz ) +) +arm64? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz ) +) +" +S="${WORKDIR}" + +LICENSE="MIT" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" +# See bug https://bugs.gentoo.org/932377 +KEYWORDS="~amd64 ~arm ~arm64" + +# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, +# bug https://bugs.gentoo.org/923430 +RESTRICT="splitdebug strip" + +CURRENT_NUGETS_DEPEND=" + ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} +" +EXTRA_NUGETS_DEPEND=" + ~dev-dotnet/dotnet-runtime-nugets-6.0.32 + ~dev-dotnet/dotnet-runtime-nugets-7.0.20 +" +NUGETS_DEPEND=" + ${CURRENT_NUGETS_DEPEND} + ${EXTRA_NUGETS_DEPEND} +" + +RDEPEND=" + app-crypt/mit-krb5:0/0 + dev-libs/icu + dev-util/lttng-ust:0/2.12 + sys-libs/zlib:0/1 +" +BDEPEND=" + dev-util/patchelf +" +IDEPEND=" + app-eselect/eselect-dotnet +" +PDEPEND=" + ${NUGETS_DEPEND} +" + +QA_PREBUILT="*" + +MUSL_BAD_LINKS=( + apphost + createdump + dotnet + libSystem.Globalization.Native.so + libSystem.IO.Compression.Native.so + libSystem.Native.so + libSystem.Net.Security.Native.so + libSystem.Security.Cryptography.Native.OpenSsl.so + libclrgc.so + libclrjit.so + libcoreclr.so + libcoreclrtraceptprovider.so + libdbgshim.so + libhostfxr.so + libhostpolicy.so + libmscordaccore.so + libmscordbi.so + libnethost.so + singlefilehost +) +MUSL_BAD_SONAMES=( + libc.musl-aarch64.so.1 + libc.musl-armv7.so.1 + libc.musl-x86_64.so.1 +) + +src_prepare() { + default + + # Fix musl libc SONAME links, bug https://bugs.gentoo.org/894760 + if use elibc_musl ; then + local musl_bad_link + local musl_bad_link_path + local musl_bad_soname + + for musl_bad_link in "${MUSL_BAD_LINKS[@]}" ; do + while read -r musl_bad_link_path ; do + # Skip if file either does not end with ".so" or is not executable. + # Using "case" here for easier matching in case we have to add + # a special exception. + case "${musl_bad_link_path}" in + *.so ) + : + ;; + * ) + if [[ ! -x "${musl_bad_link_path}" ]] ; then + continue + fi + ;; + esac + + einfo "Fixing musl libc link for ${musl_bad_link_path}" + + for musl_bad_soname in "${MUSL_BAD_SONAMES[@]}" ; do + patchelf --remove-needed "${musl_bad_soname}" "${musl_bad_link_path}" || die + done + + patchelf --add-needed libc.so "${musl_bad_link_path}" || die + done < <(find . -type f -name "${musl_bad_link}") + done + fi + + # Remove static libraries, bug https://bugs.gentoo.org/825774 + find ./packs -type f -name "libnethost.a" -delete || die +} + +src_install() { + local dest="opt/${PN}-${SDK_SLOT}" + dodir "${dest%/*}" + + # Create a magic workloads file, bug #841896 + local featureband="$(( $(ver_cut 3) / 100 * 100 ))" # e.g. 404 -> 400 + local workloads="metadata/workloads/${SDK_SLOT}.${featureband}" + + mkdir -p "${S}/${workloads}" || die + touch "${S}/${workloads}/userlocal" || die + + mv "${S}" "${ED}/${dest}" || die + mkdir "${S}" || die + + fperms 0755 "/${dest}" + dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SDK_SLOT}" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild deleted file mode 100644 index 168c060e8789..000000000000 --- a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.302.ebuild +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -SDK_SLOT="$(ver_cut 1-2)" -RUNTIME_SLOT="${SDK_SLOT}.6" - -DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" -HOMEPAGE="https://dotnet.microsoft.com/ - https://github.com/dotnet/dotnet/" -SRC_URI=" -amd64? ( - elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz ) - elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz ) -) -arm? ( - elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz ) - elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz ) -) -arm64? ( - elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz ) - elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz ) -) -" -S="${WORKDIR}" - -LICENSE="MIT" -SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" -# See bug https://bugs.gentoo.org/932377 -# KEYWORDS="" - -# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, -# bug https://bugs.gentoo.org/923430 -RESTRICT="splitdebug strip" - -CURRENT_NUGETS_DEPEND=" - ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} -" -EXTRA_NUGETS_DEPEND=" - ~dev-dotnet/dotnet-runtime-nugets-6.0.31 - ~dev-dotnet/dotnet-runtime-nugets-7.0.20 -" -NUGETS_DEPEND=" - ${CURRENT_NUGETS_DEPEND} - ${EXTRA_NUGETS_DEPEND} -" - -RDEPEND=" - app-crypt/mit-krb5:0/0 - dev-libs/icu - dev-util/lttng-ust:0/2.12 - sys-libs/zlib:0/1 -" -BDEPEND=" - dev-util/patchelf -" -IDEPEND=" - app-eselect/eselect-dotnet -" -PDEPEND=" - ${NUGETS_DEPEND} -" - -QA_PREBUILT="*" - -MUSL_BAD_LINKS=( - apphost - createdump - dotnet - libSystem.Globalization.Native.so - libSystem.IO.Compression.Native.so - libSystem.Native.so - libSystem.Net.Security.Native.so - libSystem.Security.Cryptography.Native.OpenSsl.so - libclrgc.so - libclrjit.so - libcoreclr.so - libcoreclrtraceptprovider.so - libdbgshim.so - libhostfxr.so - libhostpolicy.so - libmscordaccore.so - libmscordbi.so - libnethost.so - singlefilehost -) -MUSL_BAD_SONAMES=( - libc.musl-aarch64.so.1 - libc.musl-armv7.so.1 - libc.musl-x86_64.so.1 -) - -src_prepare() { - default - - # Fix musl libc SONAME links, bug https://bugs.gentoo.org/894760 - if use elibc_musl ; then - local musl_bad_link - local musl_bad_link_path - local musl_bad_soname - - for musl_bad_link in "${MUSL_BAD_LINKS[@]}" ; do - while read -r musl_bad_link_path ; do - # Skip if file either does not end with ".so" or is not executable. - # Using "case" here for easier matching in case we have to add - # a special exception. - case "${musl_bad_link_path}" in - *.so ) - : - ;; - * ) - if [[ ! -x "${musl_bad_link_path}" ]] ; then - continue - fi - ;; - esac - - einfo "Fixing musl libc link for ${musl_bad_link_path}" - - for musl_bad_soname in "${MUSL_BAD_SONAMES[@]}" ; do - patchelf --remove-needed "${musl_bad_soname}" "${musl_bad_link_path}" || die - done - - patchelf --add-needed libc.so "${musl_bad_link_path}" || die - done < <(find . -type f -name "${musl_bad_link}") - done - fi - - # Remove static libraries, bug https://bugs.gentoo.org/825774 - find ./packs -type f -name "libnethost.a" -delete || die -} - -src_install() { - local dest="opt/${PN}-${SDK_SLOT}" - dodir "${dest%/*}" - - # Create a magic workloads file, bug #841896 - local featureband="$(( $(ver_cut 3) / 100 * 100 ))" # e.g. 404 -> 400 - local workloads="metadata/workloads/${SDK_SLOT}.${featureband}" - - mkdir -p "${S}/${workloads}" || die - touch "${S}/${workloads}/userlocal" || die - - mv "${S}" "${ED}/${dest}" || die - mkdir "${S}" || die - - fperms 0755 "/${dest}" - dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SDK_SLOT}" -} - -pkg_postinst() { - eselect dotnet update ifunset -} - -pkg_postrm() { - eselect dotnet update ifunset -} diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.303.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.303.ebuild new file mode 100644 index 000000000000..ef3952b20a53 --- /dev/null +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-8.0.303.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +SDK_SLOT="$(ver_cut 1-2)" +RUNTIME_SLOT="${SDK_SLOT}.7" + +DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" +HOMEPAGE="https://dotnet.microsoft.com/ + https://github.com/dotnet/dotnet/" +SRC_URI=" +amd64? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz ) +) +arm? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz ) +) +arm64? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz ) +) +" +S="${WORKDIR}" + +LICENSE="MIT" +SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" +# See bug https://bugs.gentoo.org/932377 +# KEYWORDS="" + +# STRIP="llvm-strip" corrupts some executables when using the patchelf hack, +# bug https://bugs.gentoo.org/923430 +RESTRICT="splitdebug strip" + +CURRENT_NUGETS_DEPEND=" + ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} +" +EXTRA_NUGETS_DEPEND=" + ~dev-dotnet/dotnet-runtime-nugets-6.0.32 + ~dev-dotnet/dotnet-runtime-nugets-7.0.20 +" +NUGETS_DEPEND=" + ${CURRENT_NUGETS_DEPEND} + ${EXTRA_NUGETS_DEPEND} +" + +RDEPEND=" + app-crypt/mit-krb5:0/0 + dev-libs/icu + dev-util/lttng-ust:0/2.12 + sys-libs/zlib:0/1 +" +BDEPEND=" + dev-util/patchelf +" +IDEPEND=" + app-eselect/eselect-dotnet +" +PDEPEND=" + ${NUGETS_DEPEND} +" + +QA_PREBUILT="*" + +MUSL_BAD_LINKS=( + apphost + createdump + dotnet + libSystem.Globalization.Native.so + libSystem.IO.Compression.Native.so + libSystem.Native.so + libSystem.Net.Security.Native.so + libSystem.Security.Cryptography.Native.OpenSsl.so + libclrgc.so + libclrjit.so + libcoreclr.so + libcoreclrtraceptprovider.so + libdbgshim.so + libhostfxr.so + libhostpolicy.so + libmscordaccore.so + libmscordbi.so + libnethost.so + singlefilehost +) +MUSL_BAD_SONAMES=( + libc.musl-aarch64.so.1 + libc.musl-armv7.so.1 + libc.musl-x86_64.so.1 +) + +src_prepare() { + default + + # Fix musl libc SONAME links, bug https://bugs.gentoo.org/894760 + if use elibc_musl ; then + local musl_bad_link + local musl_bad_link_path + local musl_bad_soname + + for musl_bad_link in "${MUSL_BAD_LINKS[@]}" ; do + while read -r musl_bad_link_path ; do + # Skip if file either does not end with ".so" or is not executable. + # Using "case" here for easier matching in case we have to add + # a special exception. + case "${musl_bad_link_path}" in + *.so ) + : + ;; + * ) + if [[ ! -x "${musl_bad_link_path}" ]] ; then + continue + fi + ;; + esac + + einfo "Fixing musl libc link for ${musl_bad_link_path}" + + for musl_bad_soname in "${MUSL_BAD_SONAMES[@]}" ; do + patchelf --remove-needed "${musl_bad_soname}" "${musl_bad_link_path}" || die + done + + patchelf --add-needed libc.so "${musl_bad_link_path}" || die + done < <(find . -type f -name "${musl_bad_link}") + done + fi + + # Remove static libraries, bug https://bugs.gentoo.org/825774 + find ./packs -type f -name "libnethost.a" -delete || die +} + +src_install() { + local dest="opt/${PN}-${SDK_SLOT}" + dodir "${dest%/*}" + + # Create a magic workloads file, bug #841896 + local featureband="$(( $(ver_cut 3) / 100 * 100 ))" # e.g. 404 -> 400 + local workloads="metadata/workloads/${SDK_SLOT}.${featureband}" + + mkdir -p "${S}/${workloads}" || die + touch "${S}/${workloads}/userlocal" || die + + mv "${S}" "${ED}/${dest}" || die + mkdir "${S}" || die + + fperms 0755 "/${dest}" + dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SDK_SLOT}" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} -- cgit v1.2.3