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

Stripped-only .tar.gz doesn't record directories #416

Open
konstin opened this issue Dec 11, 2024 · 0 comments
Open

Stripped-only .tar.gz doesn't record directories #416

konstin opened this issue Dec 11, 2024 · 0 comments
Labels
needs-decision Undecided if this should be done

Comments

@konstin
Copy link
Member

konstin commented Dec 11, 2024

It seems that cpython-3.10.16+20241206-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz only contains files, but doesn't record directories. This makes it looks different from any other .tar.gz I've opened in my archive manager (file-roller). Rebuilding the same archive with tar includes those entries.

$ wget https://github.com/indygreg/python-build-standalone/releases/download/20241206/cpython-3.10.16+20241206-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz
# List directories that aren't redirects
$ tar tvf cpython-3.10.16+20241206-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz | rg '^d' | head
[No matches - there aren't any!]
$ tar xf cpython-3.10.16+20241206-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz
$ tar czf stripped_only.tar.gz python
$ tar tvf stripped_only.tar.gz | rg '^d' | head 
drwxrwxr-x konsti/konsti     0 2024-12-11 09:09 python/
drwxrwxr-x konsti/konsti     0 2024-12-11 09:09 python/lib/
drwxrwxr-x konsti/konsti     0 2024-12-11 09:09 python/lib/itcl4.2.2/
drwxrwxr-x konsti/konsti      0 2024-12-11 09:09 python/lib/pkgconfig/
drwxrwxr-x konsti/konsti        0 2024-12-11 09:09 python/lib/tcl8/
drwxrwxr-x konsti/konsti        0 2024-12-11 09:09 python/lib/tcl8/8.6/
drwxrwxr-x konsti/konsti        0 2024-12-11 09:09 python/lib/tcl8/8.5/
drwxrwxr-x konsti/konsti        0 2024-12-11 09:09 python/lib/tcl8/8.4/
drwxrwxr-x konsti/konsti        0 2024-12-11 09:09 python/lib/tcl8/8.4/platform/
drwxrwxr-x konsti/konsti        0 2024-12-11 09:09 python/lib/tk8.6/

I'm not clear if this causes problems with any implementations, but i want to record it as a notable divergence that's hard to debug when it causes problems.

@charliermarsh charliermarsh added the needs-decision Undecided if this should be done label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-decision Undecided if this should be done
Projects
None yet
Development

No branches or pull requests

2 participants