diff options
author | NP-Hardass <NP-Hardass@gentoo.org> | 2016-07-03 03:04:30 -0400 |
---|---|---|
committer | NP-Hardass <NP-Hardass@gentoo.org> | 2016-07-03 03:05:23 -0400 |
commit | 6c9193ee55e0603fde627238a82acd02fa7010a5 (patch) | |
tree | c094f97e5d88ca60ca6e99886b2f379d83612076 /app-arch/libarchive/files | |
parent | dev-ruby/rack: add missing slot to blocker (diff) | |
download | gentoo-6c9193ee55e0603fde627238a82acd02fa7010a5.tar.gz gentoo-6c9193ee55e0603fde627238a82acd02fa7010a5.tar.bz2 gentoo-6c9193ee55e0603fde627238a82acd02fa7010a5.zip |
app-arch/libarchive: Add lz4, fix up EAPI6, fix test, minor formatting
3.2.1-r2 makes bsdcat and bsdcpio the default for BSD must like bsdtar
already is.
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-arch/libarchive/files')
-rw-r--r-- | app-arch/libarchive/files/libarchive-3.2.1-fix-tests-gnu99.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-arch/libarchive/files/libarchive-3.2.1-fix-tests-gnu99.patch b/app-arch/libarchive/files/libarchive-3.2.1-fix-tests-gnu99.patch new file mode 100644 index 000000000000..ec249c34102b --- /dev/null +++ b/app-arch/libarchive/files/libarchive-3.2.1-fix-tests-gnu99.patch @@ -0,0 +1,47 @@ +From 11f5b75c9ba12ba73b5fa34dc9d285983d99c01b Mon Sep 17 00:00:00 2001 +From: Joerg Sonnenberger <joerg@bec.de> +Date: Wed, 22 Jun 2016 23:09:27 +0200 +Subject: [PATCH] Avoid use of C99 for-scope declarations to fix issue #729. + +--- + libarchive/test/test_write_format_gnutar_filenames.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/libarchive/test/test_write_format_gnutar_filenames.c b/libarchive/test/test_write_format_gnutar_filenames.c +index 38b4ca9..26457d3 100644 +--- a/libarchive/test/test_write_format_gnutar_filenames.c ++++ b/libarchive/test/test_write_format_gnutar_filenames.c +@@ -42,6 +42,7 @@ DEFINE_TEST(test_write_format_gnutar_filenames) + struct archive_entry *ae, *template; + struct archive *a; + size_t used; ++ int i; + + buff = malloc(buffsize); /* million bytes of work area */ + assert(buff != NULL); +@@ -55,7 +56,7 @@ DEFINE_TEST(test_write_format_gnutar_filenames) + archive_entry_set_mode(template, S_IFREG | 0755); + archive_entry_set_size(template, 8); + +- for (int i = 0; i < 2000; ++i) { ++ for (i = 0; i < 2000; ++i) { + filename[i] = 'a'; + filename[i + 1] = '\0'; + archive_entry_copy_pathname(template, filename); +@@ -97,6 +98,7 @@ DEFINE_TEST(test_write_format_gnutar_linknames) + struct archive_entry *ae, *template; + struct archive *a; + size_t used; ++ int i; + + buff = malloc(buffsize); /* million bytes of work area */ + assert(buff != NULL); +@@ -110,7 +112,7 @@ DEFINE_TEST(test_write_format_gnutar_linknames) + archive_entry_set_mode(template, S_IFLNK | 0755); + archive_entry_copy_pathname(template, "link"); + +- for (int i = 0; i < 2000; ++i) { ++ for (i = 0; i < 2000; ++i) { + filename[i] = 'a'; + filename[i + 1] = '\0'; + archive_entry_copy_symlink(template, filename); |