msys2 / MSYS2-packages

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

tar cannot extract Qt 5.6 source tarball correctly: `configure.exe` is missing #4103

Open CyanoHao opened 8 months ago

CyanoHao commented 8 months ago

Description / Steps to reproduce the issue

  1. Download Qt 5.6 source tarball.
    wget https://download.qt.io/new_archive/qt/5.6/5.6.3/submodules/qtbase-opensource-src-5.6.3.tar.xz
  2. Extract Qt source.
    tar xvf qtbase-opensource-src-5.6.3.tar.xz | grep configure.exe

    Output: qtbase-opensource-src-5.6.3/configure.exe.

  3. Check configure.exe.
    ls qtbase-opensource-src-5.6.3/configure.exe

Expected behavior

configure.exe exists.

Actual behavior

configure.exe does not exist.

Verification

Windows Version

MINGW64_NT-10.0-19044

Are you willing to submit a PR?

No response

Biswa96 commented 8 months ago

The issue can not be reproduced. Here is the output in my case.

$ tar xvf qtbase-opensource-src-5.6.3.tar.xz | grep configure.exe
qtbase-opensource-src-5.6.3/configure.exe
CyanoHao commented 8 months ago

The issue can not be reproduced. Here is the output in my case.

$ tar xvf qtbase-opensource-src-5.6.3.tar.xz | grep configure.exe
qtbase-opensource-src-5.6.3/configure.exe

This file apprears in verbose log of tar, but does not exist after extraction.

ls qtbase-opensource-src-5.6.3/configure.exe: image

Windows Explorer: image

Biswa96 commented 8 months ago

Understood. I can reproduce the issue with tar. It seems that the configure.exe file is overwritten with configure shell script. If I use bsdtar the issue does not happen.

sskras commented 8 months ago

@Biswa96 commented:

If I use bsdtar the issue does not happen.

What specific version of bsdtar do you run? Mine is bsdtar 3.7.2, and the issue is present here:

image

Maybe some MSYS2 configuration is in play?

sskras commented 8 months ago

PS. (Just in case) Midipix doesn't have the issue:

image

Biswa96 commented 8 months ago

What specific version of bsdtar do you run?

Try with the mingw/ucrt/clang one.