schwer-q / xar

Automatically exported from code.google.com/p/xar
0 stars 0 forks source link

--compression bzip2 doesn't compress at all #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. dd if=/dev/zero of=file.dat bs=1000 count=1000
2. xar -c --compression bzip2 -f file.xar file.dat

What is the expected output?
Expected is an archive file with compressed file.dat

What do you see instead?
-rw-r--r-- 1 boris boris 1000000 2009-11-13 13:44 file.dat
-rw-r--r-- 1 boris boris 1000409 2009-11-13 13:44 file.xar

In fact, if you compress some text files and then look inside the xar
archive, you can see those text files in plan text.

What version of the product are you using? On what operating system?

$ xar --version
xar 1.5.2
$ uname -a
Linux boris-laptop 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42
UTC 2009 i686 GNU/Linux

Original issue reported on code.google.com by Boris.Br...@gmail.com on 13 Nov 2009 at 12:48

GoogleCodeExporter commented 9 years ago
This is likely due to your xar not being built with bzip2 support.
It is a bug that xar does not print an error when specifying an unsupported 
compression type.  I believe I have 
fixed this in commit 227.  Can you please check out from trunk and test this?

Original comment by bbraun on 25 Nov 2009 at 1:31

GoogleCodeExporter commented 9 years ago
I tested it with commit 230. Got the error message:
  This instance of xar doesn't understand compression type bzip2

After installing libbz2-dev and configure with --with-bzip2 I got:
-rw-r--r-- 1 boris boris 1000000 2009-12-10 09:31 file.dat
-rw-r--r-- 1 boris boris     537 2009-12-10 09:41 file.xar

So, everything is OK :-)

Original comment by Boris.Br...@gmail.com on 10 Dec 2009 at 8:43