Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-15 Thread Sergey Poznyakoff
Ed Santiago wrote: > Curious! It's 100% reproducible on my end. I've attached ante > and post (before/after, but ASCII sortable) to: Thanks a lot! It did help. > the commit responsible is e89c7a4: Yes, that's right. > ...although I can't for the life of me figure out _why_. Because deletion

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-11 Thread Ed Santiago
On Fri, Aug 11, 2023 at 05:01:38PM +0200, Pavel Raiskup wrote: > > > > Is this related to some of the Fedora downstream patches? > > [ ... ] > > I can confirm I can reproduce the behavior even with vanilla tar (in > Fedora Rawhide container, on Fedora 38 host). To double-confirm, the behavior r

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-11 Thread Pavel Raiskup
On pátek 11. srpna 2023 16:49:31 CEST Pavel Raiskup wrote: > On pátek 11. srpna 2023 14:32:18 CEST Ed Santiago wrote: > > On Fri, Aug 11, 2023 at 08:33:03AM +0200, Sergey Poznyakoff wrote: > > > Hi Ed, > > > > > > > The --delete flag in 1.35 can generate a tarball that is > > > > unreadable by pod

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-11 Thread Pavel Raiskup
On pátek 11. srpna 2023 14:32:18 CEST Ed Santiago wrote: > On Fri, Aug 11, 2023 at 08:33:03AM +0200, Sergey Poznyakoff wrote: > > Hi Ed, > > > > > The --delete flag in 1.35 can generate a tarball that is > > > unreadable by podman and possibly other tools using the > > > Go tar library: > > > > U

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-11 Thread Ed Santiago
On Fri, Aug 11, 2023 at 08:33:03AM +0200, Sergey Poznyakoff wrote: > Hi Ed, > > > The --delete flag in 1.35 can generate a tarball that is > > unreadable by podman and possibly other tools using the > > Go tar library: > > Unfortunately I cannot reproduce it, > > > $ podman create --name a q

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-10 Thread Sergey Poznyakoff
Hi Ed, > The --delete flag in 1.35 can generate a tarball that is > unreadable by podman and possibly other tools using the > Go tar library: Unfortunately I cannot reproduce it, > $ podman create --name a quay.io/libpod/testimage:20221018 > $ podman export a >/tmp/a.tar > $ tar --de

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-10 Thread Ed Santiago
On Thu, Aug 10, 2023 at 10:29:17AM -0700, Paul Eggert wrote: > On 2023-08-10 08:56, Ed Santiago wrote: > > I've tried to git-bisect but am embarrassed to say I can't even > > get tar to compile from git, not with gcc 12 or 13, due to warnings > > being treated as fatal. > > Try "make WERROR_CFLAGS

Re: tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-10 Thread Paul Eggert
On 2023-08-10 08:56, Ed Santiago wrote: I've tried to git-bisect but am embarrassed to say I can't even get tar to compile from git, not with gcc 12 or 13, due to warnings being treated as fatal. Try "make WERROR_CFLAGS=".

tar 1.35: --delete creates tarfiles with duplicate file paths

2023-08-10 Thread Ed Santiago
The --delete flag in 1.35 can generate a tarball that is unreadable by podman and possibly other tools using the Go tar library: $ podman create --name a quay.io/libpod/testimage:20221018 $ podman export a >/tmp/a.tar $ tar --delete -f /tmp/a.tar home/podman/pause $ podman import /