Gentoo Archives: gentoo-commits

From: "Brian Harring (ferringb)" <ferringb@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/libarchive/files: libarchive-disable-lzma-size-test.patch
Date: Fri, 31 Dec 2010 09:18:11
Message-Id: 20101231091802.013FC20054@flycatcher.gentoo.org
1 ferringb 10/12/31 09:18:01
2
3 Added: libarchive-disable-lzma-size-test.patch
4 Log:
5 fix false positives against xz-5 (bug 343829), remove 2.8.0 since the tests can fail for the fuzzer (fixed in later versions)
6
7 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-arch/libarchive/files/libarchive-disable-lzma-size-test.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/files/libarchive-disable-lzma-size-test.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/libarchive/files/libarchive-disable-lzma-size-test.patch?rev=1.1&content-type=text/plain
14
15 Index: libarchive-disable-lzma-size-test.patch
16 ===================================================================
17 Index: libarchive/test/test_write_compress_lzma.c
18 ===================================================================
19 --- libarchive/test/test_write_compress_lzma.c (revision 2811)
20 +++ libarchive/test/test_write_compress_lzma.c (revision 2812)
21 @@ -185,10 +185,15 @@
22 archive_write_close(a);
23 assert(0 == archive_write_finish(a));
24
25 - /* Level 0 really does result in larger data. */
26 + /* It would be nice to assert that compression-level=0 produced
27 + * consistently larger/smaller results than the default compression,
28 + * but the results here vary a lot depending on the version of liblzma
29 + * being used. */
30 + /*
31 failure("Compression-level=0 wrote %d bytes; default wrote %d bytes",
32 (int)used2, (int)used1);
33 assert(used2 > used1);
34 + */
35
36 assert((a = archive_read_new()) != NULL);
37 assertA(0 == archive_read_support_format_all(a));
38 Index: libarchive/test/test_write_compress_xz.c
39 ===================================================================
40 --- libarchive/test/test_write_compress_xz.c (revision 2811)
41 +++ libarchive/test/test_write_compress_xz.c (revision 2812)
42 @@ -193,10 +193,14 @@
43 archive_write_close(a);
44 assert(0 == archive_write_finish(a));
45
46 - /* Level 0 really does result in larger data. */
47 + /* I would like to assert that compression-level=0 results in
48 + * larger data than the default compression, but that's not true
49 + * for all versions of liblzma. */
50 + /*
51 failure("Compression-level=0 wrote %d bytes; default wrote %d bytes",
52 (int)used2, (int)used1);
53 assert(used2 > used1);
54 + */
55
56 assert((a = archive_read_new()) != NULL);
57 assertA(0 == archive_read_support_format_all(a));
58
59 Egenskapsändringar för: .
60 ___________________________________________________________________
61 Modified: svn:mergeinfo
62 Merged /trunk:r2811