Package Details: powershell 7.4.1-4

Git Clone URL: https://aur.archlinux.org/powershell.git (read-only, click to copy)
Package Base: powershell
Description: A cross-platform automation and configuration tool/framework (latest release)
Upstream URL: https://github.com/PowerShell/PowerShell
Keywords: .net automation microsoft net powershell script scripting shell
Licenses: MIT
Submitter: jsteel
Maintainer: kylesferrazza (richardba, carsme)
Last Packager: carsme
Votes: 83
Popularity: 1.10
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2024-03-10 11:11 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 18 Next › Last »

synthead commented on 2022-12-12 21:30 (UTC)

Working PKGBUILD for 7.3.0: https://gist.github.com/synthead/6a356c12a1067e91e154e5aafbeda9fc

synthead commented on 2022-11-28 17:45 (UTC)

This package doesn't build:

==> Starting build()...
  Determining projects to restore...
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj (in 688 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj (in 707 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 6.79 sec).
  Determining projects to restore...
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/ResGen.csproj (in 183 ms).
  Determining projects to restore...
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/TypeCatalogGen/TypeCatalogGen.csproj (in 209 ms).
~/.cache/pacaur/powershell/src/powershell/src/ResGen ~/.cache/pacaur/powershell/src/powershell
/home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/Program.cs(12,18): warning CA1052: Type 'Program' is a static holder type but is neither static nor NotInheritable [/home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/ResGen.csproj]
You must install or update .NET to run this application.

App: /home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/bin/Debug/net6.0/resgen
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  7.0.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=arch-x64
==> ERROR: A failure occurred in build().
    Aborting...
:: lttng-ust is now an orphan package
:: failed to build powershell package(s)

jogai commented on 2022-11-08 11:11 (UTC)

When I look in the distribution from git I see some more modules:

├── Microsoft.PowerShell.Archive
├── Microsoft.PowerShell.Host
├── Microsoft.PowerShell.Management
├── Microsoft.PowerShell.Security
├── Microsoft.PowerShell.Utility
├── PackageManagement
├── PowerShellGet
├── PSReadLine
└── ThreadJob

9 directories, 0 files

And it seems to me that these are necesarry because without it you cant install other modules or use starship prompt for example.

bastiendurel commented on 2022-10-26 16:04 (UTC) (edited on 2022-10-26 16:07 (UTC) by bastiendurel)

Hello. The current version does not build on my system (having dotnet-sdk-bin 6.0.10.sdk402-1) :

[...]
[100%] Built target gmock_main
~/.cache/yay/powershell/src/powershell
MSBuild version 17.3.2+561848881 for .NET
  Determining projects to restore...
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj (in 3.15 sec).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj (in 131 ms).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj (in 84 ms).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj (in 102 ms).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 6.16 sec).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj (in 6.25 sec).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj (in 6.26 sec).
[...]
/usr/share/dotnet/sdk/6.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1114,5): warning NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used. [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/FormatAndOutput/common/Utilities/Mshexpression.cs(329,21): error IDE0074: Use compound assignment [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
[...]
/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs(234,21): error IDE0074: Use compound assignment [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs(1292,21): error IDE0074: Use compound assignment [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
==> ERROR: A failure occurred in build().
    Aborting...

Neither does it build in a clean container (it hangs at first Determining projects to restore..., not crash)

root     1033700  0.0  0.0  12484  5044 pts/0    S+   12:35   0:00  |                   \_ systemd-nspawn -D /var/lib/archlinux/.tmp3 --bind=/var/www/pacserve/corrin:/srv/http/corrin /check-and-build powershell
root     1033702  0.0  0.0   4412  3680 pts/0    Ss+  12:35   0:00  |                       \_ /bin/sh /check-and-build powershell
root     1033792  0.0  0.0  12864  6332 pts/0    S+   12:35   0:00  |                           \_ sudo -u bastien makepkg -s --noconfirm
bastien  1033793  0.0  0.0   7080  6192 pts/0    S+   12:35   0:00  |                           |   \_ /usr/bin/bash /usr/sbin/makepkg -s --noconfirm
bastien  1034855 99.9  1.4 4542688 115448 pts/0  Sl+  12:35 312:44  |                           |       \_ dotnet restore src/powershell-unix
bastien  1034877  0.0  1.1 4018524 94544 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034891  0.0  1.1 4018528 94964 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034912  0.0  1.1 4018524 94964 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034926  0.0  1.1 3944776 90468 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034497  0.0  0.0 151892   796 ?        Ss   12:35   0:00  |                           \_ gpg-agent --homedir /home/bastien/.gnupg --use-standard-socket --daemon

synthead commented on 2022-05-19 17:55 (UTC)

Also, can we download releases directly and omit the git build dependency? This will download less data, it'll fetch sources faster, and we'll be able to checksum it :)

https://github.com/PowerShell/PowerShell/releases/tag/v7.2.4

synthead commented on 2022-05-19 17:50 (UTC)

v7.2.4 is out :)

leewp14 commented on 2022-04-20 06:59 (UTC)

Unable to read data from the transport connection: Connection reset by peer.

If you get this error, can attempt to use powershell-bin. At least it works for me without having to mess with stuffs like the certs or whatsoever.

PowaBanga commented on 2022-01-26 17:25 (UTC)

Building in workspace /var/lib/jenkins/workspace/Repository_x86_64_powershell
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Repository_x86_64_powershell/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://aur.archlinux.org/powershell.git # timeout=10
Fetching upstream changes from https://aur.archlinux.org/powershell.git
 > git --version # timeout=10
 > git --version # 'git version 2.35.0'
 > git fetch --tags --force --progress -- https://aur.archlinux.org/powershell.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Seen branch in repository origin/master
Seen 1 remote branch
 > git show-ref --tags -d # timeout=10
Checking out Revision 44e63d82b804d7d4ece77703134020fd0bfb0728 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 44e63d82b804d7d4ece77703134020fd0bfb0728 # timeout=10
Commit message: "v7.2.1"
 > git rev-list --no-walk 44e63d82b804d7d4ece77703134020fd0bfb0728 # timeout=10
[Repository_x86_64_powershell] $ /bin/sh -xe /tmp/jenkins2258055242562360853.sh
+ makepkg -cf
==> Création du paquet powershell 7.2.1-1 (mar 25 jan 2022 22:49:39)
==> Vérification des dépendances pour l’exécution…
==> Vérification des dépendances pour la compilation…
==> Récupération des sources…
  -> Mise à jour du dépôt powershell git…
Récupération de origin
Depuis https://github.com/PowerShell/PowerShell
 + d1a2a77ee3...0ccdd09779 update-cgmanifest     -> update-cgmanifest  (mise à jour forcée)
 + 36e0444688...a4ab7ff70b refs/pull/10295/merge -> refs/pull/10295/merge  (mise à jour forcée)
 + b0e14cb347...ca1cbc0ae2 refs/pull/10725/merge -> refs/pull/10725/merge  (mise à jour forcée)
 + a63ba4e206...e256f801a9 refs/pull/13543/merge -> refs/pull/13543/merge  (mise à jour forcée)
 + d1a2a77ee3...0ccdd09779 refs/pull/16437/head  -> refs/pull/16437/head  (mise à jour forcée)
 + 7d57be6192...7db6dbac4a refs/pull/16437/merge -> refs/pull/16437/merge  (mise à jour forcée)
   6f7d61f557..ae3e9e664c  refs/pull/16797/head  -> refs/pull/16797/head
 + d13caf6fe9...774dbe56e9 refs/pull/16797/merge -> refs/pull/16797/merge  (mise à jour forcée)
 * [nouvelle référence]    refs/pull/16800/head  -> refs/pull/16800/head
 * [nouvelle référence]    refs/pull/16800/merge -> refs/pull/16800/merge
  -> Mise à jour du dépôt powershell-native git…
Récupération de origin
  -> Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets trouvé
==> Validation des fichiers source avec sha256sums…
    powershell ... Ignoré
    powershell-native ... Ignoré
    Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets ... Ignoré
==> Extraction des sources…
  -> Création d’une copie de travail du dépot powershell git…
Depuis /var/lib/jenkins/workspace/Repository_x86_64_powershell/powershell
 + d1a2a77ee3...0ccdd09779 update-cgmanifest -> origin/update-cgmanifest  (mise à jour forcée)
Remise à zéro de la branche 'makepkg'
  -> Création d’une copie de travail du dépot powershell-native git…
Basculement sur la nouvelle branche 'makepkg'
==> Lancement de prepare()…
==> Suppression du répertoire $pkgdir/ existant…
==> Lancement de build()…
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '6.0.0' (x64) was not found.
  - The following frameworks were found:
      6.0.0-rc.1.21451.13 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=arch-x64
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
Build step 'Exécuter un script shell' marked build as failure
Finished: FAILURE

jakebailey commented on 2021-12-27 02:27 (UTC)

Does this package need openssl-1.0? dotnet has been able to use 1.1 (what's in the Arch repos) for a while now, and switching the PKGBUILD doesn't seem to produce a binary that doesn't work. IIRC dotnet programs are smart enough to pick up the newest available one.

jfaulknercourt commented on 2021-11-19 21:46 (UTC) (edited on 2021-11-19 21:48 (UTC) by jfaulknercourt)

Hi all,

I am unable to get the package to build due to the following error: The SDK 'Microsoft.NET.Sdk' specified could not be found.

The MSBuildSDKsPath is set at a global level and I have the latest SDK installed (6.0.0.sdk100-3). I've tried pacman and yay with the same result.

I know I have seen a fix for this before but I'm damned if I can find it again now. Can anyone please indulge me and offer some help?