Skip to content

PowerShell build fails on GNU/Linux systems without the en_US locale #20941

Closed

Description

@xgqt

Prerequisites

Steps to reproduce

  1. check /etc/locale.gen it is does not contain any en_US locale, remove them,
  2. regen locales with locale-gen,
  3. switch to a non-en_US locale, for example on Gentoo use eselect locale set ...

I would like to know if we can use the C locale for build and the "why" if it is not possible.
If it is impossible to use other locale,
then from-source distributions like Gentoo, Guix, Nix, LFS, etc.
have to update their build scripts.

Expected behavior

Build passes with success, maybe with some features unavailable?

Actual behavior

Build fails.

Error details

> dotnet-8.0 build --configuration Release --no-restore --no-self-contained --output /var/tmp/portage/app-shells/pwsh-7.4.0/work/pwsh-7.4.0_net8.0_Release --runtime linux-x64 -maxCpuCount:6 -p:StripSymbols=true -p:NativeDebugSymbols=false -p:WarningLevel=1 src/powershell-unix/powershell-unix.csproj


MSBuild version 17.8.3+195e7f5a3 for .NET
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  /bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  PSVersionInfoGenerator -> /var/tmp/portage/app-shells/pwsh-7.4.0/work/pwsh-7.4.0_net8.0_Release/SMA.Generator.dll
/usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/var/tmp/portage/app-shells/pwsh-7.4.0/work/pwsh-7.4.0/src/System.Management.Automation/System.Management.Automation.csproj]

Build FAILED.

/usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/var/tmp/portage/app-shells/pwsh-7.4.0/work/pwsh-7.4.0/src/System.Management.Automation/System.Management.Automation.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.59

Environment data

> Paste verbatim output from $PSVersionTable below.

None.

> locale


LANG=pl_PL.utf8
LC_CTYPE="pl_PL.utf8"
LC_NUMERIC="pl_PL.utf8"
LC_TIME="pl_PL.utf8"
LC_COLLATE=POSIX
LC_MONETARY="pl_PL.utf8"
LC_MESSAGES="pl_PL.utf8"
LC_PAPER="pl_PL.utf8"
LC_NAME="pl_PL.utf8"
LC_ADDRESS="pl_PL.utf8"
LC_TELEPHONE="pl_PL.utf8"
LC_MEASUREMENT="pl_PL.utf8"
LC_IDENTIFICATION="pl_PL.utf8"
LC_ALL=

Visuals

none.

