git-extras Fixes "cp: 'bin/git-scp' and 'bin/git-rscp' are the same f…#6188
git-extras Fixes "cp: 'bin/git-scp' and 'bin/git-rscp' are the same f…#6188lygstate wants to merge 1 commit intomsys2:masterfrom
Conversation
9319ab3 to
bc7a3f1
Compare
|
cc @dscho |
bc7a3f1 to
0d6a8de
Compare
|
What's the default MSYS in CI? locally. |
|
by default winsymlinks set to deep copy option, so all symlinks are actually copies of sources |
0d6a8de to
59a5aca
Compare
|
OK, I switch it to MSYS=winsymlinks:native and now it's fine for bsdtar |
| bsdtar -zxf "${_realname}-${pkgver}.tar.gz" || true | ||
|
|
||
| cd "${srcdir}/${_realname}-${pkgver}" | ||
| cp bin/git-scp bin/git-rscp | ||
| MSYS=winsymlinks:native \ | ||
| bsdtar -zxf "${_realname}-${pkgver}.tar.gz" |
There was a problem hiding this comment.
Even if many people are lucky enough to run MSYS2 on a recent Windows machine in Developer Mode, not all MSYS2 users are that lucky. And those would no longer be able to use this recipe to build.
Maybe it would be better to go the other way round, using MSYS=winsymlinks:deepcopy and keep most of the original code as-is?
There was a problem hiding this comment.
The difference between winsymlinks:native and winsymlinks:nativestrict is this: If the filesystem supports native symlinks and Cygwin fails to create a native symlink for some reason, it will fall back to creating Cygwin default symlinks with winsymlinks:native, while with winsymlinks:nativestrict the symlink(2) system call will immediately fail.
So I think winsymlinks:native is a better opton indeed. According to https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
There was a problem hiding this comment.
MSYS=winsymlinks:deepcopy have the following error that are hidden.:
git-extras-7.4.0/bin/git-rscp: Can't create 'git-extras-7.4.0/bin/git-rscp': No such file or directory
bsdtar: Error exit delayed from previous errors
…ile" we can extract with bsdtar properly when MSYS=winsymlinks:native Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
59a5aca to
585d854
Compare
…ile"