in reply to Re^3: [OT] Tar file with non-identical duplicate files and no paths?(A solution)
in thread [OT] Tar file with non-identical duplicate files and no paths?

At this point, most of what you've written goes over my head (//////........there it goes :). I'm working on Win32 with a native port of GNU tar. Files in perl module tar.gzs often come out with their (win23) readonly attribute set. I've no idea if this is a misbegotten attempt to map *nix permissions to Win32 attributes by the tar port I'm using, or some other combination of factors. I know it bugs the heck out of me, but I don't even know where to point the finger.

I also tried extracting the relevant files using WinZip per some of the other posts, but it seems to get really confused by the idea of an archive containing two files with the same name and no path to differentiate them. Admittedly it's a really ancient version, but I rarely use it and the newer versions are about 5 times the size and seem to want to install hooks all over the damn place.

It is a weird way to build an archive, flat with duplicates. I'm a bit surprised that tar allows it, but ... I got the files I needed, so the rest is just something to ponder late at night :)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^4: [OT] Tar file with non-identical duplicate files and no paths?(A solution)

Replies are listed 'Best First'.
Re^5: [OT] Tar file with non-identical duplicate files and no paths?(A solution)
by repellent (Priest) on Sep 13, 2008 at 22:27 UTC
    You could peep into the DBD-Pg-2.10.0-Perl5.8.tar binary and string search for Pg.pm. That way, you can really find out if there are actually paths associated with the duplicates.

    I'm guessing that tar you're using is confused about how to map paths over from *nix. This manifests as extracting "flat with duplicates".

    Yeah, best left to ponder later :)
        Heh! We take every chance to blame that we can :)

        So I looked into it -- the file is strange. It does read fine in *nix land though (I have FreeBSD on a virtual machine). You may be interested in the list of files:

        Back in Windows, when I try to open DBD-Pg-2.10.0-Perl5.8.tar.gz with PowerArchiver, it does detect the duplicate files, but the entire archive has been flattened (i.e., directories are empty & plain files appear as duplicates in the same dir). This is the same thing you're seeing.

        You mentioned using an old version of WinZip. Perhaps IZArc could help?