| View previous topic :: View next topic |
| Author |
Message |
martinus n00b

Joined: 13 Jul 2002 Posts: 50
|
Posted: Tue Jan 04, 2005 12:07 pm Post subject: [request] ebuild for lzma |
|
|
Hi! could someone more knowledgable then I create an ebuild for the LZMA project and submit it to https://bugs.gentoo.org/ ? LZMA offers better compression ratio and faster decompression than bzip2.
The LZMA project can be found here: http://martinus.geekisp.com/rublog.cgi/Projects/LZMA
This should be pretty simple, as LZMA does not depend on anything except make and gcc. |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 12:12 pm Post subject: |
|
|
But why not just use p7zip (the Linux port of 7-zip, which is where the original LZMA SDK comes from)? The author of LZMA explicitely says he's not interested in further maintaining the project... _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
martinus n00b

Joined: 13 Jul 2002 Posts: 50
|
Posted: Tue Jan 04, 2005 12:23 pm Post subject: |
|
|
The reason I cannot use p7zip is that it is not stream based. I need something that can be used in pipes, like LZMA. The reason the author (me) does not want to work on it any more, is that it just works as intended  |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 12:27 pm Post subject: |
|
|
| Code: | moocha ~ $ 7z
7-Zip (A) 4.12 beta Copyright (c) 1999-2004 Igor Pavlov 2004-11-18
p7zip Version 4.12 (locale=C,Utf16=off,HugeFiles=on)
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<etc etc, irrelevant part skipped>
<Switches>
<etc etc, irrelevant part skipped>
-si: read data from stdin
-so: write data to stdout
|
Works with pipes like a charm. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 12:37 pm Post subject: |
|
|
OK, I should have read the docs closer. Apparently you can't use -si and -so on the same command line, so p7zip pipe support indeed does work like a charm, i.e. it doesn't exist at all. Shame on me, and I apologize.
I'll look into slapping together an ebuild. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 1:50 pm Post subject: |
|
|
Done. Had to patch AriBitCoder.h (GCC 3.4.x is a bit stricter about its adherence to standards and it complained about obsolete template constructs). Also had to change the makefile so it picks up Gentoo's CFLAGS etc.
Bugzilla entry is here: https://bugs.gentoo.org/show_bug.cgi?id=76627 _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 2:06 pm Post subject: |
|
|
I forgot: I'm not sure under what license you're releasing this application. The README seemed to be suggesting LGPL so I put that in, but I suspect that notice comes from the LZMA SDK. It might be best to include a COPYING file that explains what parts of your program are covered by what license. Please add to the abovementioned bug if you do that.
If you choose to include such a file in the distribution tarball please bump its version number, don't simply change the original 0.02 tarball because if by then the ebuild has made it into the portage tree and the tarball into the distfiles mirrors you'd be causing digest mismatches.
If you bump the app version then it might be a good idea to include the GCC 3.4 patch (I hereby release it into the public domain, so do whatever you want with it, no strings attached - this just to get the legal blahblah out of the way). It shouldn't cause problems for GCC 3.3 and older.
Please don't include the Makefile patch however since that's Gentoo-specific and should reside only in the portage tree. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
martinus n00b

Joined: 13 Jul 2002 Posts: 50
|
Posted: Tue Jan 04, 2005 2:14 pm Post subject: |
|
|
| Wow, that was quick. Thanks a lot! I will add a COPYING file as soon as I have time. |
|
| Back to top |
|
 |
|