Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130736 - p7zip should be prefered over unrar
Summary: p7zip should be prefered over unrar
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-21 07:46 UTC by Roc Vallès
Modified: 2006-04-21 12:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roc Vallès 2006-04-21 07:46:21 UTC
I've noticed that many ebuilds which need to unpack rar archives depend on "unrar". Unrar is under a privative license (unrar license). 

p7zip implements rar unpacking and is under a free software license (LGPL-2.1).

I believe p7zip should be used to unpack rars in portage per-policy, as we are to keep our users as free as possible. That would require fixing all the ebuilds that depend/use unrar to depend/use p7zip instead.

An example ebuild using unrar:
games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.4.ebuild
Comment 1 Roc Vallès 2006-04-21 07:51:05 UTC
Apparently, as a friend has just pointed me, things are even more complicated:

http://paste.debian.net/6102

It's still possible to unpack rars using just software that is free as in respecting your freedom, and I strongly think it's the way it should be preferred.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-04-21 07:52:54 UTC
<snip>
/usr/bin/7z
/usr/bin/7za
/usr/bin/7zr
/usr/bin/p7zip
</snip>

Care to tell us how is that thing syntax-wise compatible w/ unrar? :P Besides the fact that it doesn't unpack rar archives at all, I just tried... 
Comment 3 Roc Vallès 2006-04-21 07:56:39 UTC
So there's this:

* app-arch/unrar-gpl 
     Available versions:  0.0.1
     Installed:           none
     Homepage:            http://home.gna.org/unrar/
     Description:         Free rar unpacker
     Provides:            none
     License:             GPL-2

Apparently based on unrarlib: http://www.unrarlib.org/about.html
Which is also free.
Comment 4 Roc Vallès 2006-04-21 08:01:49 UTC
Reopened; It was marked as invalid but no explanation was given, nor I believe it's invalid. Probably a missclick.
Comment 5 Roc Vallès 2006-04-21 08:04:50 UTC
(In reply to comment #2)
> <snip>
> /usr/bin/7z
> /usr/bin/7za
> /usr/bin/7zr
> /usr/bin/p7zip
> </snip>
> 
> Care to tell us how is that thing syntax-wise compatible w/ unrar? :P Besides
> the fact that it doesn't unpack rar archives at all, I just tried... 
> 

"7z x whatever.rar"

I don't believe it's syntax-wise compatible with unrar, and there are other problems (see previous posts).

It's more an issue of freedom, and using (by default) free implementations when they exist.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-04-21 08:28:36 UTC
(In reply to comment #4)
> Reopened; It was marked as invalid but no explanation was given, nor I believe
> it's invalid. Probably a missclick.

Uh? I gave you perfect explanation - it's not syntax-compatible and it doesn't unpack rars.

Comment 7 Roc Vallès 2006-04-21 08:36:17 UTC
> (In reply to comment #4)
> > Reopened; It was marked as invalid but no explanation was given, nor I believe
> > it's invalid. Probably a missclick.
> 
> Uh? I gave you perfect explanation - it's not syntax-compatible and it doesn't
> unpack rars.
> 
Marked as REOPENED.

I didn't interpret what you said as an explanation. You didn't say "I marked it invalid because...".

Also, I've told you:
- How to unpack rars with p7zip (so you CAN unpack rars with p7zip).
- How p7zip's freedom on its rar support part isn't so clear.
- How there's still unrar-gpl.
- How syntax compatibility doesn't matter, because...
- How it's an issue about freedom, and about prefering free software over propietary software when it exists.
Comment 8 Martxel Lasa 2006-04-21 08:41:45 UTC
I think rvalles is right. I dont't understand your attitude, Jakub.
Comment 9 Martxel Lasa 2006-04-21 08:46:54 UTC
As rvalles has told, there are other alternatives to unrar that are free, and don't say that p7zip doesn't unpack rars.
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-21 09:25:16 UTC
Stop that please. Unrar is good enough. Bug those who ship rar Archives not to do so, if you don't like it.
Comment 11 Roc Vallès 2006-04-21 10:39:33 UTC
(In reply to comment #10)
> Stop that please. Unrar is good enough. Bug those who ship rar Archives not to
> do so, if you don't like it.
> 
REOPENED. This isn't an issue about liking rar or not, but about using the free software implementations when they're available.

Which I believe is the Gentoo official policy.

Please see http://www.gentoo.org/main/en/contract.xml
Comment 12 Roman Valls 2006-04-21 10:50:58 UTC
I concur, if we can avoid using non-free software why stick on proprietary unrar ?  I'm also with rvalles on following the original gentoo contract, is not that hard after all, isn't it ?
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-04-21 11:08:07 UTC
(In reply to comment #11)

Look - bugzilla is not here to preach about freedom. It's for bugs. p7zip is not a replacement for (un)rar, sorry.
Comment 14 Daniel Clemente 2006-04-21 11:33:07 UTC
I don't know about p7zip, but unrar-gpl is indeed a free substitute for unrar.
See features of unrarlib (on which unrar-gpl is based):
http://www.unrarlib.org/features.html

It works well for extracting files, just like unrar, but is GPL and can be included in other programs.
I think that this can be further discussed following Gentoo's policies; there's no reason for closing this bug.
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-21 12:22:39 UTC
> REOPENED. This isn't an issue about liking rar or not, but about using the free
> software implementations when they're available.
> 
> Which I believe is the Gentoo official policy.
> 
> Please see http://www.gentoo.org/main/en/contract.xml

You misread it. There's no Gentoo software or core component depending on the unfree unrar. Only some ebuilds, which install third party software, use it.

If you want to see this change, open a discussion on the gentoo-dev mailing list.

Once again: This is not a bug.