Activity

  1. added
    Needs-Triage
    on Dec 16, 2023
  2. StevenBucher98 commented on Dec 18, 2023

    @StevenBucher98
    Collaborator

    Thanks for the issue Maciej Barć (@xgqt)! Can you please provide better actionable reproducing steps to include information where you got the build, and specific commands you are running to get the build to fail.

  3. added
    Needs-Repro
    and removed
    Needs-Triage
    on Dec 18, 2023
  4. xgqt commented on Dec 18, 2023

    @xgqt
    Author

    Steven Bucher (@StevenBucher98)

    First btw: we are also seeing a similar issue while building dotnet-sdk, see: https://bugs.gentoo.org/920202

    The build I posted is while running under Portage, the Gentoo Linux from-source build system.
    BUT I my case this is reproducible even on the current repo HEAD.

    1. First you have to ensure that your system does NOT have en_US locale available, you can have any utf-8 locale, in my case Polish, but it will not matter.
    echo "pl_PL.UTF-8 UTF-8" > /etc/locale.gen
    locale-gen
    source /etc/profile
    1. Reopen your login shell, eg bash -l

    2. Clone HEAD

    git clone https://github.com/PowerShell/PowerShell
    cd PowerShell
    1. Run build
    dotnet build

    Throws:

    Wersja programu MSBuild 17.8.3+195e7f5a3 dla .NET
      Determining projects to restore...
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.directoryservices.protocols/index.json'.
      An error occurred while sending the request.
        Unable to read data from the transport connection: Connection reset by peer.
        Connection reset by peer
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj (in 10,29 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj (in 32,12 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj (in 32,12 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj (in 32,12 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj (in 32,12 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.Management.Infrastructure.CimCmdlets/Microsoft.Management.Infrastructure.CimCmdlets.csproj (in 32,12 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.WSMan.Runtime/Microsoft.WSMan.Runtime.csproj (in 2 ms).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.WSMan.Management/Microsoft.WSMan.Management.csproj (in 7 ms).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/System.Management.Automation/System.Management.Automation.csproj (in 63 ms).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj (in 6,39 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj (in 7,42 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/System.Management.Automation/SourceGenerators/PSVersionInfoGenerator/PSVersionInfoGenerator.csproj (in 7,55 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/powershell-win-core/powershell-win-core.csproj (in 1 min).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/powershell-unix/powershell-unix.csproj (in 50,41 sec).
      Restored /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/test/xUnit/xUnit.tests.csproj (in 1,04 min).
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
      /bin/sh: linia 1: uwaga: setlocale: LC_ALL: nie można zmienić lokalizacji (en_US.UTF-8)
    /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: Zadaniu „GetAssemblyVersion” nie nadano wartości dla wymaganego parametru „NuGetVersion”. [/tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj]
    /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: Zadaniu „GetAssemblyVersion” nie nadano wartości dla wymaganego parametru „NuGetVersion”. [/tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.WSMan.Runtime/Microsoft.WSMan.Runtime.csproj]
      PSVersionInfoGenerator -> /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/System.Management.Automation/SourceGenerators/PSVersionInfoGenerator/bin/Debug/netstandard2.0/SMA.Generator.dll
    /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: Zadaniu „GetAssemblyVersion” nie nadano wartości dla wymaganego parametru „NuGetVersion”. [/tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/System.Management.Automation/System.Management.Automation.csproj]
    
    Kompilacja NIE POWIODŁA SIĘ.
    
    /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: Zadaniu „GetAssemblyVersion” nie nadano wartości dla wymaganego parametru „NuGetVersion”. [/tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj]
    /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: Zadaniu „GetAssemblyVersion” nie nadano wartości dla wymaganego parametru „NuGetVersion”. [/tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/Microsoft.WSMan.Runtime/Microsoft.WSMan.Runtime.csproj]
    /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error MSB4044: Zadaniu „GetAssemblyVersion” nie nadano wartości dla wymaganego parametru „NuGetVersion”. [/tmp/tmp.UIwA6kqR.tmpsh/PowerShell/src/System.Management.Automation/System.Management.Automation.csproj]
        Ostrzeżenia: 0
        Liczba błędów: 3
    
    Czas, który upłynął: 00:01:10.59
    

    More info:

    dotnet --info

    .NET SDK:
     Version:           8.0.100
     Commit:            57efcf1350
     Workload version:  8.0.100-manifests.2d90560f
    
    Środowisko uruchomieniowe:
     OS Name:     gentoo
     OS Version:  2.14
     OS Platform: Linux
     RID:         gentoo.2.14-x64
     Base Path:   /usr/lib64/dotnet-sdk-8.0/sdk/8.0.100/
    
    Zainstalowane obciążenia platformy .NET:
     Workload version: 8.0.100-manifests.2d90560f
    Brak zainstalowanych obciążeń do wyświetlenia.
    
    Host:
      Version:      8.0.0
      Architecture: x64
      Commit:       5535e31a71
    
    .NET SDKs installed:
      8.0.100 [/usr/lib64/dotnet-sdk-8.0/sdk]
    
    .NET runtimes installed:
      Microsoft.AspNetCore.App 8.0.0 [/usr/lib64/dotnet-sdk-8.0/shared/Microsoft.AspNetCore.App]
      Microsoft.NETCore.App 8.0.0 [/usr/lib64/dotnet-sdk-8.0/shared/Microsoft.NETCore.App]
    
    Other architectures found:
      None
    
    Environment variables:
      DOTNET_ROOT       [/usr/lib64/dotnet-sdk-8.0]
    
    global.json file:
      /tmp/tmp.UIwA6kqR.tmpsh/PowerShell/global.json
    
    Learn more:
      https://aka.ms/dotnet/info
    
    Download .NET:
      https://aka.ms/dotnet/download
    

    env

    SHELL=/bin/zsh
    SESSION_MANAGER=local/magentalane-0-local-workstation:@/tmp/.ICE-unix/5236,unix/magentalane-0-local-workstation:/tmp/.ICE-unix/5236
    WINDOWID=2
    LESSHISTFILE=-
    JUPYTER_CONFIG_DIR=/home/xy/.config/python/jupyter
    COLORTERM=truecolor
    CHEZ_HISTORY=/home/xy/.cache/chez/history
    XDG_CONFIG_DIRS=/etc/xdg
    LESS=-R -M --shift 5
    JDK_HOME=/home/xy/.gentoo/java-config-2/current-user-vm
    GUILE_HISTORY=/home/xy/.cache/guile/history
    CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild
    ANT_RESPECT_JAVA_HOME=y
    POWERSHELL_UPDATECHECK=0
    HISTSIZE=50000
    ICEAUTHORITY=/home/xy/.cache/X11/ICEauthority
    XDG_LOG_HOME=/home/xy/.local/var/log
    LANGUAGE=pl
    TEXMFVAR=/home/xy/.cache/texlive/texmf-var
    TEXMFHOME=/home/xy/.local/share/texlive/texmf
    STKLOS_CONFDIR=/home/xy/.local/share/stklos
    JAVA_HOME=/home/xy/.gentoo/java-config-2/current-user-vm
    POWERSHELL_TELEMETRY_OPTOUT=1
    DOTNET_ROOT=/usr/lib64/dotnet-sdk-8.0
    SSH_AUTH_SOCK=/tmp/ssh-XXXXXXFsKPFn/agent.4766
    DOTNET_CLI_TELEMETRY_OPTOUT=1
    SOLARGRAPH_CACHE=/home/xy/.cache/ruby/solargraph
    XDG_DATA_HOME=/home/xy/.local/share
    PINENTRY_USER_DATA=USE_CURSES=1
    SHELL_SESSION_ID=30ca98e78fb24d0ba59dcfa293479329
    XDG_CONFIG_HOME=/home/xy/.config
    DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
    ANT_HOME=/usr/share/ant
    SSH_AGENT_PID=4769
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/xy/.gtkrc:/home/xy/.config/gtkrc
    XCURSOR_SIZE=36
    GPG_TTY=/dev/pts/12
    CONAN_USER_HOME=/home/xy/.local/share/conan
    ZCACHEDIR=/home/xy/.cache/zsh
    EDITOR=vi
    XDG_SEAT=seat0
    PWD=/tmp/tmp.UIwA6kqR.tmpsh/PowerShell
    HEX_HOME=/home/xy/.local/share/elixir/hex
    CONFIG_PROTECT=/usr/share/maven-bin-3.9/conf /usr/share/gnupg/qualified.txt /usr/share/config /usr/lib64/libreoffice/program/sofficerc
    LOGNAME=xy
    XDG_SESSION_TYPE=wayland
    CCACHE_DIR=/home/xy/.cache/ccache
    MANPATH=/home/xy/.gentoo/java-config-2/current-user-vm/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.41/man:/etc/java-config-2/current-system-vm/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/17/share/man:/usr/lib/llvm/16/share/man:/usr/share/erlang/man:/home/xy/.local/share/man/mydot
    XAUTHORITY=/run/user/1000/xauth_zGvhRT
    IPYTHONDIR=/home/xy/.local/share/python/ipython
    MOTD_SHOWN=pam
    GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/xy/.gtkrc-2.0:/home/xy/.config/gtkrc-2.0
    HOME=/home/xy
    XSERVERRC=/home/xy/.config/X11/xserverrc
    SSH_ASKPASS=/usr/bin/ksshaskpass
    LANG=pl_PL.utf8
    HISTFILE=/home/xy/.cache/zsh/history
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=0;36:mi=0;36:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:
    XDG_CURRENT_DESKTOP=KDE
    CARGO_HOME=/home/xy/.local/share/rust/cargo
    KONSOLE_DBUS_SERVICE=:1.711
    WAYLAND_DISPLAY=wayland-0
    ASPELL_CONF=per-conf per-conf /home/xy/.config/aspell/aspell.conf ; personal  /home/xy/.config/aspell/de.pws /home/xy/.config/aspell/en.pws /home/xy/.config/aspell/pl.pws ; repl  /home/xy/.config/aspell/de.prepl /home/xy/.config/aspell/en.prepl /home/xy/.config/aspell/pl.prepl
    KONSOLE_DBUS_SESSION=/Sessions/1
    PROFILEHOME=
    ERL_AFLAGS=-kernel shell_history enabled
    KONSOLE_VERSION=230803
    PIP_CACHE_DIR=/home/xy/.cache/python/pip
    GEMRC=/home/xy/.config/ruby/gemrc
    GEM_SPEC_CACHE=/home/xy/.cache/ruby/gem
    KDE_SESSION_UID=1000
    XDG_CACHE_HOME=/home/xy/.cache
    INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.41/info:/usr/share/autoconf-2.71/info:/usr/share/automake-1.16.5/info:/usr/share/info:/usr/share/info/emacs-30-vcs
    MOZ_GMP_PATH=/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed
    DICPATH=/home/xy/.local/share/dictionaries
    MEDNAFEN_HOME=/home/xy/.config/mednafen
    JAVAC=/home/xy/.gentoo/java-config-2/current-user-vm/bin/javac
    GRADLE_USER_HOME=/home/xy/.cache/java/gradle
    GDBHISTFILE=/home/xy/.cache/gdb/history
    GEM_HOME=/home/xy/.local/share/ruby/gem
    XDG_SESSION_CLASS=user
    VBOX_SDK_PATH=/usr/lib64/virtualbox/sdk
    TERMINFO=/home/xy/.local/share/terminfo
    TERM=xterm-256color
    MAXIMA_USERDIR=/home/xy/.config/maxima
    VBOX_INSTALL_PATH=/usr/lib64/virtualbox
    ZDOTDIR=/home/xy/.config/zsh
    LESSOPEN=|lesspipe %s
    USER=xy
    SSH_ASKPASS_REQUIRE=prefer
    COLORFGBG=15;0
    PLASMA_USE_QT_SCALING=1
    KDE_SESSION_VERSION=5
    NEED_UID0=odus
    NPM_CONFIG_USERCONFIG=/home/xy/.config/npm/npmrc
    XINITRC=/home/xy/.config/X11/xinitrc
    MANPAGER=manpager
    VISUAL=/usr/bin/vi
    QT_WAYLAND_FORCE_DPI=96
    KDEHOME=/home/xy/.config/kde
    NPM_CONFIG_GLOBALCONFIG=/etc/npm/npmrc
    DISPLAY=:0
    CONAN_COLOR_DARK=1
    SHLVL=4
    INPUTRC=/home/xy/.config/readline/inputrc
    PAGER=/usr/bin/less
    LEX=flex
    ELDEV_LOCAL=/usr/share/emacs/site-lisp/eldev
    JULIA_DEPOT_PATH=/home/xy/.local/share/julia
    XDG_VTNR=1
    OCTAVE_HISTFILE=/home/xy/.cache/octave/history
    SBCL_HOME=/usr/lib64/sbcl
    RACKET_COMPLETION_CLIENT=zsh
    XDG_SESSION_ID=1
    DVDCSS_CACHE=/home/xy/.cache/dvdcss
    TERMINFO_DIRS=/home/xy/.local/share/terminfo:/usr/share/terminfo:/home/xy/.local/share/terminfo:/usr/share/terminfo:/home/xy/.local/share/terminfo:/usr/share/terminfo:
    XDG_STATE_HOME=/home/xy/.local/var/lib
    XDG_RUNTIME_DIR=/run/user/1000
    GCC_SPECS=
    GSETTINGS_BACKEND=dconf
    USER_EMACS_DIRECTORY=/home/xy/.config/emacs
    MIX_HOME=/home/xy/.local/share/elixir/mix
    PYLINTHOME=/home/xy/.cache/python/pylint
    RLWRAP_HOME=/home/xy/.cache/rlwrap
    QT_AUTO_SCREEN_SCALE_FACTOR=0
    NODE_REPL_HISTORY=/home/xy/.cache/npm/node/history
    LC_COLLATE=POSIX
    XCURSOR_THEME=Breeze_Snow
    XDG_DATA_DIRS=/home/xy/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
    KDE_FULL_SESSION=true
    HUSHLOGIN=FALSE
    SQLITE_HISTORY=/home/xy/.cache/sqlite/history
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/16/bin:/usr/libexec:/home/xy/.local/share/npm/bin:/home/xy/.local/bin:/home/xy/.local/share/bin:/home/xy/.local/share/gerbil/bin:/home/xy/.local/share/rust/cargo/bin:/usr/lib64/dotnet-sdk-8.0:/home/xy/.dotnet:/home/xy/.dotnet/tools:/home/xy/.local/share/racket/8.11/bin:/home/xy/.local/share/racket/8.11.1/bin
    VBOX_APP_HOME=/usr/lib64/virtualbox
    TEXMFCONFIG=/home/xy/.config/texlive/texmf-config
    GTK_USE_PORTAL=1
    NIMBLE_DIR=/home/xy/.local/share/nim/nimble
    DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-h2HVoeNsAK,guid=52a74c558239674fdf3a0f10657e2a84
    OMNISHARPHOME=/home/xy/.local/share/dotnet/omnisharp
    KDE_APPLICATIONS_AS_SCOPE=1
    MAIL=/var/mail/xy
    GERBIL_PATH=/home/xy/.local/share/gerbil
    _JAVA_OPTIONS=
                -Dawt.useSystemAAFontSettings=on
                -Dswing.aatext=true
                -Djava.util.prefs.userRoot=/home/xy/.config/java
    UID=1000
    SBCL_SOURCE_ROOT=/usr/lib64/sbcl/src
    OLDPWD=/tmp/tmp.UIwA6kqR.tmpsh
    GOPATH=/home/xy/.local/share/go
    KONSOLE_DBUS_WINDOW=/Windows/1
    PACKAGE_MANAGER=portage
    _=/usr/bin/env
    PS1=(SH)> 
    PS2=... 
    
  5. rkeithhill commented on Dec 20, 2023

    @rkeithhill
    Collaborator

    Maciej Barć (@xgqt) Have you tried following these build instructions? https://github.com/PowerShell/PowerShell/blob/master/docs/building/internals.md

    Ideally, you'd follow these build instructions but you'd need to install PowerShell first to run the PowerShell-based build scripts: https://github.com/PowerShell/PowerShell/blob/master/docs/building/linux.md

  6. xgqt commented on Dec 20, 2023

    @xgqt
    Author

    Maciej Barć (@xgqt) Have you tried following these build instructions? https://github.com/PowerShell/PowerShell/blob/master/docs/building/internals.md

    Ideally, you'd follow these build instructions but you'd need to install PowerShell first to run the PowerShell-based build scripts: https://github.com/PowerShell/PowerShell/blob/master/docs/building/linux.md

    Keith Hill (@rkeithhill)

    For this issue it is not a matter of throwing all that is possible to workaround the issue but rather a matter of explaining why it behaves this way and providing both the developer and user with required info.
    The functions that force (and tamper with current operating system) are not okay, especially when the functions are undocumented.

    For reference:

    I have searched in the docs, scripts and repo why this exists, but have no results.

    Seeing that neither this 12dbdd9 has any answers, Im asking people who approved that PR if they know why this might be happening --- ping Rob Holt (@rjmholt) Adam Driscoll (@adamdriscoll) :)

  7. rkeithhill commented on Dec 20, 2023

    @rkeithhill
    Collaborator

    The associated PR says the reason for setting the locale is: Fixes daily CI issues on Linux where help tests fail due to bad locale settings.

  8. xgqt commented on Dec 20, 2023

    @xgqt
    Author
  9. xgqt commented on Dec 20, 2023

    @xgqt
    Author

    Supposedly this was a bug in msbuild that was fixed by dotnet/msbuild#9449

  10. microsoft-github-policy-service commented on Dec 20, 2023

    @microsoft-github-policy-service
    Contributor

    📣 Hey Maciej Barć (@xgqt), how did we do? We would love to hear your feedback with the link below! 🗣️

    🔗 https://aka.ms/PSRepoFeedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Repro

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions