-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[bug] Regression - Conan 2.13-2.14 fail to extract tar files with read-only directories #17987
Comments
Hi @tttapa Thanks a lot for reporting this. There's something weird because I got failures even using Conan 2.12 and 2.11: Conan 2.12 conanfile.py (test/1.0): Unzipping x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz to /Users/conan/develop/conan/mmm
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 19%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 39%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 58%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 78%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 97%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 114%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 132%
Uncompressing x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz: 151%
ERROR: conanfile.py (zlib/1.2.1): Error in source() method, line 16
get(self, "https://github.com/tttapa/toolchains/releases/download/1.0.2/x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz",
PermissionError: [Errno 13] Permission denied: '/Users/conan/develop/conan/mmm/x86_64-bionic-linux-gnu/x86_64-bionic-linux-gnu/sysroot/usr/include/linux/netfilter_ipv6/ip6t_hl.h' Conan 2.11 conanfile.py (test/1.0): Unzipping x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz to /Users/conan/develop/conan/mmm
ERROR: conanfile.py (zlib/1.2.1): Error in source() method, line 16
get(self, "https://github.com/tttapa/toolchains/releases/download/1.0.2/x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz",
PermissionError: [Errno 13] Permission denied: '/Users/conan/develop/conan/mmm/x86_64-bionic-linux-gnu/x86_64-bionic-linux-gnu/sysroot/usr/include/linux/netfilter_ipv6/ip6t_hl.h' Could you provide the logs where it got a successful download? Ensure you use an empty folder where it's downloaded to verify that it does not happen in earlier versions. |
I've added a CI workflow that builds the package using different versions of Conan: https://github.com/tttapa/conan-recipes/actions/runs/13945071556 It passes for 2.12 and 2.11, but fails for 2.13, 2.14 (with |
I have been able to reproduce in Windows, Python3.13, latest
Note also the wrong % reporting @perseoGI But I have also tried with Conan 2.12, and it also fails in same way |
Hi @tttapa I just tried it in Ubuntu 24.04 (and Python 3.13), and I got the same result as the one mentioned above. It's failing for Conan 2.11, 2.12, 2.13, and 2.14: 2.11 and 2.12
Upper versions are indeed failing in a different way (always matching the 2.13 and 2.14
Anyway, I'm debugging the code to try to understand what could be happening. |
Thanks a lot for looking into this issue! I haven't personally encountered the Edit: That doesn't seem to be the issue either. I just tried Conan 2.12.2 with the system installation of Python on Ubuntu 22.04 (3.10.12), and it works fine. The same setup fails using Conan 2.13.0:
|
Hi @tttapa After several hours of looking into this, I can confirm that it's a regression bug so thanks a lot for reporting it. I was quite confused when it failed for older versions but I realized that my file system is case-insensitive so that's why it was failing:
Going back to the bug, it was introduced here: #17708 (specifically this line https://github.com/conan-io/conan/pull/17708/files#diff-9afbf22c7cefd3f7b642e9b1b988ba829d3c36e3092bfb6140d01ad0bba4c571R393).
We'll try to propose a bugfix asap. Thanks again for your feedback! UPDATED: For the record, my host machine is macOS, and it's case-insensitive. However, as I said above, it was failing in my docker Ubuntu image, which is case-sensitive. Why? because I was building the test in a shared volume with macOS. |
Thanks a lot, the |
@tttapa this fix will be released in the next Conan 2.15. Thanks again for reporting it and the useful feedback 👏 |
Describe the bug
Conan 2.13 and 2.14 fail when extracting a tar file that contains read-only directories. Conan 2.12 and earlier handle this case without issues.
How to reproduce it
https://github.com/tttapa/conan-recipes/blob/45f1ab171a3450dce62bd470a9b04f949f9d2a3b/recipes/tttapa-toolchains/binary/conanfile.py#L115-L120
For example, downloading the file
https://github.com/tttapa/toolchains/releases/download/1.0.2/x-tools-x86_64-bionic-linux-gnu-gcc14.tar.xz
using theget()
function fails with the following error on Linux:The text was updated successfully, but these errors were encountered: