Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About
Welcome to CRUX bug tracking.
Tasklist

FS#743 - zip: is in core, but doesn't need to

Attached to Project: CRUX
Opened by Moritz Wilhelmy (mw) - Thursday, 30 June 2011, 15:10 GMT+2
Last edited by Jose V Beneyto (sepen) - Tuesday, 22 January 2013, 15:15 GMT+2
Task Type Improvement
Category ports → core/opt
Status New
Assigned To No-one
Operating System CRUX
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

zip is in core, but we already have bsdtar there, which extracts zip archives just fine. pkgutils don't even use zip anymore.
This task depends upon

Comment by Danny Rawlins (Romster) - Sunday, 11 December 2011, 08:07 GMT+2
I would suggest moving zip and unzip to opt.
Comment by Lukc (Lukc) - Friday, 21 September 2012, 20:27 GMT+2
That also applies to GNU tar. (my suggestion in this case would be to rename 'tar' into 'gtar', and to symlink the default tar implementation to 'tar' — bsdtar in our case)
Comment by Danny Rawlins (Romster) - Saturday, 22 September 2012, 03:34 GMT+2
That is a very good idea +1.
Comment by Juergen Daubert (jue) - Thursday, 27 September 2012, 18:08 GMT+2
I've no strong opinion moving zip/unzip to opt, but we have to find a maintainer for them, because both should stay in opt.

I'm against the suggested changes with regard to tar. If a user calls 'tar' he could expect that he runs the original 'tar' and not what the CRUX maintainer thought is a nice replacement for it.
Comment by Lukc (Lukc) - Sunday, 30 September 2012, 08:11 GMT+2
bsdtar is fully compatible with “the original tar”. And it does have a lot more features. Besides, tar is not GNU tar, and I don’t see why GNU tar should be installed instead of another implementation of the same software (because it’s GNU and everyone does that without knowing why?).

Sorry if I’m a bit offensive here, but I really dislike when people use GNU tools thinking they are a standard. :|
Comment by Juergen Daubert (jue) - Sunday, 30 September 2012, 10:44 GMT+2
No worries, but I simply mean the tar build by our tar port, nothing more.
Comment by Lukc (Lukc) - Sunday, 30 September 2012, 13:04 GMT+2
Well, we could have a tar port building libarchive. I fail to see the point. The port is currently named “tar” only because gtar is distributed under the name “tar”, not because it is the original tar or whatever.

Any other package providing a tar implementation with the same standard UI and the support of the same archives format would do the job.
Comment by Juergen Daubert (jue) - Sunday, 30 September 2012, 13:54 GMT+2
Which point? You are suggesting a change and I have a different opinion on that, so what's the problem?
Comment by Lukc (Lukc) - Sunday, 30 September 2012, 15:50 GMT+2
The problem, for me, is the package “tar” not being called “gtar”, be it in core or not, and you referring to “tar” without me knowing if you are thinking about “tar” or about “gtar”. Am I making any sense?

Besides, I fail to understand why you don’t see bsdtar as a valid tar implementation instead of a simple “replacement” for tar.
Comment by Fredrik Rinnestam (rehabdoll) - Sunday, 30 September 2012, 16:34 GMT+2
gnu tar is the standard "tar" for most gnu/linux distributions and has been so since.. forever? Are there any specific reasons to replace gnu-tar with bsdtar?
Comment by Lukc (Lukc) - Sunday, 30 September 2012, 19:48 GMT+2
bsdtar supports more archive formats?¹?, it is based on libarchive which the pkgutils use anyway, and a lot of work has been done recently to make it faster than gtar. Essentially, gtar is useless since we already have bsdtar in core, and in my opinion, linking tar to bsdtar and rename the current “tar” port into “gtar” would allow removing that package from core. Just as zip.

I’d like to mention that some Linux distributions don’t use gtar but busybox tar, star or bsdtar, so it is not an absolute rule.

?¹? This includes tar.lz, rpm, cpio and a few others gtar does not support at all. The cpio support also means we could remove cpio (gcpio) in the same fashion and for the same reasons.

Loading...