Giter VIP home page Giter VIP logo

Comments (3)

glasswalk3r avatar glasswalk3r commented on August 23, 2024

That happens because NetBSD has an insane amount of different implementations of tar:

  • /usr/bin/tar that is shipped with the standard OS (no package added). This guy doesn't have a command line parameter to print the version, and that information is not even available at it's manpage.
  • gtar, which is the Free Software Foundation implementation
  • bsdtar, which is the BSD tar implementation
  • star, http://s-tar.sf.net/
  • heirloom-tar, http://heirloom.sourceforge.net/
[root@netbsd8 ~]$ star --version
star: star 1.6.1 (amd64-unknown-netbsd8.0) 2019/10/14

Options: find fflags remote Linux-xattr

Copyright (C) 1985, 88-90, 92-96, 98, 99, 2000-2019 J�rg Schilling
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@netbsd8 ~]$ gtar --version
tar (GNU tar) 1.32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[root@netbsd8 ~]$ bsdtar --version
bsdtar 3.4.0 - libarchive 3.4.0 zlib/1.2.10 liblzma/5.2.1 bz2lib/1.0.6 

I suspect that this test here PASSed because it has installed star, since it creates a symbolic link:

[root@netbsd8 ~]$ which tar
/usr/pkg/bin//tar
[root@netbsd8 ~]$ /usr/pkg/bin//tar --version
suntar: star 1.6.1 (amd64-unknown-netbsd8.0) 2019/10/14

Options: find fflags remote Linux-xattr

Copyright (C) 1985, 88-90, 92-96, 98, 99, 2000-2019 J�rg Schilling
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@netbsd8 ~]$ ls -l /usr/pkg/bin//tar
lrwxr-xr-x  1 root  wheel  4 Jan  5 05:18 /usr/pkg/bin//tar -> star

But that's is just an educated guess.

The best I can do for now is to change the tests to add version information (with diag instead of note) to better understand all the variations, but I guessing we should require gtar or bsdtar because dealing with this kind of situation is too much problem just to get an version detail:

[root@netbsd8 ~]$ strings /usr/bin/tar | grep -i version
Dynamic linker version mismatch
[root@netbsd8 ~]$ strings /usr/bin/tar | grep -i copy   
Failed write during copy of %s to %s
File %s changed size during copy to %s
File %s was modified during copy to %s
File %s was modified during copy to archive
Unable to copy %s, file would overwrite itself
@(#) Copyright (c) 1992, 1993 The Regents of the University of California.  All rights reserved.
copy
.copyright

from archive-tar-wrapper-perl.

glasswalk3r avatar glasswalk3r commented on August 23, 2024

I forgot to mention that getting the version is the way to understand which program is in use and what is the expected exit code for the program (some implementations assume that asking for a version is an error and returns something different of zero).

from archive-tar-wrapper-perl.

glasswalk3r avatar glasswalk3r commented on August 23, 2024

@eserte , I believe the maintainers of NetBSD could provide more information about what is the right thing to do. Maybe there is a standard tar program between all those choices, or there is some thing close to "package popularity" that we see in some Linux distributions. That would help choosing a "safe" bet of which tar program to use.

Could you please give a hand with that?

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.