diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-01-15 07:30:40 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-01-15 07:30:40 +0000 |
commit | 4e7fab3bbc6be782ac6642b88e92899e4e5784c9 (patch) | |
tree | 3e766c60dc961814f86f988a80fa8c085772cc3d /app-arch/libarchive/files/libarchive-3.0.3-nozlib.patch | |
parent | Version bump. (diff) | |
download | gentoo-2-4e7fab3bbc6be782ac6642b88e92899e4e5784c9.tar.gz gentoo-2-4e7fab3bbc6be782ac6642b88e92899e4e5784c9.tar.bz2 gentoo-2-4e7fab3bbc6be782ac6642b88e92899e4e5784c9.zip |
old
(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'app-arch/libarchive/files/libarchive-3.0.3-nozlib.patch')
-rw-r--r-- | app-arch/libarchive/files/libarchive-3.0.3-nozlib.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app-arch/libarchive/files/libarchive-3.0.3-nozlib.patch b/app-arch/libarchive/files/libarchive-3.0.3-nozlib.patch deleted file mode 100644 index 16caa153faf1..000000000000 --- a/app-arch/libarchive/files/libarchive-3.0.3-nozlib.patch +++ /dev/null @@ -1,34 +0,0 @@ -http://code.google.com/p/libarchive/issues/detail?id=242 -http://bugs.gentoo.org/403733 - ---- a/libarchive/archive_write_set_format_7zip.c -+++ b/libarchive/archive_write_set_format_7zip.c -@@ -1585,7 +1585,8 @@ file_init_register_empty(struct _7zip *zip) - zip->empty_list.last = &(zip->empty_list.first); - } - --#if !defined(HAVE_BZLIB_H) || !defined(BZ_CONFIG_ERROR) || !defined(HAVE_LZMA_H) -+#if !defined(HAVE_ZLIB_H) || !defined(HAVE_BZLIB_H) ||\ -+ !defined(BZ_CONFIG_ERROR) || !defined(HAVE_LZMA_H) - static int - compression_unsupported_encoder(struct archive *a, - struct la_zstream *lastrm, const char *name) - ---- a/libarchive/test/test_write_compress_program.c -+++ b/libarchive/test/test_write_compress_program.c -@@ -40,6 +40,15 @@ DEFINE_TEST(test_write_compress_program) - skipping("Cannot run 'gzip'"); - return; - } -+ /* NOTE: Setting blocksize=1024 will cause gunzip failure because -+ * it add extra bytes that gunzip ignores with its warning and -+ * exit code 1. So we should set blocksize=1 in order not to -+ * yield the extra bytes when using gunzip. */ -+ assert((a = archive_read_new()) != NULL); -+ r = archive_read_support_filter_gzip(a); -+ if (r != ARCHIVE_OK && canGunzip()) -+ blocksize = 1; -+ assertEqualInt(ARCHIVE_OK, archive_read_free(a)); - - /* Create a new archive in memory. */ - /* Write it through an external "gzip" program. */ |