msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.28k stars 486 forks source link

directories cannot be created when decompressing a tarball #3604

Open nerus492 opened 1 year ago

nerus492 commented 1 year ago

when I unzip a tarball sometimes it tells me that such a directory or such a file does not exist, but really it does exist, another related error is that when I try to compile certain projects it tells me that symbolic links cannot be created, I cannot find information on how to solve that error nowhere, I have disabled all windows security measures, antivirus, antimalware, I am using msys2 with elevated rights, I have configured fsutil to allow symbolic links, despite all this I still get that error, in msys2. org there is no documentation on this. specifically the error is, ln cannot create symbolic links, permission denied

ZachBacon commented 1 year ago

Afaik most tarballs created with symlinks are often soft links where on windows it's hardlinked. My guess is that it can't reliably establish the symlinks.

Of course I could be wrong in that assertion.

Biswa96 commented 1 year ago

@nerus492 Symlink creation can be modified with winsymlinks environment variable. See https://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html. For example,

$ MSYS=winsymlinks:nativestrict ln -s foo bar
$ ls -l bar
lrwxrwxrwx 1 x None 3 Oct 22 23:46 bar -> foo
nerus492 commented 1 year ago

excuse me for my bad writing in english I think it has not i expresed correctly or they have not understood me correctly, the problem is not that I cannot create symbolic links manually, no, the problem is when I try to compile foreign projects with foreign compilation systems, for example qemu uses meson to compile , I cannot dedicate myself to modifying the entire script because it could break something and everything could be damaged, with my own projects I avoid by all means using symbolic links

El sáb, 22 oct 2022 a las 20:17, Biswapriyo Nath @.***>) escribió:

@nerus492 https://github.com/nerus492 Symlink creation can be modified with winsymlinks environment variable. See https://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html. For example,

$ MSYS=winsymlinks:nativestrict ln -s foo bar $ ls -l bar lrwxrwxrwx 1 x None 3 Oct 22 23:46 bar -> foo

— Reply to this email directly, view it on GitHub https://github.com/msys2/MSYS2-packages/issues/3604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJXC7XEDNPH2CDEYMO6AUL3WEQVSDANCNFSM6AAAAAARL6A77Y . You are receiving this because you were mentioned.Message ID: <msys2/msys2 .@.***>