New plugins: .xz and .lzma

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

New plugins: .xz and .lzma

Post by *ghisler(Author) » 2012-05-31, 19:39 UTC

I have created two new plugins using the lzma/lzma2 compression. Both are available with full source code:

1. XZ: Pack+Unpack files in .xz format, mostly used on Linux/Unix to pack .TAR files, or .CPIO within RPM. Very good compression based on the lzma2 format (7zip) when used together with tar (choose .tar.xz in the pack dialog).

2. LZMA: Pack+Unpack files in .lzma format, mostly used on Linux/Unix to pack .TAR files, or .CPIO within RPM. Based on the older lzma 1.0 format. The lzma plugin now also supports packing. Use the .xz plugin for the newer lzma2 format.

Both plugins work together with the newest RPM+CPIO plugin update by forum user 'flint'.

You can download athe plugins (also the new RPM+CPIO) from our plugins page:
http://www.ghisler.com/plugins.htm

Or direct links:
XZ | LZMA and RPM+CPIO
Last edited by ghisler(Author) on 2012-06-11, 13:00 UTC, edited 2 times in total.
Author of Total Commander
http://www.ghisler.com

damjang
Senior Member
Senior Member
Posts: 205
Joined: 2003-10-09, 15:58 UTC
Contact:

Post by *damjang » 2012-06-01, 12:42 UTC

I think that this plugins is for Windows version of TC and not Android... (wrong subforum).
And the direct link for lzma plugin in wrong.

User avatar
white
Power Member
Power Member
Posts: 2020
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white » 2012-06-01, 14:34 UTC

Message from moderator

Moved to Plugins forum and fixed direct link.

White (moderator)

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-03, 23:11 UTC

has the rpm wdx plugin been updated?
The original one couldn't read info from lzma packed rpm's.
And a feature request, pack support for lzma, we already could use total7zip for xz (un)packing and lzma unpacking, but there was only an unofficial/unsupported plugin for lzma. That brings me to the 2nd question are the dll's in the lzma zip necessary they are part of the official tc distribution?

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2012-06-04, 14:13 UTC

Yes it has! Please re-download it from
http://www.ghisler.com/plugins.htm
pack support for lzma
I thought that it was no longer needed, because .xz is using the newer lzma2 method. I will consider it.
Author of Total Commander
http://www.ghisler.com

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-04, 14:56 UTC

It's not that big deal, but Mandriva uses lzma packed man pages, and except for a command line tool from 7-zip there is no windows packer for lzma files, I use to use an unofficial plugin from an incomplete tc clone from sourceforge I'd like an official plugin, but as you said xz is better.

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-04, 15:04 UTC

Yes it has! Please re-download it from
http://www.ghisler.com/plugins.htm
Strange I couldn't find it there,
but only the old version is on totalcmd.net
http://www.totalcmd.net/plugring/rpm_wdx.html
this one doesn't read info from lzma/xz packed rpm's

there is an unofficial patched version on sf.net

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2012-06-04, 15:16 UTC

Yes, it's the inofficial version which I'm offering on ghisler.com. As indicated, "The 64-bit version is an inofficial port by 'flint'.". Flint is the maintainer of totalcmd.net, but not the original author of the RPM+CPIO plugin.
Author of Total Commander
http://www.ghisler.com

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-04, 15:24 UTC

@author
we had a bit of misunderstanding, I wasn't talking about the wcx plugin but the wdx, I don't want to mention the sf.net version cos it's part of a tc clone, so let's hope flint reads this and updates the wdx plugins too (the wdx source is available at sf.net page).

User avatar
Flint
Power Member
Power Member
Posts: 3168
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2012-06-05, 20:18 UTC

iana
Unfortunately, the wdx plugin is on Delphi too, and I'm a C/C++ programmer, which makes it hard for me to port and/or update the plugin. It happened so that rpm, cpio and deb plugins (wcx, I mean) had very simple structure and FreePascal processed them almost without problems. Also, adding support for xz/lzma is simple enough and my poor knowledge of the Pascal language proved to be sufficient for this task. However, I'm not sure it will work so smoothly with rpm_wdx too…

BTW, what is it you are asking to fix? I took a quick look at the plugin and it showed the information for a test LZMA-packed RPM file without any problems. I also view the plugin sources and it does not even use the function which detects the payload compressor, so even if I updated it to support lzma/xz compressors it wouldn't change anything in the plugin behavior.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.21a / Win7 x64 SP1, Win10 x64

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-06, 00:30 UTC

Those plugins are available on sf.net as windows binaries 32 and 64bit and as lazarus (pascal) code, but I'm not a developer and I don't really want to mention that project because it's a competitor to tc, they do mention that they used source from ghisler.com, in the pas header is written:

Code: Select all

//***************************************************************
// This code based on Christian Ghisler (support ghisler(.)com) sources
//***************************************************************
About the wdx you're right, some time ago most rpm based distro's moved to lzma compression and the old wcx didn't work when I found a working wcx version I also used their wdx build.

I wanted to pm flint the link to the source repo but pm's are disabled, well it's not a big deal tank you for your answer. The svn repo uses the projects name so in respect to tc I won't write it.

User avatar
Flint
Power Member
Power Member
Posts: 3168
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2012-06-06, 06:52 UTC

iana wrote:I wanted to pm flint the link to the source repo but pm's are disabled, well it's not a big deal tank you for your answer.
You don't have to, I already found them (I'm that "flint", if you didn't notice :) ). But don't be so afraid of mentioning Double Commander on this forum, it's not forbidden to mention and even discuss alternative programs, you can find that such discussions already exist here.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.21a / Win7 x64 SP1, Win10 x64

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37170
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2012-06-11, 13:03 UTC

I have added packing functions to the LZMA plugin now too! It was very difficult to add the mempack functions needed for tar.lzma because the used lzma.dll uses an incompatible pack method based on callbacks. I solved it by putting the actual packing in a background thread.

The code which sets the size of the file within the archive doesn't work with TC8 - I will include a fix in TC 8.01 with a new plugin version number.
Author of Total Commander
http://www.ghisler.com

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-12, 01:49 UTC

Tanks a lot for your hard work.

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-06-14, 22:30 UTC

I might have found a bug in the 64 bit build of lzma 2.0 (not sure I don't have a 64 bit system)
the vs2005 project file doesn't include the resource lzma.rc needed for the configuration dialog, as the 32 bit version was compiled with vs 1998 it's OK the dsp includes the resource, but if the 64 bit version was build with the vs2005 vcproj included in the zip source then it has a bug.

And a question about compiling, if someone uses vc6 why not use the /MD switch as vc 6 still links to the system crt msvcrt.dll and doesn't need newer msvcrt??.dll

Post Reply