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
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) |
Last Packager: | richardba |
Votes: | 70 |
Popularity: | 0.044757 |
First Submitted: | 2016-11-26 22:16 (UTC) |
Last Updated: | 2022-06-03 18:38 (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
v7.2.4 is out :)
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.
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
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.
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?
With the dotnet-core package being updated, I was able to get this package to build with the following PKGBUILD.
Here is a diff to show what is changed.
I managed to get this package complied. First use yay to get this package downloaed. Second, remove contents from 'source' and 'sha256sums'. Third, update nuget.config file using https://pkgs.dev.azure.com/dnceng/public/_packaging/5.0.100-rtm.20526.5/nuget/v3/index.json. Last, do the PKGBuild again.
I am also experiencing the same issue as the last 3 comments. Have any of you found a work around?
@kingkingmax and @pixel1138 I am also receiving this error. The URL listed in the error appears to not exist.
@kingkingmax I also receive this error while attempting to update.
I got following error message when attempting to install it.
/usr/share/dotnet/sdk/5.0.402/NuGet.targets(131,5): error : Unable to load the service index for source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/5.0.100-rtm.20526.5/nuget/v3/index.json. [/home/acc1/.cache/yay/powershell/src/powershell/src/ResGen/ResGen.csproj]
/usr/share/dotnet/sdk/5.0.402/NuGet.targets(131,5): error : Response status code does not indicate success: 404 (Not Found - The feed with ID '5.0.100-rtm.20526.5' doesn't exist. (DevOps Activity ID: 3E296CD9-CA11-4A9E-A32B-2B8916B374E6)). [/home/acc1/.cache/yay/powershell/src/powershell/src/ResGen/ResGen.cspro
Any suggestion to fix this error?
If you happen to want to install powershell in arch linux when you have arch running as the linux distro for windows subsystem for linux, make sure you sudo chown / root
as for some reason, it changes ownership to the standard user. Building powershell will fail in src/powershell-native/src/libpsl-native/test/test-getfileowner.cpp which checks that / is owned by root.
For anyone wondering why they cannot find dotnet-sdk-bin version 5.0.9, it is because the maintainers of the package have not yet updated it. In the meantime, you can you the alternative https://aur.archlinux.org/packages/dotnet-sdk-bin. This version bump is required as stated in the release in GitHub.
@jammehcow I can't seem to find anything on the powershell GitHub page about it. You could open an issue in the official GitHub page and leave a link with your issue down below.
Installing/building will fail when using a non en_US.UTF-8
locale. If you uncomment that locale in /etc/locale.gen
and run locale-gen
the build should succeed.
Installing https://aur.archlinux.org/packages/ca-certificates-vsign-universal-root/ before building also fixes the build issue.
Indeed. I had an email chat with @richardba, and this bug report came up, which descrbes the workaround you used. It seems that using dotnet restore
is broken, and the problem is not explicitly related to the powershell package.
Just need to wait on upstream I believe...
Maybe a fix for certificate expired issue :
downgrade ca-certificates-mozilla to 3.62-1
download the package from https://archive.archlinux.org
sudo pacman -U ca-certificates-mozilla-3.62-1-x86_64.pkg.tar.zst
remove you .nuget folder
then try to rebuild powershell
Works for me, I also installed the latest ca-certificates-mozilla back.
I am trying to build powershell/7.1.3, but the build fails with a bunch of these errors:
/build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 2.1.2' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
Failed to restore /build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 48.19 sec).
Could this be related to this issue regarding a new cert for NuGet? Does this mean we are blocked from updating until the system ca-certificates
is updated?
I am currently trying to update the Version of PowerShell from 7.1.0 to 7.1.1, but I am having some trouble doing so. I am getting some error messages. If anyone wants to try my new PKGBUILD or help with the PKGBUILD, please email me. Here you can find the PKGBUILD. If you have any idea why I am getting the following errors please email me.
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
@blallo Please make sure you have installed dotnet 5.0. Judging by your error message you have installed version 3.1. I have already contacted the maintainer of the dotnet package and I will be updating the PKGBUILD to require dotnet-sdk-bin>=5 until a separate package is created for the version of dotnet 5.
When updating, today, I got this error
/usr/share/dotnet/sdk/3.1.108/Microsoft.Common.CurrentVersion.targets(1175,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/leo/.cache/pikaur/build/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj]
PowerShell's version was bumped up version 7.1. Dotnet 5 is required to install PowerShell 7.1
I can't seem to install this package when dotnet is already previously installed.
makepkg log: https://gist.github.com/ThomasAunvik/922edcd7b663eb8e72ec051691669194
dotnet --list-sdks
3.1.403 [/usr/share/dotnet/sdk]
Edit: nvm, looks like it was cause i used the install scripts instead of getting from pacman, aka https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script.
rm -rf /usr/share/dotnet basically fixes that.
I haven't been able to figure out how to get this version into a usable state, it's lacking PowerShellGet (Install-Module) and PSReadline (Tab completion, command repetition). Powershell-bin works.
Run yay --editmenu -S powershell
to alter the PKBUILD from 7.0.2 to 7.0.3 to manually update to the latest version.
Hello, Do anyone know how to install PowerShellGet to be able to use modules from PowerShell Gallery?
@kylesferrazza I'm willing to upload to AUR the specific dotnet SDK versions required for this package.
Let me know if you want me to, but if you do you will need to let me know beforehand next time the required SDK changes.
Has anyone ever encountered Cannot get symbol numa_node_of_cpu from libnuma
error?
I have encountered this error with all versions of pwsh 7, on linux kernel 5.5.13-1 and numactl 2.0.13-2
Here is the output of
dotnet --list-runtimes >Microsoft.AspNetCore.App 3.1.2 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.1.20124.5 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.2 [/opt/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [/opt/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.1.20120.5 [/opt/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [/opt/dotnet/shared/Microsoft.NETCore.App]
But still failed with powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 3.1.3)
You need to specify that the dotnet-sdk version has to be 3.1.2
because 3.1.3
for Microsoft.NETCore.App.Runtime.linux-x64/
does not exist in the nuget as you can see here.
I had to manually install the sdk by using the command:
pacman -U https://archive.archlinux.org/packages/d/dotnet-sdk/dotnet-{sdk,host,runtime}-3.1.2.sdk102-1-x86_64.pkg.tar.zst
It may also help to delete those packages from the cache before running the above command
In the end I gave up and just installed the bin
version (powershell-bin
)
I tried to install this package, but failed with following: /build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 3.1.3) Then I tried to update dotnet SDK to 3.1.3 (3.1.300-preview-015048), but its still failed with A compatible installed .NET Core SDK for global.json version [3.1.102] from [/home/acc1/.cache/yay/powershell/src/powershell/global.json] was not found
Waiting on an answer from upstream for the 7.0 update here. If you need 7.0 now, check out powershell-bin:
https://aur.archlinux.org/packages/powershell-bin
EDIT: the package has been updated :)
Apparently some of the standard components of powershell are not contained in the Powershell repo, but other repos like:
Does anyone know if this is packaged elsewhere? As a beginner powershell user, I was having a tough time figuring out why "Install-Module" was not working
Regarding the error message from @DuBistKomisch...I had a similiar error. I think the makedepends may need to be changed. In addition to the 'dotnet-sdk' (which is .NET Core 3) I had to install 'dotnet-sdk-2.2' from community as well. Then when I built this packaged it installed correctly.
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
- The following frameworks were found:
3.1.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
do the makedepends
need to be more specific?
@kylesferrazza https://github.com/PowerShell/PowerShell-Native/issues/33
@DDoSolitary Can you link to the issue you opened upstream?
@user981257923
I've already opened an issue in the upstream repo (#33), but unfortunately haven't got any response yet and the repo doesn't seem to be actively maintained.
A simple way to work this around would be removing the -Werror
flag in CMakeLists.txt of that project. However, it is not very ideal because the code will eventually get broken after glibc removes that header.
Log:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
| ^~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Error making: powershell
Any way to fix this which doesn't involve upstream?
Hello, How to fix the following issue?
[quentin@G1DFXF2 powershell]$ makepkg -sirc
==> Making package: powershell 6.2.3-1 (Fri Nov 29 12:10:50 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (7) dotnet-host-2.2.6+108-1 dotnet-runtime-2.2.6+108-1 jsoncpp-1.9.1-1 libuv-1.33.1-1 rhash-1.3.8-1
cmake-3.16.0-1 dotnet-sdk-2.2.6+108-1
Total Installed Size: 227.65 MiB
:: Proceed with installation? [Y/n]
(7/7) checking keys in keyring [########################################] 100%
(7/7) checking package integrity [########################################] 100%
(7/7) loading package files [########################################] 100%
(7/7) checking for file conflicts [########################################] 100%
(7/7) checking available disk space [########################################] 100%
:: Processing package changes...
(1/7) installing jsoncpp [########################################] 100%
Optional dependencies for jsoncpp
jsoncpp-doc: documentation
(2/7) installing libuv [########################################] 100%
(3/7) installing rhash [########################################] 100%
(4/7) installing cmake [########################################] 100%
Optional dependencies for cmake
qt5-base: cmake-gui [installed]
(5/7) installing dotnet-host [########################################] 100%
(6/7) installing dotnet-runtime [########################################] 100%
Optional dependencies for dotnet-runtime
lttng-ust: CoreCLR tracing
(7/7) installing dotnet-sdk [########################################] 100%
:: Running post-transaction hooks...
(1/3) Updating icon theme caches...
(2/3) Updating the desktop file MIME type cache...
(3/3) Updating the MIME type database...
==> Retrieving sources...
-> Updating powershell git repo...
Fetching origin
-> Updating powershell-native git repo...
Fetching origin
-> Found Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets
==> Validating source files with md5sums...
powershell ... Skipped
powershell-native ... Skipped
Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets ... Passed
==> Extracting sources...
-> Creating working copy of powershell git repo...
Reset branch 'makepkg'
-> Creating working copy of powershell-native git repo...
Reset branch 'makepkg'
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Restore completed in 41.56 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj.
Restore completed in 41.58 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj.
Restore completed in 41.53 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj.
Restore completed in 49.39 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj.
Restore completed in 0.93 ms for /home/quentin/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj.
Restore completed in 0.96 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj.
Restore completed in 0.96 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj.
Restore completed in 2.02 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj.
Restore completed in 8.47 ms for /home/quentin/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj.
Restore completed in 64.72 ms for /home/quentin/powershell/src/powershell/src/ResGen/ResGen.csproj.
Restore completed in 55.13 ms for /home/quentin/powershell/src/powershell/src/TypeCatalogGen/TypeCatalogGen.csproj.
~/powershell/src/powershell/src/ResGen ~/powershell/src/powershell
ResGen for ../Microsoft.PowerShell.Security/gen/CmsCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/SignatureCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/CertificateCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/SecureStringCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/CertificateProviderStrings.cs
ResGen for ../Microsoft.PowerShell.Security/gen/UtilsStrings.cs
ResGen for ../Microsoft.PowerShell.Security/gen/ExecutionPolicyCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/SecurityMshSnapinResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Diagnostics/gen/GetEventResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ClearRecycleBinResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/WebServiceResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/HotFixResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TestPathResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ClipboardResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/CmdletizationResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TimeZoneResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ControlPanelResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ServiceResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ManagementMshSnapInResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ComputerInfoResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ProcessCommandHelpResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/WmiResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ProcessResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TransactionResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/EventlogResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TestConnectionResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ComputerResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/NavigationResources.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/CommandLineParameterParserStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/HostMshSnapinResources.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostUserInterfaceStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostUserInterfaceSecurityResources.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleControlStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ManagedEntranceStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ProgressNodeStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/TranscriptStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostRawUserInterfaceStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/WriteProgressResourceStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/FlashExtractStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/HostStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/SelectObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/AddMember.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/CsvCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/AddTypeStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/MeasureObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertMarkdownStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/Debugger.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/SendMailMessageStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/NewObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ImplicitRemotingStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/FormatAndOut_out_gridview.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/SortObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/GetMember.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/HttpCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/AliasCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UtilityCommonStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/TestJsonCmdletStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertFromStringResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/TraceCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ImmutableStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/GetUptimeStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/VariableCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UpdateListStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/EventingStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ImportLocalizedDataStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/OutPrinterDisplayStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/WebCmdletStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertFromStringData.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UtilityMshSnapinResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UpdateDataStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertHTMLStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/MatchStringStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/WriteErrorStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/GetRandomCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertStringResources.cs
ResGen for ../System.Management.Automation/gen/ProgressRecordStrings.cs
ResGen for ../System.Management.Automation/gen/RegistryProviderStrings.cs
ResGen for ../System.Management.Automation/gen/PipelineStrings.cs
ResGen for ../System.Management.Automation/gen/ParserStrings.cs
ResGen for ../System.Management.Automation/gen/VerbDescriptionStrings.cs
ResGen for ../System.Management.Automation/gen/TabCompletionStrings.cs
ResGen for ../System.Management.Automation/gen/CredUI.cs
ResGen for ../System.Management.Automation/gen/MshSnapInCmdletResources.cs
ResGen for ../System.Management.Automation/gen/SessionStateProviderBaseStrings.cs
ResGen for ../System.Management.Automation/gen/DebuggerStrings.cs
ResGen for ../System.Management.Automation/gen/WildcardPatternStrings.cs
ResGen for ../System.Management.Automation/gen/DiscoveryExceptions.cs
ResGen for ../System.Management.Automation/gen/PathUtilsStrings.cs
ResGen for ../System.Management.Automation/gen/ConsoleInfoErrorStrings.cs
ResGen for ../System.Management.Automation/gen/CoreClrStubResources.cs
ResGen for ../System.Management.Automation/gen/ProviderBaseSecurity.cs
ResGen for ../System.Management.Automation/gen/Credential.cs
ResGen for ../System.Management.Automation/gen/CoreMshSnapinResources.cs
ResGen for ../System.Management.Automation/gen/FormatAndOutXmlLoadingStrings.cs
ResGen for ../System.Management.Automation/gen/SecuritySupportStrings.cs
ResGen for ../System.Management.Automation/gen/NativeCP.cs
ResGen for ../System.Management.Automation/gen/ParameterBinderStrings.cs
ResGen for ../System.Management.Automation/gen/CatalogStrings.cs
ResGen for ../System.Management.Automation/gen/Metadata.cs
ResGen for ../System.Management.Automation/gen/MiniShellErrors.cs
ResGen for ../System.Management.Automation/gen/ExtendedTypeSystem.cs
ResGen for ../System.Management.Automation/gen/HelpDisplayStrings.cs
ResGen for ../System.Management.Automation/gen/InternalHostStrings.cs
ResGen for ../System.Management.Automation/gen/RunspaceInit.cs
ResGen for ../System.Management.Automation/gen/Modules.cs
ResGen for ../System.Management.Automation/gen/EventingResources.cs
ResGen for ../System.Management.Automation/gen/AutomationExceptions.cs
ResGen for ../System.Management.Automation/gen/RunspaceStrings.cs
ResGen for ../System.Management.Automation/gen/MshSignature.cs
ResGen for ../System.Management.Automation/gen/CredentialAttributeStrings.cs
ResGen for ../System.Management.Automation/gen/HistoryStrings.cs
ResGen for ../System.Management.Automation/gen/CommandBaseStrings.cs
ResGen for ../System.Management.Automation/gen/SessionStateStrings.cs
ResGen for ../System.Management.Automation/gen/Authenticode.cs
ResGen for ../System.Management.Automation/gen/PSCommandStrings.cs
ResGen for ../System.Management.Automation/gen/CmdletizationCoreResources.cs
ResGen for ../System.Management.Automation/gen/HelpErrors.cs
ResGen for ../System.Management.Automation/gen/RunspacePoolStrings.cs
ResGen for ../System.Management.Automation/gen/TransactionStrings.cs
ResGen for ../System.Management.Automation/gen/RemotingErrorIdStrings.cs
ResGen for ../System.Management.Automation/gen/ErrorPackageRemoting.cs
ResGen for ../System.Management.Automation/gen/CimInstanceTypeAdapterResources.cs
ResGen for ../System.Management.Automation/gen/HostInterfaceExceptionsStrings.cs
ResGen for ../System.Management.Automation/gen/MshSnapinInfo.cs
ResGen for ../System.Management.Automation/gen/FormatAndOut_out_xxx.cs
ResGen for ../System.Management.Automation/gen/DescriptionsStrings.cs
ResGen for ../System.Management.Automation/gen/ErrorCategoryStrings.cs
ResGen for ../System.Management.Automation/gen/Serialization.cs
ResGen for ../System.Management.Automation/gen/PSListModifierStrings.cs
ResGen for ../System.Management.Automation/gen/ExperimentalFeatureStrings.cs
ResGen for ../System.Management.Automation/gen/Logging.cs
ResGen for ../System.Management.Automation/gen/AuthorizationManagerBase.cs
ResGen for ../System.Management.Automation/gen/ProxyCommandStrings.cs
ResGen for ../System.Management.Automation/gen/InternalCommandStrings.cs
ResGen for ../System.Management.Automation/gen/SuggestionStrings.cs
ResGen for ../System.Management.Automation/gen/EnumExpressionEvaluatorStrings.cs
ResGen for ../System.Management.Automation/gen/EtwLoggingStrings.cs
ResGen for ../System.Management.Automation/gen/FormatAndOut_format_xxx.cs
ResGen for ../System.Management.Automation/gen/MshHostRawUserInterfaceStrings.cs
ResGen for ../System.Management.Automation/gen/ErrorPackage.cs
ResGen for ../System.Management.Automation/gen/FileSystemProviderStrings.cs
ResGen for ../System.Management.Automation/gen/InternalHostUserInterfaceStrings.cs
ResGen for ../System.Management.Automation/gen/TypesXmlStrings.cs
ResGen for ../System.Management.Automation/gen/PowerShellStrings.cs
ResGen for ../System.Management.Automation/gen/FormatAndOut_MshParameter.cs
ResGen for ../System.Management.Automation/gen/PSDataBufferStrings.cs
ResGen for ../System.Management.Automation/gen/EventResource.cs
ResGen for ../System.Management.Automation/gen/GetErrorText.cs
ResGen for ../Microsoft.PowerShell.ScheduledJob/gen/ScheduledJobErrorStrings.cs
ResGen for ../Microsoft.PowerShell.CoreCLR.Eventing/gen/DotNetEventingStrings.cs
ResGen for ../Microsoft.WSMan.Management/gen/WsManResources.cs
ResGen for ../Microsoft.Management.Infrastructure.CimCmdlets/gen/Microsoft.Management.Infrastructure.CimCmdlets.Strings.cs
ResGen for ../Microsoft.PowerShell.LocalAccounts/gen/Microsoft.PowerShell.LocalAccounts.Strings.cs
~/powershell/src/powershell
~/powershell/src/powershell/src/TypeCatalogGen ~/powershell/src/powershell
~/powershell/src/powershell
~/powershell/src/powershell-native/src/libpsl-native ~/powershell/src/powershell
CMake Warning (dev) at CMakeLists.txt:2 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
-- Tests enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/quentin/powershell/src/powershell-native/src/libpsl-native
[ 1%] Building CXX object src/CMakeFiles/psl-native.dir/issymlink.cpp.o
[ 3%] Building CXX object src/CMakeFiles/psl-native.dir/isexecutable.cpp.o
[ 5%] Building CXX object src/CMakeFiles/psl-native.dir/getuserfrompid.cpp.o
[ 7%] Building CXX object src/CMakeFiles/psl-native.dir/getppid.cpp.o
[ 9%] Building CXX object src/CMakeFiles/psl-native.dir/issamefilesystemitem.cpp.o
[ 13%] Built target gtest
[ 15%] Building CXX object src/CMakeFiles/psl-native.dir/setdate.cpp.o
[ 16%] Building CXX object test/googletest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 18%] Building CXX object src/CMakeFiles/psl-native.dir/createhardlink.cpp.o
[ 20%] Building CXX object test/googletest/googlemock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
In file included from /home/quentin/powershell/src/powershell-native/src/libpsl-native/src/getppid.cpp:11:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
| ^~~~~~~
[ 22%] Building CXX object src/CMakeFiles/psl-native.dir/createsymlink.cpp.o
[ 24%] Building CXX object src/CMakeFiles/psl-native.dir/followsymlink.cpp.o
In file included from /home/quentin/powershell/src/powershell-native/src/libpsl-native/src/getuserfrompid.cpp:15:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
| ^~~~~~~
[ 26%] Building CXX object src/CMakeFiles/psl-native.dir/createprocess.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/psl-native.dir/build.make:141: src/CMakeFiles/psl-native.dir/getppid.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object src/CMakeFiles/psl-native.dir/nativesyslog.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/psl-native.dir/build.make:154: src/CMakeFiles/psl-native.dir/getuserfrompid.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:177: src/CMakeFiles/psl-native.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 30%] Linking CXX static library /home/quentin/powershell/src/powershell-native/src/powershell-unix/libgtest_main.a
[ 30%] Built target gtest_main
[ 32%] Linking CXX static library /home/quentin/powershell/src/powershell-native/src/powershell-unix/libgmock.a
[ 32%] Built target gmock
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> Removing installed dependencies...
checking dependencies...
Packages (7) cmake-3.16.0-1 dotnet-host-2.2.6+108-1 dotnet-runtime-2.2.6+108-1 dotnet-sdk-2.2.6+108-1
jsoncpp-1.9.1-1 libuv-1.33.1-1 rhash-1.3.8-1
Total Removed Size: 227.65 MiB
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/7) removing dotnet-sdk [########################################] 100%
(2/7) removing dotnet-runtime [########################################] 100%
(3/7) removing dotnet-host [########################################] 100%
(4/7) removing cmake [########################################] 100%
(5/7) removing rhash [########################################] 100%
(6/7) removing libuv [########################################] 100%
(7/7) removing jsoncpp [########################################] 100%
:: Running post-transaction hooks...
(1/3) Updating icon theme caches...
(2/3) Updating the desktop file MIME type cache...
(3/3) Updating the MIME type database...
I'm unable to build this package (6.2.3-1) - the build() step always fails with:
cp: cannot create regular file 'src/Microsoft.PowerShell.SDK/obj/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets': No such file or directory
Is anyone else experiencing the same problem?
@skypixel
I agree it would make sense to package OneGet with this package. I am currently working on adding it to the build. I would appreciate a patch if you have the time to work on it before I get to it.
Hello, I'm unable to run pwsh after building&installing this package. It says:
Error:
An assembly specified in the application dependencies manifest (pwsh.deps.json) was not found:
package: 'Markdig.Signed', version: '0.17.1'
path: 'lib/netcoreapp2.1/Markdig.Signed.dll'
For those wondering, Install-Module doesn't work because OneGet is not included in this package (see https://github.com/PowerShell/PowerShell/issues/6472#issuecomment-375997500 ). @kylesferrazza is there any reason why OneGet is not included? Wouldn't it make sense to make it available since it's the main means to install external modules?
@agowa338
That patch breaks the build for me:
$ pwsh Error: An assembly specified in the application dependencies manifest (pwsh.deps.json) was not found: package: 'runtime.linux-x64.Microsoft.NETCore.App', version: '2.1.12' path: 'runtimes/linux-x64/native/System.IO.Compression.Native.a'
The wrong folder gets copied, therefore some dependencies are fetched from the nuget cache after the package is installed. If you now try to run pwsh from any other user it will fail, as the nuget cache is no longer accessible (belongs to the build user). Same happens if you move the final package to a remote system, install and try to run it. (The global‑packages cache is located at ~/.nuget)
This can be fixed by:
diff --git a/PKGBUILD b/PKGBUILD
index 4991b8d..6daa85e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -80,18 +80,18 @@ package() {
cd "$pkgname/src/powershell-unix"
mkdir -p "$pkgdir/usr/lib/$pkgname"
- cp -a "bin/Linux/netcoreapp2.1/linux-x64" "$pkgdir/usr/lib/$pkgname"
- chmod 755 "$pkgdir/usr/lib/$pkgname/linux-x64/$binaryname"
+ cp -aR "bin/." "$pkgdir/usr/lib/$pkgname"
+ chmod 755 "$pkgdir/usr/lib/$pkgname/$binaryname"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
cp "../../LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
mkdir -p "$pkgdir/usr/bin"
- ln -s "/usr/lib/$pkgname/linux-x64/$binaryname" "$pkgdir/usr/bin/$binaryname"
+ ln -s "/usr/lib/$pkgname/$binaryname" "$pkgdir/usr/bin/$binaryname"
chmod 644 \
- "$pkgdir/usr/lib/powershell/linux-x64/libhostfxr.so" \
- "$pkgdir/usr/lib/powershell/linux-x64/libhostpolicy.so" \
- "$pkgdir/usr/lib/powershell/linux-x64/en-US/default.help.txt" \
- "$pkgdir/usr/lib/powershell/linux-x64/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1"
+ "$pkgdir/usr/lib/$pkgname/libhostfxr.so" \
+ "$pkgdir/usr/lib/$pkgname/libhostpolicy.so" \
+ "$pkgdir/usr/lib/$pkgname/en-US/default.help.txt" \
+ "$pkgdir/usr/lib/$pkgname/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1"
}
Following up on earlier comments (e.g. having to do with PSReadLine), here is some info comparing the -bin and vanilla packages (at least as of version 6.2.1-1):
The output of Get-Module -listavailable for the powershell-bin package (6.2.1-1) is (sorry for the truncation):
ModuleType Version Name PSEdition ExportedCommands ---------- ------- ---- --------- ---------------- Manifest 1.2.3.0 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expa… Manifest 6.1.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop… Manifest 6.1.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Con… Manifest 6.1.0.0 Microsoft.PowerShell.Security Core {Get-Credential, Get-Ex… Manifest 6.1.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alia… Script 1.3.2 PackageManagement Desk {Find-Package, Get-Pack… Script 2.1.3 PowerShellGet Desk {Find-Command, Find-DSC… Script 0.0 PSDesiredStateConfiguration Desk {AddDscResourceProperty… Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandl… Binary 1.1.2 ThreadJob Desk Start-ThreadJob
while for this package, I saw:
ModuleType Version Name PSEdition ExportedCommands ---------- ------- ---- --------- ---------------- Manifest 6.1.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop… Manifest 6.1.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Con… Manifest 6.1.0.0 Microsoft.PowerShell.Security Core {Get-Credential, Get-Ex… Manifest 6.1.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alia… Script 0.0 PSDesiredStateConfiguration Desk {ValidateNodeResourceSo…
Not sure if it's related, but the issue tracker for powershell, came across:
https://github.com/PowerShell/PowerShell/issues/9005
May be some of these bits can help the current situation.
For those having the locale problem make sure that the en_US.UTF-8 is uncommented in /etc/locale.gen. Then run as root locale-gen. The problem is that the locale must exist to be switched to, even if it isn't the locale you are usually using.
Sorry I missed what you were saying about PSReadLine not being in the build. Here is what I did as a workaround.
1) Download the archive from Github.
https://github.com/PowerShell/PowerShell/releases/download/v6.2.0/powershell-6.2.0-linux-x64.tar.gz
2) Extract PSReadLine from the Modules directory of the archive to the /usr/lib/powershell/linux-x64/Modules directory.
sudo tar -C /usr/lib/powershell/linux-x64 -xvf powershell-6.2.0-linux-x64.tar.gz ./Modules/PSReadLine
3) Now if you restart pwsh it should work fine or you can manually import the module and enable tab completion.
Import-Module PSReadLine
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Hope this helps until the build is fixed.
@bdurbin Not sure why PSReadline isn't part of the build process but I'm happy to look into it or accept a patch if you figure it out before I do.
Just curious, but why is PSReadline not in this package, yet it's in powershell-bin? I can try to find some time to investigate, but I thought I'd ask.
@DragonX256 There is only one commit for version 6.1.3 in Git log. There is probably something wrong with your package manager if it builds 6.1.3 twice. Please report to Yay instead of here.
Isn't this package shouldn't have been built like powershell-git? It should built only once. On my system with yay package manager it already built 6.1.3-1 version two times because of new commits in repo.
@luka-devnull Just upgraded and also noticed the missing PSReadLine. Really hurts using powershell without it...
@ajkerzner good catch, I will add it to the makedepends
FYI - this package depends on patch, but it's not a listed dependency.
The new package isn't building PSReadLine for me. Kind of a nice thing to have.
Anyone else having that issue?
@kylesferrazza Sorry, not familiar with Pester. I thought it was drop-in replacement.
@FranklinYu are you familiar with Pester?
I would gladly accept a patch to use the new unbundled Pester for testing.
v6.1.0 just got released :)
psl-pester
is deprecated in favor of Pester.
@nomad980 @anakha I will be back from vacation this Tuesday night and will look into updating to 6.0.3 and the error you bring up.
@kylesferrazza : I want to thank you for your work on making this available to us. Also wonder wondering when the 6.0.3 update would be happening or if you are waiting for 6.1.0 to come out of preview?
Build fails on 4.14.54-1-MANJARO #1 SMP PREEMPT Sun Jul 8 19:14:13 UTC 2018 x86_64 GNU/Linux
with:
aur-powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error : Project is targeting runtime 'arch-x64' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework.
powershell-bin package seems to install without any issues however.
Thank you for making this package.
I will update for 6.0.3 tomorrow night.
@Anaximander
Great!
removed pkg, downloaded the snapshot, verified dotnet-version.patch contained 2.1.300. Ran makepkg, install proceed. got to Build Target psl-native-test Started check and failed. Google -- looks like a locale issue.
Checked my locale, and it is not set correctly. Verified /etc/locale.gen -- set correctly. Verified /etc/locale.conf -- nothing. Create it, set to proper locale. restart.
Locale is now correct.
makepkg -- build target psl-native-test -- success.
Profit!
The dotnet version issues should now be fixed.
@Anaximander @allenhs @krprescott Let me know if the latest PKGBUILD fixes the build issues you were having.
@Anaximander @allenhs @krprescott
I fixed the dotnet version issue by adding the trailing zeroes in global.json (2.1.300). I encountered another problem in the build process and I'm waiting for a response from upstream. I will keep this page updated as I hear back.
Same situation as krprescott: Installed -- (dotnet-host [2.1.0-3]) (dotnet-runtime [2.1.0-3]) (dotnet-sdk [2.1.300-2])
A compatible SDK version for global.json version: [2.1.3] from [/tmp/trizen-user/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409 ==> ERROR: A failure occurred in build(). Aborting... :: Unable to build powershell - makepkg exited with code: 4
==========
Attempted to edit the dotnet-version.patch while trizen was installing, that results in validity check error.
==========
I cloned the package and attempted a manual install. Before initiating the makepkg, I edited dotnet-version.patch from 2.1.3 to 2.1.*; I then updated the file hashes in the pkgbuild. makepkg then generates this error:
The specified SDK version '2.1.*' could not be parsed A compatible SDK version for global.json version: [2.1.*] from [/home/chris/packages/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
I'm now past my knowledge to troubleshoot this.
I get the same error as krprescott.
A compatible SDK version for global.json version: [2.1.3] from [/tmp/trizen-user/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
I get errors when building this package. Here is the dotnet packages I have installed: dotnet-host 2.1.0-1 dotnet-runtime 2.1.0-1 dotnet-sdk 2.1.300-1 Here is the build information: Starting build()... A compatible SDK version for global.json version: [2.1.3] from [/home/kprescott/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409 ==> ERROR: A failure occurred in build(). Aborting...
@octav, let me know if it runs for you with env TERM=xterm pwsh
Hi, I am getting the following download errors from Nuget
/opt/dotnet/sdk/2.1.105/NuGet.targets(104,5): error : Failed to download package 'runtime.linux-x64.Microsoft.NETCore.App.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/runtime.linux-x64.microsoft.netcore.app/2.0.0/runtime.linux-x64.microsoft.netcore.app.2.0.0.nupkg'.
/opt/dotnet/sdk/2.1.105/NuGet.targets(104,5): error : Failed to download package 'runtime.linux-x64.Microsoft.NETCore.App.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/runtime.linux-x64.microsoft.netcore.app/2.0.0/runtime.linux-x64.microsoft.netcore.app.2.0.0.nupkg'.
Hi, my build finishes with no errors but pwsh crashes. Please help. I have no idea where to dig in.
[octav@octav-nb ~]$ sudo pwsh PowerShell v6.0.2 Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs Type 'help' to get help.
FailFast: The terminfo database is invalid.
at System.Environment.FailFast(System.String, System.Exception) at System.Environment.FailFast(System.String, System.Exception) at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String, System.String[], Int32) at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[]) Aborted [octav@octav-nb ~]$
Hi,
There is no install-module cmdlet present. I did post on official github and can you take a look to the answer : https://github.com/PowerShell/PowerShell/issues/6472
So you can modify your build to let us have access to install-module
I added the TERM fix to the PKGBUILD until the problem is fixed upstream.
Add TERM=xterm $srcdir/build.sh
if build fails, looks like it's a ncurses 6.1+ in the dotnet corefx
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. System.InvalidOperationException: The terminfo database is invalid. [...] at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\82\s\src\MSBuild\XMake.cs:line 755 at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A_work\82\s\src\MSBuild\XMake.cs:line 216
There is a warning that suggests a language problem:
/usr/bin/sh : warning : setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [/tmp/yaourt-tmp-myuser/aur-powershell/src/powershell/src/powershell-unix/powershell-unix.csproj]
Which resulted in the following build errors:
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.InvalidOperationException: The terminfo database is invalid.
at System.TermInfo.Database..ctor(String term, Byte[] data)
at System.TermInfo.Database.ReadDatabase(String term, String directoryPath)
at System.TermInfo.Database.ReadDatabase(String term)
at System.TermInfo.Database.ReadActiveDatabase()
at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.ConsolePal.EnsureInitializedCore()
at System.ConsolePal.ControlCHandlerRegistrar.Register()
at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 526
Unhandled Exception: System.InvalidOperationException: The terminfo database is invalid.
at System.TermInfo.Database..ctor(String term, Byte[] data)
at System.TermInfo.Database.ReadDatabase(String term, String directoryPath)
at System.TermInfo.Database.ReadDatabase(String term)
at System.TermInfo.Database.ReadActiveDatabase()
at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.ConsolePal.EnsureInitializedCore()
at System.ConsolePal.ControlCHandlerRegistrar.Register()
at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 748
at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 215
I resolved it by adding "en_US.UTF-8 UTF-8" to /etc/locale.gen and running locale-gen. Hope this helps others.
@krprescott That's a strange error - can you pastebin a whole build?
@mgd It built successfully by setting TERM to xterm? What is your term value usually? I use "xterm-256color"
I had a problem building this package:
==> Beginne build()...
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.InvalidOperationException: The terminfo database is invalid.
at System.TermInfo.Database..ctor(String term, Byte[] data)
at System.TermInfo.Database.ReadDatabase(String term, String directoryPath)
at System.TermInfo.Database.ReadDatabase(String term)
at System.TermInfo.Database.ReadActiveDatabase()
at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.ConsolePal.EnsureInitializedCore()
at System.ConsolePal.ControlCHandlerRegistrar.Register()
at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 526
Unhandled Exception: System.InvalidOperationException: The terminfo database is invalid.
at System.TermInfo.Database..ctor(String term, Byte[] data)
at System.TermInfo.Database.ReadDatabase(String term, String directoryPath)
at System.TermInfo.Database.ReadDatabase(String term)
at System.TermInfo.Database.ReadActiveDatabase()
at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.ConsolePal.EnsureInitializedCore()
at System.ConsolePal.ControlCHandlerRegistrar.Register()
at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 748
at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 215
==> FEHLER: Ein Fehler geschah in build().
Breche ab...
Searching for this error I found https://bugs.archlinux.org/task/57260 There two workarounds are presented: 1) Downgrading ncurses-6.1-3 to ncurses-6.0-4 2) Setting TERM=xterm (e.g. invoke 'TERM=xterm makepkg')
I could not try 1) because I did not find the ncurses package on the archlinux website. However 2) worked for me.
Kind regards, Michael
@ghotrix
I don't think so - powershell-bin comes with Install-Module though.
@Daniel_GT
Is it fixed in 6.0.1?
Wondering whether it should contain Install-Module cmdlet or not? In my case it doesn't which is very frustrating.
Hi @kylesferrazza I'd be grateful if you could take a look at https://pastebin.com/mM6W3Dtx, I'm getting a build error and would appreciate your help...
/opt/dotnet/sdk/2.1.4/Sdks/Microsoft.NET.Sdk/build/Microsoft.NET.GenerateAssemblyInfo.targets(146,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/data/source/powershell/src/powershell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj]
...Is this something you've come across, am I missing something obvious? Thanks.
Fixed those permissions with the PKGBUILD for 6.0
This is not so nice
check package with namcap:
powershell W: File (usr/lib/powershell/linux-x64/libhostpolicy.so) has the world writable bit set. powershell W: File (usr/lib/powershell/linux-x64/libhostfxr.so) has the world writable bit set. powershell W: File (usr/lib/powershell/linux-x64/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1) has the world writable bit set.
Pinned Comments
plop28 commented on 2021-04-07 11:17 (UTC) (edited on 2021-04-07 11:17 (UTC) by plop28)
Maybe a fix for certificate expired issue :
downgrade ca-certificates-mozilla to 3.62-1
download the package from https://archive.archlinux.org
sudo pacman -U ca-certificates-mozilla-3.62-1-x86_64.pkg.tar.zst
remove you .nuget folder
then try to rebuild powershell
Works for me, I also installed the latest ca-certificates-mozilla back.
kylesferrazza commented on 2017-10-26 18:01 (UTC)