From 23d1639eaa15c9d4cbd7193ff3de39ae273c319d Mon Sep 17 00:00:00 2001 From: Felix Palmen Date: Tue, 2 Apr 2024 09:27:57 +0200 Subject: [PATCH] shells/powershell: Add new port PowerShell is a modern command shell that includes the best features of other popular shells. Unlike most shells that only accept and return text, PowerShell accepts and returns .NET objects. --- shells/Makefile | 1 + shells/powershell/Makefile | 196 ++++++++ shells/powershell/distinfo | 193 ++++++++ ....PowerShell.SDK.csproj.TypeCatalog.targets | 9 + .../files/patch-PowerShell.Common.props | 28 ++ shells/powershell/files/patch-global.json | 9 + shells/powershell/files/patch-nuget.config | 13 + .../files/patch-src_ResGen_ResGen.csproj | 11 + ...h-src_TypeCatalogGen_TypeCatalogGen.csproj | 11 + .../patch-src_libpsl-native_CMakeLists.txt | 14 + ...patch-src_libpsl-native_src_CMakeLists.txt | 11 + ...h-src_libpsl-native_src_getuserfrompid.cpp | 10 + ...src_powershell-unix_powershell-unix.csproj | 11 + .../files/patch-src_powershell_Program.cs | 94 ++++ shells/powershell/nuget.mk | 34 ++ shells/powershell/pkg-descr | 3 + shells/powershell/pkg-plist | 456 ++++++++++++++++++ 17 files changed, 1104 insertions(+) create mode 100644 shells/powershell/Makefile create mode 100644 shells/powershell/distinfo create mode 100644 shells/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets create mode 100644 shells/powershell/files/patch-PowerShell.Common.props create mode 100644 shells/powershell/files/patch-global.json create mode 100644 shells/powershell/files/patch-nuget.config create mode 100644 shells/powershell/files/patch-src_ResGen_ResGen.csproj create mode 100644 shells/powershell/files/patch-src_TypeCatalogGen_TypeCatalogGen.csproj create mode 100644 shells/powershell/files/patch-src_libpsl-native_CMakeLists.txt create mode 100644 shells/powershell/files/patch-src_libpsl-native_src_CMakeLists.txt create mode 100644 shells/powershell/files/patch-src_libpsl-native_src_getuserfrompid.cpp create mode 100644 shells/powershell/files/patch-src_powershell-unix_powershell-unix.csproj create mode 100644 shells/powershell/files/patch-src_powershell_Program.cs create mode 100644 shells/powershell/nuget.mk create mode 100644 shells/powershell/pkg-descr create mode 100644 shells/powershell/pkg-plist diff --git a/shells/Makefile b/shells/Makefile index bc75f22e17e8..33d7dd60a0b1 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -43,6 +43,7 @@ SUBDIR += p5-Term-ShellUI SUBDIR += pdksh SUBDIR += pear-PHP_Shell + SUBDIR += powershell SUBDIR += psh SUBDIR += rc SUBDIR += rubygem-shellwords diff --git a/shells/powershell/Makefile b/shells/powershell/Makefile new file mode 100644 index 000000000000..55a9cb8dacb6 --- /dev/null +++ b/shells/powershell/Makefile @@ -0,0 +1,196 @@ +PORTNAME= powershell +DISTVERSION= 7.4.1 +CATEGORIES= shells + +MAINTAINER= zirias@FreeBSD.org +COMMENT= Microsoft's shell with support for .NET objects +WWW= https://microsoft.com/PowerShell + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +ONLY_FOR_ARCHS= aarch64 amd64 + +BUILD_DEPENDS= dotnet:lang/dotnet +LIB_DEPENDS= libinotify.so:devel/libinotify \ + libunwind.so:devel/libunwind + +USES= cmake ssl +USE_GITHUB= yes +GH_ACCOUNT= PowerShell +GH_PROJECT= PowerShell PowerShell-Native:native +GH_TAGNAME= v${DISTVERSION} v${PSNATIVEVERS}:native +CMAKE_SOURCE_PATH= ${WRKSRC}/src/libpsl-native + +OPTIONS_DEFINE= MODULES +OPTIONS_DEFAULT= GSSAPI_BASE MODULES +OPTIONS_SINGLE= GSSAPI +OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT +OPTIONS_SUB= yes +MODULES_DESC= Bundle essential PowerShell modules +GSSAPI_BASE_USES= gssapi +GSSAPI_HEIMDAL_USES= gssapi:heimdal +GSSAPI_MIT_USES= gssapi:mit +MODULES_RUN_DEPENDS= terminfo-db>0:misc/terminfo-db +MODULES_VARS= NUGET_GROUPS+=PWSH + +DOTNET_ARCH= ${ARCH:S/amd64/x64/:S/aarch64/arm64/} +PSNATIVEVERS= 7.4.0 +NUGET_GROUPS= NUGET +NUPKG_NUGET= DotNetAnalyzers.DocumentationAnalyzers:1.0.0-beta.59 \ + DotNetAnalyzers.DocumentationAnalyzers.Unstable:1.0.0.59 \ + JetBrains.Annotations:2021.2.0 \ + Json.More.Net:1.9.3 \ + JsonPointer.Net:3.0.3 \ + JsonSchema.Net:5.2.7 \ + Markdig.Signed:0.33.0 \ + Microsoft.ApplicationInsights:2.21.0 \ + Microsoft.Bcl.AsyncInterfaces:5.0.0 \ + Microsoft.CodeAnalysis.Analyzers:3.3.4 \ + Microsoft.CodeAnalysis.Common:4.8.0 \ + Microsoft.CodeAnalysis.CSharp:4.8.0 \ + Microsoft.Extensions.ObjectPool:5.0.17 \ + Microsoft.Management.Infrastructure:3.0.0 \ + Microsoft.Management.Infrastructure.Runtime.Unix:3.0.0 \ + Microsoft.Management.Infrastructure.Runtime.Win:3.0.0 \ + Microsoft.NETCore.Platforms:1.1.2 \ + Microsoft.PowerShell.MarkdownRender:7.2.1 \ + Microsoft.PowerShell.Native:7.4.0 \ + Microsoft.Security.Extensions:1.2.0 \ + Microsoft.Win32.Registry:4.7.0 \ + Microsoft.Win32.Registry.AccessControl:8.0.0 \ + Microsoft.Win32.SystemEvents:8.0.0 \ + Microsoft.Windows.Compatibility:8.0.1 \ + NETStandard.Library:2.0.3 \ + Newtonsoft.Json:13.0.3 \ + runtime.linux-arm.runtime.native.System.IO.Ports:8.0.0 \ + runtime.linux-arm64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.linux-x64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.native.System.Data.SqlClient.sni:4.7.0 \ + runtime.native.System.IO.Ports:8.0.0 \ + runtime.osx-arm64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.osx-x64.runtime.native.System.IO.Ports:8.0.0 \ + 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:1.2.0-beta.556 \ + StyleCop.Analyzers.Unstable:1.2.0.556 \ + System.Buffers:4.5.1 \ + System.CodeDom:8.0.0 \ + System.Collections.Immutable:7.0.0 \ + System.ComponentModel.Composition:8.0.0 \ + System.ComponentModel.Composition.Registration:8.0.0 \ + System.Configuration.ConfigurationManager:8.0.0 \ + System.Data.Odbc:8.0.0 \ + System.Data.OleDb:8.0.0 \ + System.Data.SqlClient:4.8.6 \ + System.Diagnostics.DiagnosticSource:8.0.0 \ + System.Diagnostics.EventLog:8.0.0 \ + System.Diagnostics.PerformanceCounter:8.0.0 \ + System.DirectoryServices:8.0.0 \ + System.DirectoryServices.AccountManagement:8.0.0 \ + System.DirectoryServices.Protocols:8.0.0 \ + System.Drawing.Common:8.0.1 \ + System.Formats.Asn1:8.0.0 \ + System.IO.Packaging:8.0.0 \ + System.IO.Ports:8.0.0 \ + System.Management:8.0.0 \ + System.Memory:4.5.5 \ + System.Net.Http.WinHttpHandler:8.0.0 \ + System.Numerics.Vectors:4.4.0 \ + System.Numerics.Vectors:4.5.0 \ + System.Private.ServiceModel:4.10.3 \ + System.Reflection.Context:8.0.0 \ + System.Reflection.DispatchProxy:4.7.1 \ + System.Reflection.Metadata:7.0.0 \ + System.Runtime.Caching:8.0.0 \ + System.Runtime.CompilerServices.Unsafe:6.0.0 \ + System.Security.AccessControl:6.0.0 \ + System.Security.Cryptography.Pkcs:8.0.0 \ + System.Security.Cryptography.ProtectedData:8.0.0 \ + System.Security.Cryptography.Xml:8.0.0 \ + System.Security.Permissions:8.0.0 \ + System.Security.Principal.Windows:5.0.0 \ + System.ServiceModel.Duplex:4.10.3 \ + System.ServiceModel.Http:4.10.3 \ + System.ServiceModel.NetTcp:4.10.3 \ + System.ServiceModel.Primitives:4.10.3 \ + System.ServiceModel.Security:4.10.3 \ + System.ServiceModel.Syndication:8.0.0 \ + System.ServiceProcess.ServiceController:8.0.0 \ + System.Speech:8.0.0 \ + System.Text.Encoding.CodePages:7.0.0 \ + System.Text.Encoding.CodePages:8.0.0 \ + System.Text.Encodings.Web:6.0.0 \ + System.Text.Encodings.Web:8.0.0 \ + System.Text.Json:6.0.9 \ + System.Threading.AccessControl:8.0.0 \ + System.Threading.Tasks.Extensions:4.5.4 \ + System.Web.Services.Description:4.10.3 \ + System.Windows.Extensions:8.0.0 +NUPKG_PWSH= Microsoft.PowerShell.PSResourceGet:1.0.3 \ + PSReadLine:2.3.4 \ + PowerShellGet:3.0.23-beta23 + +PWSH_MOD_EXTRACT_ARGS= -x "\[Content_Types\].xml" \ + -x "_*/*" \ + -x "package/*" \ + -x "*.txt" \ + -x "*.nuspec" + +post-extract: + ${RM} -r ${WRKSRC}/src/libpsl-native + ${MV} ${WRKSRC_native}/src/libpsl-native ${WRKSRC}/src/libpsl-native + ${MKDIR} ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj + ${CP} ${FILESDIR}/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets \ + ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj + +post-patch: + ${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|' \ + -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/nuget.config + ${REINPLACE_CMD} 's|%%DISTVERSION%%|${DISTVERSION}|' \ + ${WRKSRC}/PowerShell.Common.props + ${REINPLACE_CMD} 's|%%DOTNET_ARCH%%|${DOTNET_ARCH}|g' \ + ${WRKSRC}/src/ResGen/ResGen.csproj \ + ${WRKSRC}/src/TypeCatalogGen/TypeCatalogGen.csproj \ + ${WRKSRC}/src/powershell-unix/powershell-unix.csproj + +post-build: + cd ${WRKSRC}/src/ResGen && \ + dotnet restore --packages ${WRKDIR}/packages && \ + dotnet build --no-restore && \ + dotnet run --no-restore + cd ${WRKSRC}/src/powershell-unix && \ + dotnet restore --packages ${WRKDIR}/packages + cd ${WRKSRC}/src && dotnet msbuild \ + Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj \ + /t:_GetDependencies /p:DesignTimeBuild=true \ + /p:_DependencyFile=${WRKSRC}/src/TypeCatalogGen/powershell.inc \ + /nologo + cd ${WRKSRC}/src/TypeCatalogGen && \ + dotnet restore --packages ${WRKDIR}/packages && \ + dotnet build --no-restore && \ + dotnet run --no-restore \ + ../System.Management.Automation/CoreCLR/CorePsTypeCatalog.cs \ + powershell.inc + cd ${WRKSRC}/src/powershell-unix && \ + dotnet publish --packages ${WRKDIR}/packages -c Release \ + -r freebsd-${DOTNET_ARCH} -o bin/publish \ + --sc -p:PublishReadyToRun=true + ${INSTALL_LIB} ${WRKSRC}/src/powershell-unix/libpsl-native.so \ + ${WRKSRC}/src/powershell-unix/bin/publish + +do-install: + ${CP} -r ${WRKSRC}/src/powershell-unix/bin/publish \ + ${STAGEDIR}${PREFIX}/lib/powershell + ${LN} -s ../lib/powershell/pwsh ${STAGEDIR}${PREFIX}/bin + +post-install-MODULES-on: +.for m in ${NUPKG_PWSH} + ${UNZIP_NATIVE_CMD} ${PWSH_MOD_EXTRACT_ARGS} \ + -d ${STAGEDIR}${PREFIX}/lib/powershell/Modules/${m:C/:.*//} \ + ${DISTDIR}/nuget/${m:C/:.*//:tl}.${m:C/.*://:tl}.nupkg +.endfor + +.include "nuget.mk" +.include diff --git a/shells/powershell/distinfo b/shells/powershell/distinfo new file mode 100644 index 000000000000..b598c4ffaa6f --- /dev/null +++ b/shells/powershell/distinfo @@ -0,0 +1,193 @@ +TIMESTAMP = 1712069557 +SHA256 (nuget/dotnetanalyzers.documentationanalyzers.1.0.0-beta.59.nupkg) = 923a54cd5b0fdb74cc6cc49a01b9027785ef4fd142b9b0802a588ae242a6740e +SIZE (nuget/dotnetanalyzers.documentationanalyzers.1.0.0-beta.59.nupkg) = 14410 +SHA256 (nuget/dotnetanalyzers.documentationanalyzers.unstable.1.0.0.59.nupkg) = ae589831a3338b8b7efc889cbfc65f64724460ca63e4af97a8da03bff2c02191 +SIZE (nuget/dotnetanalyzers.documentationanalyzers.unstable.1.0.0.59.nupkg) = 148293 +SHA256 (nuget/jetbrains.annotations.2021.2.0.nupkg) = 36d4e2a30acc420a138904217a2a2c79bfde1862c7faa47f3570c502c5ab3b4f +SIZE (nuget/jetbrains.annotations.2021.2.0.nupkg) = 127455 +SHA256 (nuget/json.more.net.1.9.3.nupkg) = e4ef35a69e028ebad5eda65a5ca376fecc92bc06e8dfff41a9d2c39a4e4a3502 +SIZE (nuget/json.more.net.1.9.3.nupkg) = 49221 +SHA256 (nuget/jsonpointer.net.3.0.3.nupkg) = 7d64756820d6c9ce9f9412c568648999783dbe0daa325008379c278f6458a8b6 +SIZE (nuget/jsonpointer.net.3.0.3.nupkg) = 43717 +SHA256 (nuget/jsonschema.net.5.2.7.nupkg) = eb619b17b4ed360c6e05edec0c90768996c14ce734f93c8c9e9407f737a6afca +SIZE (nuget/jsonschema.net.5.2.7.nupkg) = 142696 +SHA256 (nuget/markdig.signed.0.33.0.nupkg) = d0046110ae6197392f174eed4cedf8ce7670718305423a1be43dab0d6ca52620 +SIZE (nuget/markdig.signed.0.33.0.nupkg) = 890574 +SHA256 (nuget/microsoft.applicationinsights.2.21.0.nupkg) = 9d30cbb53cfb1f01bcbab28ab786b3b67a7039b83282365ba368f589972403e0 +SIZE (nuget/microsoft.applicationinsights.2.21.0.nupkg) = 1703530 +SHA256 (nuget/microsoft.bcl.asyncinterfaces.5.0.0.nupkg) = 6e92637094944991f419e397a19235db151039fd9246dc46eec655d1d592e532 +SIZE (nuget/microsoft.bcl.asyncinterfaces.5.0.0.nupkg) = 74074 +SHA256 (nuget/microsoft.codeanalysis.analyzers.3.3.4.nupkg) = a83cd37d90520af014bbd833ab693e2cebe1ebf791bc9f7ef9508d724fd9a671 +SIZE (nuget/microsoft.codeanalysis.analyzers.3.3.4.nupkg) = 1461577 +SHA256 (nuget/microsoft.codeanalysis.common.4.8.0.nupkg) = dc81229d54d9abafda6a331503c5d344edcb4c812dd0fba11b22131892edab3e +SIZE (nuget/microsoft.codeanalysis.common.4.8.0.nupkg) = 6839507 +SHA256 (nuget/microsoft.codeanalysis.csharp.4.8.0.nupkg) = 3263a75c9bddfdecece543dcab218b9db673e66f9579da517c1fa415979eaa45 +SIZE (nuget/microsoft.codeanalysis.csharp.4.8.0.nupkg) = 17131783 +SHA256 (nuget/microsoft.extensions.objectpool.5.0.17.nupkg) = 706001ebb1d56794da4d0d6d65af3cee6ddbe87f5a641eab87bb0e1e16ce88c9 +SIZE (nuget/microsoft.extensions.objectpool.5.0.17.nupkg) = 74556 +SHA256 (nuget/microsoft.management.infrastructure.3.0.0.nupkg) = bd5a6b8baf5985de61f01ef03fdb240ec817e55ed3b0a237f722d78d65eab272 +SIZE (nuget/microsoft.management.infrastructure.3.0.0.nupkg) = 108606 +SHA256 (nuget/microsoft.management.infrastructure.runtime.unix.3.0.0.nupkg) = b4f959bad08df9a6e680c33200f5cefe7c1b8222a26eb134d338de0b565425ab +SIZE (nuget/microsoft.management.infrastructure.runtime.unix.3.0.0.nupkg) = 122301 +SHA256 (nuget/microsoft.management.infrastructure.runtime.win.3.0.0.nupkg) = 7206e8f30c824066fb34a97795ba88e4733a6958e9e08fba746e035ef6075f34 +SIZE (nuget/microsoft.management.infrastructure.runtime.win.3.0.0.nupkg) = 787562 +SHA256 (nuget/microsoft.netcore.platforms.1.1.2.nupkg) = adaf848ef23c5f302a56f8b4cde237b77ac88e0c6e721026bcf7a86e8a3af8b1 +SIZE (nuget/microsoft.netcore.platforms.1.1.2.nupkg) = 27498 +SHA256 (nuget/microsoft.powershell.markdownrender.7.2.1.nupkg) = 4a28a353be54c2dcf225f421832c4e1b8634a4021f8ad3d8219dc442bb5d657a +SIZE (nuget/microsoft.powershell.markdownrender.7.2.1.nupkg) = 49815 +SHA256 (nuget/microsoft.powershell.native.7.4.0.nupkg) = 5ce903457b6ac0a8565e13916d9bbcffd49d31fc02dd19fbb868f17e5e62e249 +SIZE (nuget/microsoft.powershell.native.7.4.0.nupkg) = 590282 +SHA256 (nuget/microsoft.powershell.psresourceget.1.0.3.nupkg) = fa7db1bee9a8dcbaed478472c3b47b9b9e69ff8386a9b9b36460f2055cdb1403 +SIZE (nuget/microsoft.powershell.psresourceget.1.0.3.nupkg) = 2075520 +SHA256 (nuget/microsoft.security.extensions.1.2.0.nupkg) = 29eda91feacdde4be774a01e06b2d66812021e09b963936a597c9fe0d0480bc7 +SIZE (nuget/microsoft.security.extensions.1.2.0.nupkg) = 158448 +SHA256 (nuget/microsoft.win32.registry.4.7.0.nupkg) = fa3582c11a94fc9fe32dd40a0c59bddd67c80eb0cc5cc27df3851ebda40ca22f +SIZE (nuget/microsoft.win32.registry.4.7.0.nupkg) = 378359 +SHA256 (nuget/microsoft.win32.registry.accesscontrol.8.0.0.nupkg) = 176fd556c739737469b2b697031eb73fc39d640eb51e1d476e2ad8237535153e +SIZE (nuget/microsoft.win32.registry.accesscontrol.8.0.0.nupkg) = 152626 +SHA256 (nuget/microsoft.win32.systemevents.8.0.0.nupkg) = 51cc6eac46a6603f81b9ad0f6cf34c60065a46e94cae8bfc09f6c91888136914 +SIZE (nuget/microsoft.win32.systemevents.8.0.0.nupkg) = 233719 +SHA256 (nuget/microsoft.windows.compatibility.8.0.1.nupkg) = bc5c39975e6ceabf27094c3cc93207e6e4e064b2446d9da56d3a6343db03f4b2 +SIZE (nuget/microsoft.windows.compatibility.8.0.1.nupkg) = 34254 +SHA256 (nuget/netstandard.library.2.0.3.nupkg) = 3eb87644f79bcffb3c0331dbdac3c7837265f2cdf58a7bfd93e431776f77c9ba +SIZE (nuget/netstandard.library.2.0.3.nupkg) = 3146139 +SHA256 (nuget/newtonsoft.json.13.0.3.nupkg) = 872fc189e638ab1056555b03aaa38f68bcb54286e221aa646eb1129babf63c77 +SIZE (nuget/newtonsoft.json.13.0.3.nupkg) = 2441966 +SHA256 (nuget/powershellget.3.0.23-beta23.nupkg) = b25688d2758aabbff04b4cd39a93aaa253be272080e7f92329273920e95c2707 +SIZE (nuget/powershellget.3.0.23-beta23.nupkg) = 28433 +SHA256 (nuget/psreadline.2.3.4.nupkg) = 906569c65c52775c41df985c53fca07f1d19d8460fc667f0ab0a37b53d5b495b +SIZE (nuget/psreadline.2.3.4.nupkg) = 257204 +SHA256 (nuget/runtime.linux-arm.runtime.native.system.io.ports.8.0.0.nupkg) = 9b9fa877b661973226c1213d13b42ad671f70379ae5f00a7b2fad552827bf961 +SIZE (nuget/runtime.linux-arm.runtime.native.system.io.ports.8.0.0.nupkg) = 50157 +SHA256 (nuget/runtime.linux-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = 2206c6dc74f7034548b569796ac13b1e4d336908d09de2904bd7fae5c4008cb2 +SIZE (nuget/runtime.linux-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = 51321 +SHA256 (nuget/runtime.linux-x64.runtime.native.system.io.ports.8.0.0.nupkg) = e38a2e8d21e1734365d960af2d891272b032a8d0256c67ce9e5ccfc02a1fc250 +SIZE (nuget/runtime.linux-x64.runtime.native.system.io.ports.8.0.0.nupkg) = 51343 +SHA256 (nuget/runtime.native.system.data.sqlclient.sni.4.7.0.nupkg) = 723d3e0699a889bc0e5a3db0357c0e3497931a8b26170843df8f733e335a04ad +SIZE (nuget/runtime.native.system.data.sqlclient.sni.4.7.0.nupkg) = 26713 +SHA256 (nuget/runtime.native.system.io.ports.8.0.0.nupkg) = 06a131554ff31e3ee8fbe9b33a963dcbe8bdc996556dc1a63bf0f8991ce2818f +SIZE (nuget/runtime.native.system.io.ports.8.0.0.nupkg) = 45552 +SHA256 (nuget/runtime.osx-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = a05305eb4cb24f2ddf5f02e55c990d52dcdd473e04cb17af01421c7dc5444821 +SIZE (nuget/runtime.osx-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = 50922 +SHA256 (nuget/runtime.osx-x64.runtime.native.system.io.ports.8.0.0.nupkg) = 6f627d0dcba732d0a1a6ec8d0b45cddfd674d56afbdfc1c8fecc895b59fd6df1 +SIZE (nuget/runtime.osx-x64.runtime.native.system.io.ports.8.0.0.nupkg) = 50739 +SHA256 (nuget/runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = f311a2aa4e60e2433bf7ffd28aba33983b43a6ac155c7dc29af22cec63707e1d +SIZE (nuget/runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 97899 +SHA256 (nuget/runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 1e85ca18192e7b44494f5499c409625664f9adb7d4df10fc987f217c2bd1c704 +SIZE (nuget/runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 100353 +SHA256 (nuget/runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 8cf9d6cc371bb9f3b9d462c68f29d61f2d1bfb93c1a8dc4cf952a64ab39b794c +SIZE (nuget/runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 90533 +SHA256 (nuget/stylecop.analyzers.1.2.0-beta.556.nupkg) = f7b61841caf9bd9c53be2dfaeb4f1e524035c1beb1965650ed47176e3ad821f5 +SIZE (nuget/stylecop.analyzers.1.2.0-beta.556.nupkg) = 15876 +SHA256 (nuget/stylecop.analyzers.unstable.1.2.0.556.nupkg) = 695a29edaf6bf97d91b191138278019b7a903c42223c15a01f389c1924c4ca67 +SIZE (nuget/stylecop.analyzers.unstable.1.2.0.556.nupkg) = 474559 +SHA256 (nuget/system.buffers.4.5.1.nupkg) = c30b3dd2c7e2f4cee4b823d692fd42118309b42ab1f5007f923d329a5b0d6b12 +SIZE (nuget/system.buffers.4.5.1.nupkg) = 93737 +SHA256 (nuget/system.codedom.8.0.0.nupkg) = bb05618b7c5cbd7ede88e1908bb751113937431d447c7b147dc859b04b68df7f +SIZE (nuget/system.codedom.8.0.0.nupkg) = 510041 +SHA256 (nuget/system.collections.immutable.7.0.0.nupkg) = f5a9f6c1bc6e7b6aabb6e818112f5ac2c85083e29f26a6a386786ce3991021d9 +SIZE (nuget/system.collections.immutable.7.0.0.nupkg) = 538962 +SHA256 (nuget/system.componentmodel.composition.8.0.0.nupkg) = 32729d8c4fea22f02611e45cde03a7e6e2614f44c8dd49d424f8e3dd32c7150a +SIZE (nuget/system.componentmodel.composition.8.0.0.nupkg) = 534116 +SHA256 (nuget/system.componentmodel.composition.registration.8.0.0.nupkg) = 9b40e6000d55dffb1bbf2d1816b41e3830171863cc9811311d8940c99944ea3f +SIZE (nuget/system.componentmodel.composition.registration.8.0.0.nupkg) = 153743 +SHA256 (nuget/system.configuration.configurationmanager.8.0.0.nupkg) = c61963a9290d424f0332410e0526279fd9730921030eae323bdd748ada6daa21 +SIZE (nuget/system.configuration.configurationmanager.8.0.0.nupkg) = 977652 +SHA256 (nuget/system.data.odbc.8.0.0.nupkg) = b908c3c2c0589bb0531937a69e76ba8d8243aa576494be5f0a6ac267d57aabce +SIZE (nuget/system.data.odbc.8.0.0.nupkg) = 2716587 +SHA256 (nuget/system.data.oledb.8.0.0.nupkg) = 1542d0811e5d9452b56d5eed2aeef6bcf876e0e6be4c0b9ae6a2b995949cc6ef +SIZE (nuget/system.data.oledb.8.0.0.nupkg) = 792319 +SHA256 (nuget/system.data.sqlclient.4.8.6.nupkg) = 41cff2728dded3eea33fc522300d044657d210a74836fd019878b187d67c7c94 +SIZE (nuget/system.data.sqlclient.4.8.6.nupkg) = 4928218 +SHA256 (nuget/system.diagnostics.diagnosticsource.8.0.0.nupkg) = f9a38368311032a95ae516197aad0b87aea3fb190f631ca4ad5bd20a6250f95b +SIZE (nuget/system.diagnostics.diagnosticsource.8.0.0.nupkg) = 516197 +SHA256 (nuget/system.diagnostics.eventlog.8.0.0.nupkg) = aedf3173791d769418e0711d82194178e2b881dc39c888f899c661015b64dbf6 +SIZE (nuget/system.diagnostics.eventlog.8.0.0.nupkg) = 535543 +SHA256 (nuget/system.diagnostics.performancecounter.8.0.0.nupkg) = 09b4cbfa8adce5870425f29b06dafff69ff4acd5553903f3fdf384680e8fbb99 +SIZE (nuget/system.diagnostics.performancecounter.8.0.0.nupkg) = 428758 +SHA256 (nuget/system.directoryservices.8.0.0.nupkg) = 6ba1021afb03a873d9b9a1bddb4ccc8dc08e043d8abe0f235a949a7202f86bb0 +SIZE (nuget/system.directoryservices.8.0.0.nupkg) = 1006445 +SHA256 (nuget/system.directoryservices.accountmanagement.8.0.0.nupkg) = 10a318bb9668ac4174791561a0e4a3c9895f8e95a730d5f4553b97454f2d31f7 +SIZE (nuget/system.directoryservices.accountmanagement.8.0.0.nupkg) = 598049 +SHA256 (nuget/system.directoryservices.protocols.8.0.0.nupkg) = 1eadff636429665254639d96e96629894490b22316971bdebcb045fa27291b3a +SIZE (nuget/system.directoryservices.protocols.8.0.0.nupkg) = 954895 +SHA256 (nuget/system.drawing.common.8.0.1.nupkg) = 457c3bc5911f70fb5dc1b4c7bf118bd0b2c0b74582a908129d1e0b67a4f0870a +SIZE (nuget/system.drawing.common.8.0.1.nupkg) = 1566817 +SHA256 (nuget/system.formats.asn1.8.0.0.nupkg) = 015325e8ddd21b602a01c40716bb9fd900d0790202dc2202c480fe4a1d2f0712 +SIZE (nuget/system.formats.asn1.8.0.0.nupkg) = 322419 +SHA256 (nuget/system.io.packaging.8.0.0.nupkg) = 90139a1b5637b5eef4f25f359888a0ed82a5eb03db108010f49f26cc751d3bf0 +SIZE (nuget/system.io.packaging.8.0.0.nupkg) = 344967 +SHA256 (nuget/system.io.ports.8.0.0.nupkg) = 1bc8fd7347ab07365f2405655b4f17a04e7c80f862356244efcb056815767b84 +SIZE (nuget/system.io.ports.8.0.0.nupkg) = 427021 +SHA256 (nuget/system.management.8.0.0.nupkg) = 1f0a5f0dbfbeabbfefc51eaae7b986160979534bf1cbea1127aa2b14a3917cfd +SIZE (nuget/system.management.8.0.0.nupkg) = 791455 +SHA256 (nuget/system.memory.4.5.5.nupkg) = 10f43da352a29fb2b3188e4edd4dcf5100194c8b526e4f61fe2e2b5623775a22 +SIZE (nuget/system.memory.4.5.5.nupkg) = 208978 +SHA256 (nuget/system.net.http.winhttphandler.8.0.0.nupkg) = c122b92ad5af943a7c58b35d74298033aeae1b28fdfca7c9c8287c86dd4f0f53 +SIZE (nuget/system.net.http.winhttphandler.8.0.0.nupkg) = 416095 +SHA256 (nuget/system.numerics.vectors.4.4.0.nupkg) = 6ae5d02b67e52ff2699c1feb11c01c526e2f60c09830432258e0809486aabb65 +SIZE (nuget/system.numerics.vectors.4.4.0.nupkg) = 337043 +SHA256 (nuget/system.numerics.vectors.4.5.0.nupkg) = a9d49320581fda1b4f4be6212c68c01a22cdf228026099c20a8eabefcf90f9cf +SIZE (nuget/system.numerics.vectors.4.5.0.nupkg) = 382792 +SHA256 (nuget/system.private.servicemodel.4.10.3.nupkg) = 1786507c1ee2ecae6361e5766465b38b71ad9d3406fbbb9c213a1fd3a4c8437c +SIZE (nuget/system.private.servicemodel.4.10.3.nupkg) = 2204805 +SHA256 (nuget/system.reflection.context.8.0.0.nupkg) = e00adf82e4d8e0599b35c71ec67ab03299939031e5039b02733439462e6403de +SIZE (nuget/system.reflection.context.8.0.0.nupkg) = 219153 +SHA256 (nuget/system.reflection.dispatchproxy.4.7.1.nupkg) = 3a2fa5df6a7bdd9c70701e86ad24b69b6e4171c7e9bb06d8e1ec8513051ed083 +SIZE (nuget/system.reflection.dispatchproxy.4.7.1.nupkg) = 197900 +SHA256 (nuget/system.reflection.metadata.7.0.0.nupkg) = 1b000a4219213c1613aa645d1bd73db5aaab292283c325203848562cac5634f2 +SIZE (nuget/system.reflection.metadata.7.0.0.nupkg) = 1029794 +SHA256 (nuget/system.runtime.caching.8.0.0.nupkg) = c086c1065c02dcdfcc9f4e55d187d370bb239a8e8d50277a835b9bb4d67a1c34 +SIZE (nuget/system.runtime.caching.8.0.0.nupkg) = 393136 +SHA256 (nuget/system.runtime.compilerservices.unsafe.6.0.0.nupkg) = 6c41b53e70e9eee298cff3a02ce5acdd15b04125589be0273f0566026720a762 +SIZE (nuget/system.runtime.compilerservices.unsafe.6.0.0.nupkg) = 84343 +SHA256 (nuget/system.security.accesscontrol.6.0.0.nupkg) = a8ec961016cdaf7123c92f9eb451bcff331bb8f8c0f8ef9d8bbd7b24ff42c728 +SIZE (nuget/system.security.accesscontrol.6.0.0.nupkg) = 322676 +SHA256 (nuget/system.security.cryptography.pkcs.8.0.0.nupkg) = caa7c821e65c86c208d8a75cc49c80a59373c4cfd52a49e3b36e600d69707812 +SIZE (nuget/system.security.cryptography.pkcs.8.0.0.nupkg) = 1076987 +SHA256 (nuget/system.security.cryptography.protecteddata.8.0.0.nupkg) = 7dbd296bdb10c4dfa6af4be75e0d4881bc78f4268ea92f860e44df58d6e852fb +SIZE (nuget/system.security.cryptography.protecteddata.8.0.0.nupkg) = 148572 +SHA256 (nuget/system.security.cryptography.xml.8.0.0.nupkg) = 5d283cafd4c1a188ba285d744e0dc7c82377a539b5a40dafd01a27120bbe3d75 +SIZE (nuget/system.security.cryptography.xml.8.0.0.nupkg) = 463756 +SHA256 (nuget/system.security.permissions.8.0.0.nupkg) = f9850f63edc79d399f3cb673afee6a124d11a9a9426c564180b5de7b5c821f53 +SIZE (nuget/system.security.permissions.8.0.0.nupkg) = 538298 +SHA256 (nuget/system.security.principal.windows.5.0.0.nupkg) = 081390c25f6f78592b28ada853c24514488a221fe9f9a24efaaf5373643ff3d6 +SIZE (nuget/system.security.principal.windows.5.0.0.nupkg) = 535022 +SHA256 (nuget/system.servicemodel.duplex.4.10.3.nupkg) = 6888497fd53965e39b4d3db2094c325712669377ff864ac784d306ef32fd8672 +SIZE (nuget/system.servicemodel.duplex.4.10.3.nupkg) = 166643 +SHA256 (nuget/system.servicemodel.http.4.10.3.nupkg) = 7484a3c14b5246efd32e24fa58c560177a6680c8a4204370df14e7f082659fc5 +SIZE (nuget/system.servicemodel.http.4.10.3.nupkg) = 237427 +SHA256 (nuget/system.servicemodel.nettcp.4.10.3.nupkg) = 0c83bc2e4207ba480215e488803c4f6affc842ef4874cb72c1e031548f5a8053 +SIZE (nuget/system.servicemodel.nettcp.4.10.3.nupkg) = 211587 +SHA256 (nuget/system.servicemodel.primitives.4.10.3.nupkg) = 3620a006732eab633e4cf692d2bc72b9a6495e8ed8b646bc1de619df1abad6b2 +SIZE (nuget/system.servicemodel.primitives.4.10.3.nupkg) = 419873 +SHA256 (nuget/system.servicemodel.security.4.10.3.nupkg) = 2f515a9dccd0ebcd006077b79d89e88a4c1cff74b470b661bdc044454f1a7d79 +SIZE (nuget/system.servicemodel.security.4.10.3.nupkg) = 189764 +SHA256 (nuget/system.servicemodel.syndication.8.0.0.nupkg) = bca8220c640171a110896a5f53a90646d949b250505ed146a85f84564feeee42 +SIZE (nuget/system.servicemodel.syndication.8.0.0.nupkg) = 349566 +SHA256 (nuget/system.serviceprocess.servicecontroller.8.0.0.nupkg) = 9aafd09bc25e314be2b477f7dbf17cbafc356091b1e29ac69c423f57375a1402 +SIZE (nuget/system.serviceprocess.servicecontroller.8.0.0.nupkg) = 295541 +SHA256 (nuget/system.speech.8.0.0.nupkg) = a20b6744151c4ebb966743558af294ba99153c020d8a0381b89d06bff4f5c109 +SIZE (nuget/system.speech.8.0.0.nupkg) = 1131725 +SHA256 (nuget/system.text.encoding.codepages.7.0.0.nupkg) = 782293570ba60f4e7564472825c0d54469c8180b04bcaa5f1f7c9d2a5b87c66a +SIZE (nuget/system.text.encoding.codepages.7.0.0.nupkg) = 3198933 +SHA256 (nuget/system.text.encoding.codepages.8.0.0.nupkg) = 7e308b41cd4f456d08c7921995d8345cabfe2750ea3d27eef698ccc8d069edd1 +SIZE (nuget/system.text.encoding.codepages.8.0.0.nupkg) = 4260927 +SHA256 (nuget/system.text.encodings.web.6.0.0.nupkg) = 51e9831c61684081bb39b430465ba155fe8082d42291f1c4a0f2c2ea06c5c91a +SIZE (nuget/system.text.encodings.web.6.0.0.nupkg) = 235525 +SHA256 (nuget/system.text.encodings.web.8.0.0.nupkg) = 21442442457da68d4b0b442caab8a5ab03733ef9dcfb8795beafa10afabc7ef1 +SIZE (nuget/system.text.encodings.web.8.0.0.nupkg) = 374440 +SHA256 (nuget/system.text.json.6.0.9.nupkg) = e638efc55f2e6c662393274384bb0665707a9a5dceffb0866ae41cbb58a478bb +SIZE (nuget/system.text.json.6.0.9.nupkg) = 1396928 +SHA256 (nuget/system.threading.accesscontrol.8.0.0.nupkg) = f2e82a652caa7d37c806de3170b76f6fa0660531d616c1804e46ac36fb04b494 +SIZE (nuget/system.threading.accesscontrol.8.0.0.nupkg) = 245419 +SHA256 (nuget/system.threading.tasks.extensions.4.5.4.nupkg) = a304a963cc0796c5179f9c6b7d8022bbce3b2fa7c029eb6196f631f7b462d678 +SIZE (nuget/system.threading.tasks.extensions.4.5.4.nupkg) = 89582 +SHA256 (nuget/system.web.services.description.4.10.3.nupkg) = 8aa93f43a8d9fc36581ebb2e13c5f736a6620b2bee4ccc61dbcef40342e499e3 +SIZE (nuget/system.web.services.description.4.10.3.nupkg) = 285511 +SHA256 (nuget/system.windows.extensions.8.0.0.nupkg) = 687933ecbb665030d14bbb3040cd22e9d0d5532b5108c61e03609f69e540d98d +SIZE (nuget/system.windows.extensions.8.0.0.nupkg) = 201765 +SHA256 (PowerShell-PowerShell-7.4.1-v7.4.1_GH0.tar.gz) = 8f0f1908eea0f88e5e49dd51ebeaf52917eda2c07895416d06f08ab319ebe784 +SIZE (PowerShell-PowerShell-7.4.1-v7.4.1_GH0.tar.gz) = 10845376 +SHA256 (PowerShell-PowerShell-Native-v7.4.0_GH0.tar.gz) = 5220f99755442720486e20682269fecdabbbabff9e082c1a51250b66465f40cf +SIZE (PowerShell-PowerShell-Native-v7.4.0_GH0.tar.gz) = 288919 diff --git a/shells/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets b/shells/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets new file mode 100644 index 000000000000..85ece3e539a3 --- /dev/null +++ b/shells/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets @@ -0,0 +1,9 @@ + + + + <_RefAssemblyPath Include="%(_ReferencesFromRAR.HintPath)%3B" Condition=" '%(_ReferencesFromRAR.NuGetPackageId)' != 'Microsoft.Management.Infrastructure' "/> + + + + diff --git a/shells/powershell/files/patch-PowerShell.Common.props b/shells/powershell/files/patch-PowerShell.Common.props new file mode 100644 index 000000000000..42f99be21a49 --- /dev/null +++ b/shells/powershell/files/patch-PowerShell.Common.props @@ -0,0 +1,28 @@ +--- PowerShell.Common.props.orig 2024-03-30 13:05:49 UTC ++++ PowerShell.Common.props +@@ -15,12 +15,10 @@ + BeforeTargets="_GenerateRestoreProjectSpec;GenerateNuspec;BeforeBuild" + > + +- +- +- ++ ++ %%DISTVERSION%% ++ %%DISTVERSION%% ++ + + +