Running pacsearch to search for a package returns lots of strange warnings in addition to the relevant output.
$ pacsearch wx perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. mingw32/mingw-w64-i686-wxWidgets 3.0.1-2 (mingw-w64-i686) A C++ library that lets developers create applications for Windows, Linux Use of uninitialized value $v[0] in string at /usr/bin/pacsearch line 89. Use of uninitialized value $v[0] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[1] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[2] in concatenation (.) or string at /usr/bin/pacsearch line 94. / mingw64/mingw-w64-x86_64-wxWidgets 3.0.1-2 (mingw-w64-x86_64) Use of uninitialized value $v[0] in string at /usr/bin/pacsearch line 89. Use of uninitialized value $v[0] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[1] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[2] in concatenation (.) or string at /usr/bin/pacsearch line 94. / and UNIX (mingw-w64)
The perl warnings at the beginning go away if I manually set LC_ALL=C by running
$ export LC_ALL=C
However, pacsearch still produces the other warnings.
$ pacsearch wx Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. Use of uninitialized value in concatenation (.) or string at /usr/bin/pacsearch line 120. mingw32/mingw-w64-i686-wxWidgets 3.0.1-2 (mingw-w64-i686) A C++ library that lets developers create applications for Windows, Linux Use of uninitialized value $v[0] in string at /usr/bin/pacsearch line 89. Use of uninitialized value $v[0] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[1] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[2] in concatenation (.) or string at /usr/bin/pacsearch line 94. / mingw64/mingw-w64-x86_64-wxWidgets 3.0.1-2 (mingw-w64-x86_64) Use of uninitialized value $v[0] in string at /usr/bin/pacsearch line 89. Use of uninitialized value $v[0] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[1] in concatenation (.) or string at /usr/bin/pacsearch line 94. Use of uninitialized value $v[2] in concatenation (.) or string at /usr/bin/pacsearch line 94. / and UNIX (mingw-w64)
This exact same issue happens on fresh installations of MSYS2 on both my work PC and my home PC.
I second that, getting the same output. I needed to re-install msys2 due to a silly mistake on my part. The old version was not impacted by this problem.
The latest commit modifying
pacsearch.in
broke it. The offending diff is can be seen here.I will try to pin-point the problem but I never worked with Perl before.
Thanks, it would be great if you can research this. We use unstable pacman version from upstream. Will switch to stable after next release.
Fixed in latest pacman.