Issue 69 in xar: --compression bzip2 doesn't compress at all

2 views
Skip to first unread message

codesite...@google.com

unread,
Nov 13, 2009, 7:49:13 AM11/13/09
to xar-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 69 by Brodsky_...@yahoo.com: --compression bzip2 doesn't compress
at all
http://code.google.com/p/xar/issues/detail?id=69

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


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Nov 24, 2009, 8:37:35 PM11/24/09
to xar-...@googlegroups.com
Updates:
Status: Fixed
Owner: bbraun

Comment #1 on issue 69 by bbraun: --compression bzip2 doesn't compress at
all
http://code.google.com/p/xar/issues/detail?id=69

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?

codesite...@google.com

unread,
Dec 10, 2009, 3:43:34 AM12/10/09
to xar-...@googlegroups.com

Comment #2 on issue 69 by Brodsky_...@yahoo.com: --compression bzip2
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 :-)
Reply all
Reply to author
Forward
0 new messages