Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occurs warning that "warning: could not get file information for xxxx" during an update the system by pacman -Syu --noconfirm #10

Closed
komainu8 opened this issue Jul 8, 2020 · 1 comment

Comments

@komainu8
Copy link

komainu8 commented Jul 8, 2020

Hello,

I found the following warnings when I update the system by pacman -Syu --noconfirm

warning: could not get file information for clang32/
warning: could not get file information for clang32/bin/
warning: could not get file information for clang32/etc/
warning: could not get file information for clang32/etc/config.site
warning: could not get file information for clang32/include/
warning: could not get file information for clang32/lib/
warning: could not get file information for clang32/share/
warning: could not get file information for clang64/
warning: could not get file information for clang64/bin/
warning: could not get file information for clang64/etc/
warning: could not get file information for clang64/etc/config.site
warning: could not get file information for clang64/include/
warning: could not get file information for clang64/lib/
warning: could not get file information for clang64/share/
warning: could not get file information for opt/

The above warnings occur when the filesystem package is updating.
The pacman collects information of file and directory by lstat function when the filesystem package update.

However, the above directories(/clang32, /clang64, and /opt) don't exist in the state just after installing MSYS2.
So, the pacman can't collect information of them.

I should create these directories. Because the filesystem package has been installed from the beginning.

I think that these warnings are resolved below the patch. (Sorry, I can't confirm the patch operation.)

diff --git a/make-msys2-installer b/make-msys2-installer
old mode 100644
new mode 100755
index 4e7e9ae..ae9ee20
--- a/make-msys2-installer
+++ b/make-msys2-installer
@@ -60,7 +60,7 @@ create_archives() {
   [ -d "${_data}" ] && rm -rf "${_data}"
   mkdir -p "${_data}"
   local _dirs=
-  for curr_dir in /dev /etc /var /tmp /usr /mingw32 /mingw64 /msys2_shell.cmd /msys2.exe /mingw32.exe /mingw64.exe /msys2.ini /mingw32.ini /mingw64.ini /msys2.ico /autorebase.bat autorese
base1st.bat; do                                                                                                                                                                            
+  for curr_dir in /dev /etc /var /tmp /usr /opt /clang32 /clang64 /mingw32 /mingw64 /msys2_shell.cmd /msys2.exe /mingw32.exe /mingw64.exe /msys2.ini /mingw32.ini /mingw64.ini /msys2.icoau
torebase.bat autorebasebase1st.bat; do                                                                                                                                                     
     if [[ -d ${_newmsys}${curr_dir} || -f ${_newmsys}${curr_dir} ]]; then
       _dirs="${_dirs} ${_newmsys}$curr_dir"
     fi

I installed MSYS2 by msys2-x86_64-20200602.exe.

Thank you,

@lazka lazka closed this as completed in bc9f3ed Jul 18, 2020
@lazka
Copy link
Member

lazka commented Jul 18, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants