python-build-standalone icon indicating copy to clipboard operation
python-build-standalone copied to clipboard

Stripped-only `.tar.gz` doesn't record directories

Open konstin opened this issue 1 year ago • 0 comments

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.

konstin avatar Dec 11 '24 08:12 konstin