The `--delete` flag in tar 1.35.1 (rawhide) generates a tarball that is unreadable by podman, and possibly by other tools using the Go tar implementation. Reproducible: Always Steps to Reproduce: podman create --name a quay.io/libpod/testimage:20221018 podman export -o /tmp/a.tar a tar --delete -f /tmp/a.tar home/podman/pause podman import /tmp/a.tar b Actual Results: Error: writing blob: adding layer with blob "sha256:51098d81131bac1a1a8539c68e4389e15fe1a800e4922eecd9cb11b0f51d9386": processing tar file(): duplicates of file paths not supported Expected Results: clean import Ran `tar tf` against old & new tarball. Results: @@ -234,3 +234,2 @@ home/podman/ -home/podman/pause home/podman/testimage-id @@ -773,2 +772,14 @@ usr/share/misc/ +usr/share/man/ +usr/share/misc/ +usr/share/udhcpc/ +usr/share/udhcpc/default.script +var/ +var/cache/ +var/cache/apk/ +var/cache/misc/ +var/empty/ +var/lib/ +var/lib/apk/ +var/lib/arpd/ usr/share/udhcpc/ home/podman/pause is expected and correct. The others, not so much. Note that `usr/lib/misc` is instantly recognizable as a dup
This is the commit that introduced the problem: https://git.savannah.gnu.org/cgit/tar.git/commit/?id=e89c7a45eba7644693870b613386baa45d624e6a
Created attachment 1983003 [details] a.ante.tar - untouched output of podman export a
Created attachment 1983004 [details] a.post.tar - result of tar --delete
Attached a.ante.tar and a.post.tar, the before & after tarballs. 'post' was generated using tar-1.35-1.fc39.x86_64 but it is functionally equivalent to one generated by tar-from-source. 'tar tf /tmp/a.post.tar |sort|uniq -cd' lists 12 dups: usr/share/man down to var/lib/arpd. (tar-1.34 does as well).
Thank you Ed for the debugging and communication with upstream. Downstream backport: https://src.fedoraproject.org/rpms/tar/pull-request/18
FEDORA-2023-13e5135bc9 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-13e5135bc9
FEDORA-2023-1b0c5370c2 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1b0c5370c2
FEDORA-2023-13e5135bc9 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-1b0c5370c2 has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.