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: 0.030549
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2024-03-10 11:11 (UTC)

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 .. 19 Next › Last »

user981257923 commented on 2019-11-29 12:45 (UTC) (edited on 2019-11-29 12:48 (UTC) by user981257923)

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?

Case_Of commented on 2019-11-29 11:17 (UTC)

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...

marcoh00 commented on 2019-11-05 20:18 (UTC)

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?

kylesferrazza commented on 2019-10-28 17:12 (UTC)

@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.

DDoSolitary commented on 2019-10-27 17:21 (UTC)

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'

skypixel commented on 2019-10-13 09:58 (UTC)

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?

kylesferrazza commented on 2019-09-12 21:34 (UTC) (edited on 2019-09-12 21:44 (UTC) by kylesferrazza)

@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'

agowa commented on 2019-07-28 23:09 (UTC)

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"
 }

sogaiu commented on 2019-06-15 04:11 (UTC) (edited on 2019-06-15 04:12 (UTC) by sogaiu)

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.