From a6dc4c6aa2aaea3e386e238a56858e865fdb140b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Tue, 23 Jun 2026 00:51:34 +0200 Subject: [PATCH] app-shells/pwsh: drop old 7.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-shells/pwsh/Manifest | 2 - app-shells/pwsh/pwsh-7.6.1.ebuild | 337 ------------------------------ 2 files changed, 339 deletions(-) delete mode 100644 app-shells/pwsh/pwsh-7.6.1.ebuild diff --git a/app-shells/pwsh/Manifest b/app-shells/pwsh/Manifest index ec64342aaa0f7..9e76028dfd34d 100644 --- a/app-shells/pwsh/Manifest +++ b/app-shells/pwsh/Manifest @@ -22,7 +22,6 @@ DIST microsoft.net.test.sdk.18.0.1.nupkg 39745 BLAKE2B 77aefae8dc1ffac70f8e57186 DIST microsoft.netcore.platforms.1.1.2.nupkg 27498 BLAKE2B 0e236d61bf81e7788df8442349de30ecef4c937bf309643343bc424ae07748bc096ddd2f3efe5b0a909b7a95df4a91494ca06249262a8630972423ad75e51636 SHA512 7a6d09f38ca0ff35f42fe8642c44c0e41b01945400e6d27a16a39cf7358c89a2742ea3b30162c68b7dc595b1c4b0c945195bd7c04bd1db4bd258604e096dcc7c DIST microsoft.powershell.archive.1.2.5.nupkg 43929 BLAKE2B 6be1f9ba229b7d75032a9a62c924df8d87d98743be0c9fbecfb8ca6bd49e2c0048c17bd5a4d3ad39f15c9cd2b6cbb59b037103f3e45f9b3d02133903584771cc SHA512 7338db9ccd5d135c60b0b9c2a9fa557b8a321dd74644b87690dcb70e61de043133626f5047a451edf6be69fb61514c942040e384159d49fb5ab81d04766e4182 DIST microsoft.powershell.markdownrender.7.2.1.nupkg 49815 BLAKE2B 8c231eab9bb94e865876b6d077bdccd42366363ff9e775f2e0fb26a80c00add66920b265b1a292543378a009eef630f0e6f372c731d597f7d861d37582456989 SHA512 57b690134424adf02a83c0320e05b0a37809c53c4a978f8083d74262b3778b0f4661eec41a2f52c4eec2da3befe296664e710219572e884eeaccfecbbf1537b4 -DIST microsoft.powershell.native.700.0.0-rc.1.nupkg 709367 BLAKE2B aeba4cccd05b013f59ae7f14952ae76326546f79b5678f0bc090f4c8b713e230fbf55081aea159d55287b7619b70a0806a1f821ce47212113c13d48c47dddff7 SHA512 c904f8955755073047452826d0de90584f147dca9d7b1aba4e8bf435bbac3bd4c4c61f89c46faca4852c0654e3ac02d7597947bb4231c71f4dd2a3eb15f1488f DIST microsoft.powershell.native.700.0.0.nupkg 710591 BLAKE2B 3064b0bc97465323935f80c5a0e9ca9ceb0d08a64a9807e6095b78d5c685558fd2492900af61e048333231f380c613669c96828528f621ac2d89360aa4624298 SHA512 d4d14aaafc758128b82b813a844fb521a482d7eb6243a425b82666abd57c65af682a9248ba079718cbe1752136f7028c69e661b746388c479cb59432b2a55183 DIST microsoft.powershell.psresourceget.1.2.0.nupkg 3354854 BLAKE2B 15b6fb9a2542552af4079a6fe9477b18675b6e821103e4c5695ad7816947abdb8527f31f9ca3d0f59d2190409745a150ba3a6c91f2d0451e75e0df4e73077926 SHA512 0ace2dd20baf73430250677d268a1fc26833bb989363d5cf428581c96b5311df41dcc364ffa7032b6ac6c68abf9eaaa1b121a9eaaa718c728d83fd1cbc959192 DIST microsoft.powershell.threadjob.2.2.0.nupkg 49678 BLAKE2B 957beada3c8b609f9060886663e20766ee52f42f48fa9cccab5cbe09d3f83b32fe410d7e48c2db9b23f7a3c0fa6a9ad8606c158b8310bc9567c4ecf50665e2ce SHA512 e3c83febdf6cf69a7d216a5b173d286bbaf91864a71e9297c62aca4454d192b0c0dfefc01ecee9afaf5049258cf4c68d144dbcf13d82b94664d43578a8e6b5c5 @@ -38,7 +37,6 @@ DIST newtonsoft.json.13.0.4.nupkg 2484726 BLAKE2B 9b2e727cf3f6bc60c86ec32e07264c DIST packagemanagement.1.4.8.1.nupkg 1153134 BLAKE2B a56bfaddf35023b57682b7e39a5782cc9cfe746d231ed94ae7631b76d15c527e695d0dd3beda598d88caa09a078a6902ebc8d9b448e1605c7e1d88bc8aff0156 SHA512 5896bf6ae8496eafd81add32dc21216ded0fad0b4839598f6c9b04aaea8a1f903e6cc519d7ea432917b4641482d756bd50bc9473d3624e95964e39f3fc69ba39 DIST powershellget.2.2.5.nupkg 270249 BLAKE2B 15f040cbbca89db9a455791d14bf30959c21da9c94507f3bfc4978c06557f0570272613b55d4b05b1dff630989c93e825a48a64a7d6dcac4d43fde5151dc5ff4 SHA512 5a4af7aa61b6ff0f449efa384e8d44cd7899d586515af9cf7ba266c26a625abf33c0c0dbe0d476cd17980af39a5c764d4ca722e752bec03ed478a73a38397c3c DIST psreadline.2.4.5.nupkg 234360 BLAKE2B 660472d53b20afbcc4058588b56ae562a0b09adead904cbcbc439ab6e82a06b0525faf6933c41d00b41af2681f22b82630721714cf700a5f9000f68598addcdd SHA512 240d7487d21f9cef419fd4e04b613ade1c5c86ade37b357d5acbab8ec63d0c0b6bad1676aac11fd168abd0cfd0f4de4d1fdc1de3c1c48289b57b5a3f05d7222c -DIST pwsh-7.6.1.repackaged.tar.xz 8915972 BLAKE2B 45fa6f2dd7652d3c94108c0c45ef0f1e1563363bb3fb81835774b361767827935ad8eda50fee60a084382d104f7276e069a6efe9ac6fd067a5c4a4b47c728b60 SHA512 10650bb95d3ce974e5e4f9a7dcdbbbc2b47eaaddd0bcfae98e75f268890103a3630db1377ec3ff454f10113ea53d9bc1eb46827a81a29db6358d4ee76d1cabe9 DIST pwsh-7.6.2.repackaged.tar.xz 8921840 BLAKE2B a0771dfe3f6484be51e4417ffe2230a6257f5c9e5a44fa57bf9e7857d1093574f10618b05fe5c0eda6b8d26e2fb37ad5ab850a858e88901e7652e1ef4b4cc785 SHA512 75b3b6fee1c1f11b0ef7a3a8183c048491c5d2d0f7f82dc401984ea3da73d4d27bab0f084d1659c30235ea586727d6b36d9c6462286871a31f07284379aac085 DIST pwsh-7.6.3.repackaged.tar.xz 8922340 BLAKE2B a5492c39f2117a0fa97ab64fc6dae02b870a62b2f5a3dde26fbd206c53d5307fc1f98e898e15c7490105707ffbeb06a86b9c508e0d32de5a1a1bbb29865578b1 SHA512 3f43f3f4adc2f6d2622e0d156efbf3ff816c9c049cf23485d6764fd16e6158bb20e7699183abe9d47442adbf2b6959067e1cd358fbdf7c3e15ce519085473dbd DIST runtime.android-arm.runtime.native.system.io.ports.10.0.5.nupkg 51511 BLAKE2B 19f6bd3cd5b91987563e8fbaa12833cf981695e336efc104ed1cb327ed3e249f1cefa4579cb51908013f3df1c99d3ac94732cf26e9e327a1f3e46d5d7a28924c SHA512 200a765734a674784add2d3f92c44085736128d98e4ba39152a219200dc382e7a091d23329146f0177d927d4beb0c05427eee479bfaf9812d916958e6d16bceb diff --git a/app-shells/pwsh/pwsh-7.6.1.ebuild b/app-shells/pwsh/pwsh-7.6.1.ebuild deleted file mode 100644 index 00c18634c147f..0000000000000 --- a/app-shells/pwsh/pwsh-7.6.1.ebuild +++ /dev/null @@ -1,337 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# NOTICE: Before packaging we have to run "ResGen" and "GetDependencies". -# See: https://git.alpinelinux.org/aports/tree/community/powershell/APKBUILD -# The repackaged tarball contains some C# code generated by that subproject. - -EAPI=8 - -DOTNET_PKG_COMPAT="10.0" -NUGET_APIS=( - "https://api.nuget.org/v3-flatcontainer" - "https://www.powershellgallery.com/api/v2" -) -NUGETS=" -dotnetanalyzers.documentationanalyzers.unstable@1.0.0.59 -dotnetanalyzers.documentationanalyzers@1.0.0-beta.59 -humanizer.core@2.14.1 -json.more.net@2.1.1 -jsonpointer.net@5.3.1 -jsonschema.net@7.4.0 -markdig.signed@0.31.0 -markdig.signed@0.44.0 -microsoft.applicationinsights@2.23.0 -microsoft.bcl.asyncinterfaces@10.0.5 -microsoft.codeanalysis.analyzers@3.11.0 -microsoft.codeanalysis.analyzers@5.3.0 -microsoft.codeanalysis.common@5.0.0 -microsoft.codeanalysis.csharp@5.0.0 -microsoft.codecoverage@18.0.1 -microsoft.extensions.objectpool@10.0.0 -microsoft.extensions.objectpool@10.0.5 -microsoft.management.infrastructure.runtime.unix@3.0.0 -microsoft.management.infrastructure.runtime.win@3.0.0 -microsoft.management.infrastructure@3.0.0 -microsoft.net.test.sdk@18.0.1 -microsoft.netcore.platforms@1.1.2 -microsoft.powershell.markdownrender@7.2.1 -microsoft.powershell.native@700.0.0-rc.1 -microsoft.security.extensions@1.4.0 -microsoft.testplatform.objectmodel@18.0.1 -microsoft.testplatform.testhost@18.0.1 -microsoft.win32.registry.accesscontrol@10.0.5 -microsoft.win32.systemevents@10.0.5 -microsoft.windows.compatibility@10.0.5 -netstandard.library@2.0.3 -newtonsoft.json@13.0.3 -newtonsoft.json@13.0.4 -runtime.android-arm.runtime.native.system.io.ports@10.0.5 -runtime.android-arm64.runtime.native.system.io.ports@10.0.5 -runtime.android-x64.runtime.native.system.io.ports@10.0.5 -runtime.android-x86.runtime.native.system.io.ports@10.0.5 -runtime.linux-arm.runtime.native.system.io.ports@10.0.5 -runtime.linux-arm64.runtime.native.system.io.ports@10.0.5 -runtime.linux-bionic-arm64.runtime.native.system.io.ports@10.0.5 -runtime.linux-bionic-x64.runtime.native.system.io.ports@10.0.5 -runtime.linux-musl-arm.runtime.native.system.io.ports@10.0.5 -runtime.linux-musl-arm64.runtime.native.system.io.ports@10.0.5 -runtime.linux-musl-x64.runtime.native.system.io.ports@10.0.5 -runtime.linux-x64.runtime.native.system.io.ports@10.0.5 -runtime.maccatalyst-arm64.runtime.native.system.io.ports@10.0.5 -runtime.maccatalyst-x64.runtime.native.system.io.ports@10.0.5 -runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.native.system.io.ports@10.0.5 -runtime.osx-arm64.runtime.native.system.io.ports@10.0.5 -runtime.osx-x64.runtime.native.system.io.ports@10.0.5 -runtime.win-arm64.runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.win-x64.runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.win-x86.runtime.native.system.data.sqlclient.sni@4.4.0 -stylecop.analyzers.unstable@1.2.0.556 -stylecop.analyzers@1.2.0-beta.556 -system.buffers@4.6.1 -system.codedom@10.0.5 -system.collections.immutable@9.0.14 -system.componentmodel.composition.registration@10.0.5 -system.componentmodel.composition@10.0.5 -system.configuration.configurationmanager@10.0.5 -system.data.odbc@10.0.5 -system.data.oledb@10.0.5 -system.data.sqlclient@4.9.0 -system.data.sqlclient@4.9.1 -system.diagnostics.eventlog@10.0.5 -system.diagnostics.performancecounter@10.0.5 -system.directoryservices.accountmanagement@10.0.5 -system.directoryservices.protocols@10.0.5 -system.directoryservices@10.0.5 -system.drawing.common@10.0.5 -system.io.packaging@10.0.5 -system.io.ports@10.0.5 -system.management@10.0.5 -system.memory@4.6.3 -system.net.http.winhttphandler@10.0.5 -system.numerics.vectors@4.6.1 -system.reflection.context@10.0.5 -system.reflection.metadata@9.0.14 -system.runtime.caching@10.0.5 -system.runtime.compilerservices.unsafe@6.1.2 -system.security.cryptography.pkcs@10.0.5 -system.security.cryptography.pkcs@10.0.6 -system.security.cryptography.protecteddata@10.0.5 -system.security.cryptography.xml@10.0.0 -system.security.cryptography.xml@10.0.5 -system.security.cryptography.xml@10.0.6 -system.security.permissions@10.0.5 -system.servicemodel.http@10.0.652802 -system.servicemodel.http@8.1.2 -system.servicemodel.netframingbase@10.0.652802 -system.servicemodel.nettcp@10.0.652802 -system.servicemodel.nettcp@8.1.2 -system.servicemodel.primitives@10.0.652802 -system.servicemodel.primitives@8.1.2 -system.servicemodel.syndication@10.0.5 -system.serviceprocess.servicecontroller@10.0.5 -system.speech@10.0.5 -system.text.encoding.codepages@8.0.0 -system.threading.tasks.extensions@4.6.3 -system.web.services.description@8.1.2 -system.windows.extensions@10.0.5 -validation@2.6.68 -xunit.abstractions@2.0.3 -xunit.analyzers@1.18.0 -xunit.assert@2.9.3 -xunit.core@2.9.3 -xunit.extensibility.core@2.4.0 -xunit.extensibility.core@2.9.3 -xunit.extensibility.execution@2.4.0 -xunit.extensibility.execution@2.9.3 -xunit.runner.visualstudio@3.1.5 -xunit.skippablefact@1.5.61 -xunit@2.9.3 -xunitxml.testlogger@8.0.0 -" - -# Additional PowerShell Gallery modules. -NUGETV_MICROSOFT_POWERSHELL_ARCHIVE="1.2.5" -NUGETV_MICROSOFT_POWERSHELL_PSRESOURCEGET="1.2.0" -NUGETV_MICROSOFT_POWERSHELL_THREADJOB="2.2.0" -NUGETV_PACKAGEMANAGEMENT="1.4.8.1" -NUGETV_POWERSHELLGET="2.2.5" -NUGETV_PSREADLINE="2.4.5" -NUGETS+=" -microsoft.powershell.archive@${NUGETV_MICROSOFT_POWERSHELL_ARCHIVE} -microsoft.powershell.psresourceget@${NUGETV_MICROSOFT_POWERSHELL_PSRESOURCEGET} -microsoft.powershell.threadjob@${NUGETV_MICROSOFT_POWERSHELL_THREADJOB} -packagemanagement@${NUGETV_PACKAGEMANAGEMENT} -powershellget@${NUGETV_POWERSHELLGET} -psreadline@${NUGETV_PSREADLINE} -" - -inherit check-reqs desktop dotnet-pkg xdg-utils - -DESCRIPTION="Cross-platform automation and configuration tool" -HOMEPAGE="https://microsoft.com/powershell/ - https://github.com/PowerShell/PowerShell/" -SRC_URI=" - https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.repackaged.tar.xz - ${NUGET_URIS} -" - -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~arm ~arm64" -IUSE="gui vanilla" - -RDEPEND=" - >=dev-libs/libpsl-native-7.4.0:= - dev-libs/openssl-compat:1.0.0 - sys-libs/pam:0/0 - gui? ( - dev-util/desktop-file-utils - x11-misc/shared-mime-info - ) -" -DEPEND=" - ${RDEPEND} -" -IDEPEND=" - app-eselect/eselect-pwsh -" - -CHECKREQS_DISK_BUILD="2G" -DOTNET_PKG_PROJECTS=( - src/powershell-unix/powershell-unix.csproj - src/Modules/PSGalleryModules.csproj -) -DOTNET_PKG_RESTORE_EXTRA_ARGS=( - -p:"RollForward=Major" - -p:"RuntimeIdentifiers=" - -p:"TreatWarningsAsErrors=false" -) -DOTNET_PKG_BUILD_EXTRA_ARGS=( - "${DOTNET_PKG_RESTORE_EXTRA_ARGS[@]}" -) -PATCHES=( - "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" -) -DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) - -check_requirements_locale() { - if [[ "${MERGE_TYPE}" != binary ]] ; then - if use elibc_glibc ; then - local locales="$(locale -a)" - - if has en_US.utf8 ${locales} ; then - LC_ALL="en_US.utf8" - elif has en_US.UTF-8 ${locales} ; then - LC_ALL="en_US.UTF-8" - else - eerror "The locale en_US.utf8 or en_US.UTF-8 is not available." - eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}." - - die "Could not switch to the en_US.UTF-8 locale." - fi - else - LC_ALL="en_US.UTF-8" - fi - - export LC_ALL - einfo "Successfully switched to the ${LC_ALL} locale." - fi -} - -pkg_pretend() { - check-reqs_pkg_pretend - - check_requirements_locale -} - -pkg_setup() { - check-reqs_pkg_setup - dotnet-pkg_pkg_setup - - check_requirements_locale -} - -src_prepare() { - if ! use vanilla ; then - PATCHES+=( - "${FILESDIR}/pwsh-7.5.0-disable-telemetry.patch" - ) - fi - - # This is guarded by "RegexGitVersion" in "PowerShell.Common.props". - local fake_describe="v${PV}-0-g0" - sed -e "s|git describe --abbrev=60 --long|echo ${fake_describe}|g" \ - -i ./PowerShell.Common.props || die - - echo "v${PV}" > ./powershell.version || die - - dotnet-pkg_src_prepare -} - -src_compile() { - einfo 'Copying DLL files for the missing "ref" directory' - efsi "${FILESDIR}/pwsh-7.3.3-copy-ref.fsx" "${WORKDIR}/${P}_ref" - - dotnet-pkg_src_compile -} - -src_test() { - local -a test_args=( - "${DOTNET_PKG_RESTORE_EXTRA_ARGS[@]}" - -p:"RuntimeIdentifier=${DOTNET_PKG_RUNTIME}" - "${S}/test/xUnit/xUnit.tests.csproj" - ) - dotnet-pkg-base_restore "${test_args[@]}" - dotnet-pkg-base_test "${test_args[@]}" -} - -src_install() { - local dest_root="/usr/share/${PN}-${SLOT}" - - # Install additional PowerShell Gallery modules. - local -a psg_modules=( - Microsoft.PowerShell.Archive - Microsoft.PowerShell.PSResourceGet - Microsoft.PowerShell.ThreadJob - PSReadLine - PackageManagement - PowerShellGet - ) - local psg_module="" - for psg_module in "${psg_modules[@]}" ; do - insinto "${dest_root}/Modules/${psg_module}" - doins -r "${NUGET_PACKAGES}/${psg_module,,}"/* - done - - dotnet-pkg-base_append_launchervar 'DOTNET_ROLL_FORWARD="Major"' - dotnet-pkg-base_append_launchervar 'PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"' - dotnet-pkg-base_install "${dest_root}" - dotnet-pkg-base_dolauncher-portable "${dest_root}/pwsh.dll" "pwsh-${SLOT}" - - insinto "${dest_root}/ref" - doins "${WORKDIR}/${P}_ref"/* - - # Fix runtime config because we roll forward from .NET 9.0 into .NET >-10.0. - sed -i "${ED}/${dest_root}/pwsh.runtimeconfig.json" \ - -e "s|.*rollForwardOnNoCandidateFx.*||g" \ - || die "sed failed" - - # Replace "libpsl-native.so" provided by "microsoft.powershell.native". - rm "${ED}/${dest_root}/libpsl-native.so" || die - dosym -r "/usr/$(get_libdir)/libpsl-native.so" "${dest_root}/libpsl-native.so" - - # On musl remove "libSystem.IO.Ports.Native.so" linked against glibc. - if ! use elibc_glibc ; then - ewarn "libSystem.IO.Ports.Native.so is available only for glibc, removing it" - - rm -f "${ED}/${dest_root}/libSystem.IO.Ports.Native.so" || die - fi - - if use gui ; then - newicon ./assets/ps_black_128.svg "powershell-${SLOT}.svg" - make_desktop_entry "pwsh-${SLOT} -l" "PowerShell ${SLOT}" \ - "powershell-${SLOT}" "ConsoleOnly;System;" "Terminal=true" - fi - - einstalldocs -} - -pkg_postinst() { - if use gui ; then - xdg_icon_cache_update - xdg_desktop_database_update - fi - - eselect pwsh update ifunset -} - -pkg_postrm() { - if use gui ; then - xdg_icon_cache_update - xdg_desktop_database_update - fi - - eselect pwsh update ifunset -}