Giter VIP home page Giter VIP logo

Comments (4)

haarg avatar haarg commented on August 23, 2024 2

There are also other systems that will produce PaxHeaders by default. One of my MacOS machines has a uid/gid that doesn't fit in standard ustar headers. Using the --format=ustar option will produce an empty tarball. This can be fixed by using --format=ustar --uid=0 --gid=0 when using bsd tar, or --format=ustar --owner=0 --group=0 with GNU tar.

from archive-tar-wrapper-perl.

plicease avatar plicease commented on August 23, 2024

For tarball releases of perl dists I think setting UID + GID to zero is fine, but I can imagine that for some use cases that may not be acceptable. It is probably therefore best if implemented that this be opt-in.

I think supporting GNU tar and bsdtar would probably benefit the majority of users and support for other systems can be added later.

from archive-tar-wrapper-perl.

glasswalk3r avatar glasswalk3r commented on August 23, 2024

That falls on the same situation of #16: each OS seems to have their own particular configurations and/or versions of tar that are incompatible with each other.

The way to go in this case, as I see, is to create a dispatch table using the OS name as keys just like we are doing for Microsoft Windows and OpenBSD.

From there, we would execute a function to return an object configured with any little detail that is required to make the tar binary to work as expected.

My only concern is that Archive::Tar::Wrapper was created to overcome the slowness of Archive::Tar, so if anything, we shouldn't make it overly complex to the point there is a performance penalty.

Some refactoring will be required to do that, although. I started doing it in the past, but never finished.

Of course, I'm opened to suggestions too.

from archive-tar-wrapper-perl.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.