libarchive-static 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/extconf.rb +2 -9
- data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +6 -6
- data/ext/libarchive-0.1.1/ext/archive_read_support_compression.o +0 -0
- data/ext/libarchive-0.1.1/ext/archive_read_support_format.o +0 -0
- data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +1 -1
- data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.o +0 -0
- data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +5 -5
- data/ext/libarchive-0.1.1/ext/archive_write_set_compression.o +0 -0
- data/ext/libarchive-0.1.1/ext/config.h +23 -0
- data/ext/libarchive-0.1.1/ext/config.log +230 -0
- data/ext/libarchive-0.1.1/ext/config.status +671 -0
- data/ext/libarchive-0.1.1/ext/libarchive.c +1 -1
- data/ext/libarchive-0.1.1/ext/libarchive.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_archive.c +7 -7
- data/ext/libarchive-0.1.1/ext/libarchive_archive.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_entry.c +6 -0
- data/ext/libarchive-0.1.1/ext/libarchive_entry.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_reader.c +6 -4
- data/ext/libarchive-0.1.1/ext/libarchive_reader.o +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_ruby.so +0 -0
- data/ext/libarchive-0.1.1/ext/libarchive_win32.h +1 -1
- data/ext/libarchive-0.1.1/ext/libarchive_writer.c +2 -2
- data/ext/libarchive-0.1.1/ext/libarchive_writer.o +0 -0
- data/ext/libarchive-3.6.2/Makefile.in +16892 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_append_compile_flags.m4 +67 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_append_flag.m4 +71 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_check_compile_flag.m4 +74 -0
- data/ext/libarchive-3.6.2/build/autoconf/ax_require_defined.m4 +37 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/check_stdcall_func.m4 +0 -0
- data/ext/libarchive-3.6.2/build/autoconf/compile +348 -0
- data/ext/libarchive-3.6.2/build/autoconf/config.guess +1754 -0
- data/ext/libarchive-3.6.2/build/autoconf/config.rpath +696 -0
- data/ext/libarchive-3.6.2/build/autoconf/config.sub +1890 -0
- data/ext/libarchive-3.6.2/build/autoconf/depcomp +791 -0
- data/ext/libarchive-3.6.2/build/autoconf/iconv.m4 +271 -0
- data/ext/libarchive-3.6.2/build/autoconf/install-sh +541 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/la_uid_t.m4 +0 -0
- data/ext/libarchive-3.6.2/build/autoconf/lib-ld.m4 +109 -0
- data/ext/libarchive-3.6.2/build/autoconf/lib-link.m4 +777 -0
- data/ext/libarchive-3.6.2/build/autoconf/lib-prefix.m4 +224 -0
- data/ext/libarchive-3.6.2/build/autoconf/ltmain.sh +11251 -0
- data/ext/libarchive-3.6.2/build/autoconf/m4_ax_compile_check_sizeof.m4 +115 -0
- data/ext/libarchive-3.6.2/build/autoconf/missing +215 -0
- data/ext/libarchive-3.6.2/build/autoconf/test-driver +153 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/pkgconfig/libarchive.pc.in +4 -1
- data/ext/libarchive-3.6.2/config.h.in +1504 -0
- data/ext/libarchive-3.6.2/configure +25558 -0
- data/ext/libarchive-3.6.2/libarchive/archive.h +1212 -0
- data/ext/libarchive-3.6.2/libarchive/archive_acl.c +2097 -0
- data/ext/libarchive-3.6.2/libarchive/archive_acl_private.h +83 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2.h +197 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2_impl.h +161 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2s_ref.c +369 -0
- data/ext/libarchive-3.6.2/libarchive/archive_blake2sp_ref.c +361 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_check_magic.c +63 -22
- data/ext/libarchive-3.6.2/libarchive/archive_cmdline.c +227 -0
- data/ext/libarchive-3.6.2/libarchive/archive_cmdline_private.h +47 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_crc32.h +17 -0
- data/ext/libarchive-3.6.2/libarchive/archive_cryptor.c +534 -0
- data/ext/libarchive-3.6.2/libarchive/archive_cryptor_private.h +188 -0
- data/ext/libarchive-3.6.2/libarchive/archive_digest.c +1505 -0
- data/ext/libarchive-3.6.2/libarchive/archive_digest_private.h +416 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_darwin.c +559 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_freebsd.c +712 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_linux.c +760 -0
- data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_sunos.c +824 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_endian.h +48 -15
- data/ext/libarchive-3.6.2/libarchive/archive_entry.c +2149 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry.h +305 -106
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_bhfi.c +5 -4
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_stat.c +9 -3
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_link_resolver.c +104 -62
- data/ext/libarchive-3.6.2/libarchive/archive_entry_locale.h +92 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_private.h +65 -49
- data/ext/libarchive-3.6.2/libarchive/archive_entry_sparse.c +156 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_stat.c +6 -6
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_strmode.c +1 -1
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_xattr.c +4 -6
- data/ext/libarchive-3.6.2/libarchive/archive_getdate.c +1165 -0
- data/ext/libarchive-3.6.2/libarchive/archive_getdate.h +39 -0
- data/ext/libarchive-3.6.2/libarchive/archive_hmac.c +334 -0
- data/ext/libarchive-3.6.2/libarchive/archive_hmac_private.h +117 -0
- data/ext/libarchive-3.6.2/libarchive/archive_match.c +1875 -0
- data/ext/libarchive-3.6.2/libarchive/archive_openssl_evp_private.h +53 -0
- data/ext/libarchive-3.6.2/libarchive/archive_openssl_hmac_private.h +54 -0
- data/ext/libarchive-3.6.2/libarchive/archive_options.c +218 -0
- data/ext/libarchive-3.6.2/libarchive/archive_options_private.h +51 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.c +337 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.h +49 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.c +463 -0
- data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.h +52 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_platform.h +77 -9
- data/ext/libarchive-3.6.2/libarchive/archive_platform_acl.h +55 -0
- data/ext/libarchive-3.6.2/libarchive/archive_platform_xattr.h +47 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd7.c +1168 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd7_private.h +119 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd8.c +1287 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd8_private.h +148 -0
- data/ext/libarchive-3.6.2/libarchive/archive_ppmd_private.h +151 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_private.h +74 -18
- data/ext/libarchive-3.6.2/libarchive/archive_random.c +272 -0
- data/ext/libarchive-3.6.2/libarchive/archive_random_private.h +36 -0
- data/ext/libarchive-3.6.2/libarchive/archive_rb.c +709 -0
- data/ext/libarchive-3.6.2/libarchive/archive_rb.h +113 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read.c +1756 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_add_passphrase.c +190 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_append_filter.c +204 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_data_into_fd.c +64 -18
- data/ext/libarchive-3.6.2/libarchive/archive_read_disk_entry_from_file.c +1086 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_disk_posix.c +2732 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_private.h +40 -4
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_set_standard_lookup.c +21 -11
- data/ext/libarchive-3.6.2/libarchive/archive_read_disk_windows.c +2479 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_extract.c +60 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_extract.c → libarchive-3.6.2/libarchive/archive_read_extract2.c} +34 -61
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_fd.c +70 -49
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_file.c +38 -23
- data/ext/libarchive-3.6.2/libarchive/archive_read_open_filename.c +586 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_memory.c +58 -28
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_private.h +127 -59
- data/ext/libarchive-3.6.2/libarchive/archive_read_set_format.c +117 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_set_options.c +133 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_all.c → libarchive-3.6.2/libarchive/archive_read_support_filter_all.c} +35 -10
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_by_code.c +83 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c → libarchive-3.6.2/libarchive/archive_read_support_filter_bzip2.c} +38 -26
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c → libarchive-3.6.2/libarchive/archive_read_support_filter_compress.c} +52 -44
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_grzip.c +112 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c → libarchive-3.6.2/libarchive/archive_read_support_filter_gzip.c} +108 -37
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lrzip.c +122 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lz4.c +742 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lzop.c +499 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_none.c → libarchive-3.6.2/libarchive/archive_read_support_filter_none.c} +15 -3
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_program.c → libarchive-3.6.2/libarchive/archive_read_support_filter_program.c} +114 -77
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c → libarchive-3.6.2/libarchive/archive_read_support_filter_rpm.c} +31 -31
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c → libarchive-3.6.2/libarchive/archive_read_support_filter_uu.c} +141 -85
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c → libarchive-3.6.2/libarchive/archive_read_support_filter_xz.c} +369 -284
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_zstd.c +297 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_7zip.c +3900 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_all.c +89 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_ar.c +126 -72
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_by_code.c +92 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cab.c +3228 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cpio.c +1104 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_empty.c +14 -11
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_iso9660.c +990 -541
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_lha.c +2916 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_mtree.c +2150 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar.c +3797 -0
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar5.c +4251 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_raw.c +38 -31
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_tar.c +1157 -629
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_warc.c +848 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_xar.c +439 -258
- data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_zip.c +4270 -0
- data/ext/libarchive-3.6.2/libarchive/archive_string.c +4240 -0
- data/ext/libarchive-3.6.2/libarchive/archive_string.h +243 -0
- data/ext/libarchive-3.6.2/libarchive/archive_string_composition.h +2292 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_string_sprintf.c +44 -16
- data/ext/libarchive-3.6.2/libarchive/archive_util.c +655 -0
- data/ext/libarchive-3.6.2/libarchive/archive_version_details.c +151 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_virtual.c +85 -16
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.c +214 -541
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.h +74 -106
- data/ext/libarchive-3.6.2/libarchive/archive_write.c +828 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter.c +72 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_b64encode.c +304 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_by_name.c +77 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_bzip2.c +401 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c → libarchive-3.6.2/libarchive/archive_write_add_filter_compress.c} +86 -131
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_grzip.c +135 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_gzip.c +442 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lrzip.c +197 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lz4.c +700 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lzop.c +478 -0
- data/ext/{libarchive-2.8.4/libarchive/archive_read_support_format_all.c → libarchive-3.6.2/libarchive/archive_write_add_filter_none.c} +11 -11
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_program.c +391 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_uuencode.c +295 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_xz.c +545 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_zstd.c +418 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_disk_posix.c +4711 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_private.h +9 -2
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_set_standard_lookup.c +30 -29
- data/ext/libarchive-3.6.2/libarchive/archive_write_disk_windows.c +2842 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_fd.c +15 -10
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_file.c +15 -9
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_filename.c +128 -20
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_memory.c +7 -18
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_private.h +72 -29
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format.c +56 -3
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_7zip.c +2322 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ar.c +54 -34
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_by_name.c +20 -2
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio.c +11 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_binary.c +610 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_newc.c +457 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_odc.c +500 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_filter_by_ext.c +142 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_gnutar.c +755 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_iso9660.c +8165 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_mtree.c +2217 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_pax.c +1049 -387
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_private.h +42 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_raw.c +125 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_shar.c +62 -47
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ustar.c +279 -108
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_v7tar.c +638 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_warc.c +453 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_xar.c +3259 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_zip.c +1704 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_options.c +130 -0
- data/ext/libarchive-3.6.2/libarchive/archive_write_set_passphrase.c +95 -0
- data/ext/libarchive-3.6.2/libarchive/archive_xxhash.h +48 -0
- data/ext/libarchive-3.6.2/libarchive/config_freebsd.h +271 -0
- data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/filter_fork.h +10 -5
- data/ext/{libarchive-2.8.4/libarchive/filter_fork.c → libarchive-3.6.2/libarchive/filter_fork_posix.c} +98 -19
- data/ext/libarchive-3.6.2/libarchive/filter_fork_windows.c +236 -0
- data/ext/libarchive-3.6.2/libarchive/xxhash.c +525 -0
- data/ext/libarchive-static-makefile +144 -80
- data/ext/libarchive-static-wrapper-makefile +1 -1
- data/ext/zlib-1.2.13/Makefile.in +404 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/adler32.c +51 -34
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/compress.c +27 -21
- data/ext/zlib-1.2.13/configure +922 -0
- data/ext/zlib-1.2.13/crc32.c +1125 -0
- data/ext/zlib-1.2.13/crc32.h +9446 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.c +842 -459
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.h +37 -33
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzclose.c +0 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzguts.h +103 -16
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzlib.c +155 -53
- data/ext/zlib-1.2.13/gzread.c +650 -0
- data/ext/zlib-1.2.13/gzwrite.c +677 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/infback.c +24 -12
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.c +49 -66
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.h +0 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffixed.h +3 -3
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.c +209 -94
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.h +9 -5
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.c +24 -50
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.h +1 -1
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.c +135 -198
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.h +0 -0
- data/ext/zlib-1.2.13/uncompr.c +93 -0
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zconf.h +182 -63
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zlib.h +617 -295
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.c +50 -41
- data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.h +83 -82
- metadata +241 -133
- data/ext/libarchive-0.1.1/libarchive.c +0 -1762
- data/ext/libarchive-2.8.4/Makefile.in +0 -7076
- data/ext/libarchive-2.8.4/build/autoconf/compile +0 -143
- data/ext/libarchive-2.8.4/build/autoconf/config.guess +0 -1502
- data/ext/libarchive-2.8.4/build/autoconf/config.sub +0 -1708
- data/ext/libarchive-2.8.4/build/autoconf/depcomp +0 -630
- data/ext/libarchive-2.8.4/build/autoconf/install-sh +0 -291
- data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +0 -8406
- data/ext/libarchive-2.8.4/build/autoconf/missing +0 -376
- data/ext/libarchive-2.8.4/config.h.in +0 -772
- data/ext/libarchive-2.8.4/configure +0 -17916
- data/ext/libarchive-2.8.4/libarchive/archive.h +0 -741
- data/ext/libarchive-2.8.4/libarchive/archive_entry.c +0 -2202
- data/ext/libarchive-2.8.4/libarchive/archive_hash.h +0 -281
- data/ext/libarchive-2.8.4/libarchive/archive_read.c +0 -1249
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +0 -198
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +0 -570
- data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +0 -272
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +0 -777
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +0 -1304
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +0 -903
- data/ext/libarchive-2.8.4/libarchive/archive_string.c +0 -453
- data/ext/libarchive-2.8.4/libarchive/archive_string.h +0 -148
- data/ext/libarchive-2.8.4/libarchive/archive_util.c +0 -391
- data/ext/libarchive-2.8.4/libarchive/archive_write.c +0 -466
- data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +0 -2628
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +0 -408
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +0 -477
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +0 -257
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +0 -347
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +0 -438
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +0 -344
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +0 -295
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +0 -1050
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +0 -667
- data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +0 -154
- data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +0 -113
- data/ext/zlib-1.2.5/Makefile.in +0 -257
- data/ext/zlib-1.2.5/configure +0 -596
- data/ext/zlib-1.2.5/crc32.c +0 -442
- data/ext/zlib-1.2.5/crc32.h +0 -441
- data/ext/zlib-1.2.5/example.c +0 -565
- data/ext/zlib-1.2.5/gzread.c +0 -653
- data/ext/zlib-1.2.5/gzwrite.c +0 -531
- data/ext/zlib-1.2.5/minigzip.c +0 -440
- data/ext/zlib-1.2.5/uncompr.c +0 -59
@@ -0,0 +1,115 @@
|
|
1
|
+
# ============================================================================
|
2
|
+
# https://www.gnu.org/software/autoconf-archive/ax_compile_check_sizeof.html
|
3
|
+
# ============================================================================
|
4
|
+
#
|
5
|
+
# SYNOPSIS
|
6
|
+
#
|
7
|
+
# AX_COMPILE_CHECK_SIZEOF(TYPE [, HEADERS [, EXTRA_SIZES...]])
|
8
|
+
#
|
9
|
+
# DESCRIPTION
|
10
|
+
#
|
11
|
+
# This macro checks for the size of TYPE using compile checks, not run
|
12
|
+
# checks. You can supply extra HEADERS to look into. the check will cycle
|
13
|
+
# through 1 2 4 8 16 and any EXTRA_SIZES the user supplies. If a match is
|
14
|
+
# found, it will #define SIZEOF_`TYPE' to that value. Otherwise it will
|
15
|
+
# emit a configure time error indicating the size of the type could not be
|
16
|
+
# determined.
|
17
|
+
#
|
18
|
+
# The trick is that C will not allow duplicate case labels. While this is
|
19
|
+
# valid C code:
|
20
|
+
#
|
21
|
+
# switch (0) case 0: case 1:;
|
22
|
+
#
|
23
|
+
# The following is not:
|
24
|
+
#
|
25
|
+
# switch (0) case 0: case 0:;
|
26
|
+
#
|
27
|
+
# Thus, the AC_COMPILE_IFELSE will fail if the currently tried size does
|
28
|
+
# not match.
|
29
|
+
#
|
30
|
+
# Here is an example skeleton configure.in script, demonstrating the
|
31
|
+
# macro's usage:
|
32
|
+
#
|
33
|
+
# AC_PROG_CC
|
34
|
+
# AC_CHECK_HEADERS(stddef.h unistd.h)
|
35
|
+
# AC_TYPE_SIZE_T
|
36
|
+
# AC_CHECK_TYPE(ssize_t, int)
|
37
|
+
#
|
38
|
+
# headers='#ifdef HAVE_STDDEF_H
|
39
|
+
# #include <stddef.h>
|
40
|
+
# #endif
|
41
|
+
# #ifdef HAVE_UNISTD_H
|
42
|
+
# #include <unistd.h>
|
43
|
+
# #endif
|
44
|
+
# '
|
45
|
+
#
|
46
|
+
# AX_COMPILE_CHECK_SIZEOF(char)
|
47
|
+
# AX_COMPILE_CHECK_SIZEOF(short)
|
48
|
+
# AX_COMPILE_CHECK_SIZEOF(int)
|
49
|
+
# AX_COMPILE_CHECK_SIZEOF(long)
|
50
|
+
# AX_COMPILE_CHECK_SIZEOF(unsigned char *)
|
51
|
+
# AX_COMPILE_CHECK_SIZEOF(void *)
|
52
|
+
# AX_COMPILE_CHECK_SIZEOF(size_t, $headers)
|
53
|
+
# AX_COMPILE_CHECK_SIZEOF(ssize_t, $headers)
|
54
|
+
# AX_COMPILE_CHECK_SIZEOF(ptrdiff_t, $headers)
|
55
|
+
# AX_COMPILE_CHECK_SIZEOF(off_t, $headers)
|
56
|
+
#
|
57
|
+
# LICENSE
|
58
|
+
#
|
59
|
+
# Copyright (c) 2008 Kaveh Ghazi <ghazi@caip.rutgers.edu>
|
60
|
+
# Copyright (c) 2017 Reini Urban <rurban@cpan.org>
|
61
|
+
#
|
62
|
+
# This program is free software: you can redistribute it and/or modify it
|
63
|
+
# under the terms of the GNU General Public License as published by the
|
64
|
+
# Free Software Foundation, either version 3 of the License, or (at your
|
65
|
+
# option) any later version.
|
66
|
+
#
|
67
|
+
# This program is distributed in the hope that it will be useful, but
|
68
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
69
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
70
|
+
# Public License for more details.
|
71
|
+
#
|
72
|
+
# You should have received a copy of the GNU General Public License along
|
73
|
+
# with this program. If not, see <https://www.gnu.org/licenses/>.
|
74
|
+
#
|
75
|
+
# As a special exception, the respective Autoconf Macro's copyright owner
|
76
|
+
# gives unlimited permission to copy, distribute and modify the configure
|
77
|
+
# scripts that are the output of Autoconf when processing the Macro. You
|
78
|
+
# need not follow the terms of the GNU General Public License when using
|
79
|
+
# or distributing such scripts, even though portions of the text of the
|
80
|
+
# Macro appear in them. The GNU General Public License (GPL) does govern
|
81
|
+
# all other use of the material that constitutes the Autoconf Macro.
|
82
|
+
#
|
83
|
+
# This special exception to the GPL applies to versions of the Autoconf
|
84
|
+
# Macro released by the Autoconf Archive. When you make and distribute a
|
85
|
+
# modified version of the Autoconf Macro, you may extend this special
|
86
|
+
# exception to the GPL to apply to your modified version as well.
|
87
|
+
|
88
|
+
#serial 8
|
89
|
+
|
90
|
+
AU_ALIAS([AC_COMPILE_CHECK_SIZEOF], [AX_COMPILE_CHECK_SIZEOF])
|
91
|
+
AC_DEFUN([AX_COMPILE_CHECK_SIZEOF],
|
92
|
+
[changequote(<<, >>)dnl
|
93
|
+
dnl The name to #define.
|
94
|
+
define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
|
95
|
+
dnl The cache variable name.
|
96
|
+
define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl
|
97
|
+
changequote([, ])dnl
|
98
|
+
AC_MSG_CHECKING(size of $1)
|
99
|
+
AC_CACHE_VAL(AC_CV_NAME,
|
100
|
+
[for ac_size in 4 8 1 2 16 $3 ; do # List sizes in rough order of prevalence.
|
101
|
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
102
|
+
#include <sys/types.h>
|
103
|
+
$2
|
104
|
+
]], [[switch (0) case 0: case (sizeof ($1) == $ac_size):;]])], [AC_CV_NAME=$ac_size])
|
105
|
+
if test x$AC_CV_NAME != x ; then break; fi
|
106
|
+
done
|
107
|
+
])
|
108
|
+
if test x$AC_CV_NAME = x ; then
|
109
|
+
AC_MSG_ERROR([cannot determine a size for $1])
|
110
|
+
fi
|
111
|
+
AC_MSG_RESULT($AC_CV_NAME)
|
112
|
+
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [The number of bytes in type $1])
|
113
|
+
undefine([AC_TYPE_NAME])dnl
|
114
|
+
undefine([AC_CV_NAME])dnl
|
115
|
+
])
|
@@ -0,0 +1,215 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
# Common wrapper for a few potentially missing GNU programs.
|
3
|
+
|
4
|
+
scriptversion=2018-03-07.03; # UTC
|
5
|
+
|
6
|
+
# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
7
|
+
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
8
|
+
|
9
|
+
# This program is free software; you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation; either version 2, or (at your option)
|
12
|
+
# any later version.
|
13
|
+
|
14
|
+
# This program is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU General Public License for more details.
|
18
|
+
|
19
|
+
# You should have received a copy of the GNU General Public License
|
20
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
21
|
+
|
22
|
+
# As a special exception to the GNU General Public License, if you
|
23
|
+
# distribute this file as part of a program that contains a
|
24
|
+
# configuration script generated by Autoconf, you may include it under
|
25
|
+
# the same distribution terms that you use for the rest of that program.
|
26
|
+
|
27
|
+
if test $# -eq 0; then
|
28
|
+
echo 1>&2 "Try '$0 --help' for more information"
|
29
|
+
exit 1
|
30
|
+
fi
|
31
|
+
|
32
|
+
case $1 in
|
33
|
+
|
34
|
+
--is-lightweight)
|
35
|
+
# Used by our autoconf macros to check whether the available missing
|
36
|
+
# script is modern enough.
|
37
|
+
exit 0
|
38
|
+
;;
|
39
|
+
|
40
|
+
--run)
|
41
|
+
# Back-compat with the calling convention used by older automake.
|
42
|
+
shift
|
43
|
+
;;
|
44
|
+
|
45
|
+
-h|--h|--he|--hel|--help)
|
46
|
+
echo "\
|
47
|
+
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
48
|
+
|
49
|
+
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
|
50
|
+
to PROGRAM being missing or too old.
|
51
|
+
|
52
|
+
Options:
|
53
|
+
-h, --help display this help and exit
|
54
|
+
-v, --version output version information and exit
|
55
|
+
|
56
|
+
Supported PROGRAM values:
|
57
|
+
aclocal autoconf autoheader autom4te automake makeinfo
|
58
|
+
bison yacc flex lex help2man
|
59
|
+
|
60
|
+
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
|
61
|
+
'g' are ignored when checking the name.
|
62
|
+
|
63
|
+
Send bug reports to <bug-automake@gnu.org>."
|
64
|
+
exit $?
|
65
|
+
;;
|
66
|
+
|
67
|
+
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
68
|
+
echo "missing $scriptversion (GNU Automake)"
|
69
|
+
exit $?
|
70
|
+
;;
|
71
|
+
|
72
|
+
-*)
|
73
|
+
echo 1>&2 "$0: unknown '$1' option"
|
74
|
+
echo 1>&2 "Try '$0 --help' for more information"
|
75
|
+
exit 1
|
76
|
+
;;
|
77
|
+
|
78
|
+
esac
|
79
|
+
|
80
|
+
# Run the given program, remember its exit status.
|
81
|
+
"$@"; st=$?
|
82
|
+
|
83
|
+
# If it succeeded, we are done.
|
84
|
+
test $st -eq 0 && exit 0
|
85
|
+
|
86
|
+
# Also exit now if we it failed (or wasn't found), and '--version' was
|
87
|
+
# passed; such an option is passed most likely to detect whether the
|
88
|
+
# program is present and works.
|
89
|
+
case $2 in --version|--help) exit $st;; esac
|
90
|
+
|
91
|
+
# Exit code 63 means version mismatch. This often happens when the user
|
92
|
+
# tries to use an ancient version of a tool on a file that requires a
|
93
|
+
# minimum version.
|
94
|
+
if test $st -eq 63; then
|
95
|
+
msg="probably too old"
|
96
|
+
elif test $st -eq 127; then
|
97
|
+
# Program was missing.
|
98
|
+
msg="missing on your system"
|
99
|
+
else
|
100
|
+
# Program was found and executed, but failed. Give up.
|
101
|
+
exit $st
|
102
|
+
fi
|
103
|
+
|
104
|
+
perl_URL=https://www.perl.org/
|
105
|
+
flex_URL=https://github.com/westes/flex
|
106
|
+
gnu_software_URL=https://www.gnu.org/software
|
107
|
+
|
108
|
+
program_details ()
|
109
|
+
{
|
110
|
+
case $1 in
|
111
|
+
aclocal|automake)
|
112
|
+
echo "The '$1' program is part of the GNU Automake package:"
|
113
|
+
echo "<$gnu_software_URL/automake>"
|
114
|
+
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
|
115
|
+
echo "<$gnu_software_URL/autoconf>"
|
116
|
+
echo "<$gnu_software_URL/m4/>"
|
117
|
+
echo "<$perl_URL>"
|
118
|
+
;;
|
119
|
+
autoconf|autom4te|autoheader)
|
120
|
+
echo "The '$1' program is part of the GNU Autoconf package:"
|
121
|
+
echo "<$gnu_software_URL/autoconf/>"
|
122
|
+
echo "It also requires GNU m4 and Perl in order to run:"
|
123
|
+
echo "<$gnu_software_URL/m4/>"
|
124
|
+
echo "<$perl_URL>"
|
125
|
+
;;
|
126
|
+
esac
|
127
|
+
}
|
128
|
+
|
129
|
+
give_advice ()
|
130
|
+
{
|
131
|
+
# Normalize program name to check for.
|
132
|
+
normalized_program=`echo "$1" | sed '
|
133
|
+
s/^gnu-//; t
|
134
|
+
s/^gnu//; t
|
135
|
+
s/^g//; t'`
|
136
|
+
|
137
|
+
printf '%s\n' "'$1' is $msg."
|
138
|
+
|
139
|
+
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
|
140
|
+
case $normalized_program in
|
141
|
+
autoconf*)
|
142
|
+
echo "You should only need it if you modified 'configure.ac',"
|
143
|
+
echo "or m4 files included by it."
|
144
|
+
program_details 'autoconf'
|
145
|
+
;;
|
146
|
+
autoheader*)
|
147
|
+
echo "You should only need it if you modified 'acconfig.h' or"
|
148
|
+
echo "$configure_deps."
|
149
|
+
program_details 'autoheader'
|
150
|
+
;;
|
151
|
+
automake*)
|
152
|
+
echo "You should only need it if you modified 'Makefile.am' or"
|
153
|
+
echo "$configure_deps."
|
154
|
+
program_details 'automake'
|
155
|
+
;;
|
156
|
+
aclocal*)
|
157
|
+
echo "You should only need it if you modified 'acinclude.m4' or"
|
158
|
+
echo "$configure_deps."
|
159
|
+
program_details 'aclocal'
|
160
|
+
;;
|
161
|
+
autom4te*)
|
162
|
+
echo "You might have modified some maintainer files that require"
|
163
|
+
echo "the 'autom4te' program to be rebuilt."
|
164
|
+
program_details 'autom4te'
|
165
|
+
;;
|
166
|
+
bison*|yacc*)
|
167
|
+
echo "You should only need it if you modified a '.y' file."
|
168
|
+
echo "You may want to install the GNU Bison package:"
|
169
|
+
echo "<$gnu_software_URL/bison/>"
|
170
|
+
;;
|
171
|
+
lex*|flex*)
|
172
|
+
echo "You should only need it if you modified a '.l' file."
|
173
|
+
echo "You may want to install the Fast Lexical Analyzer package:"
|
174
|
+
echo "<$flex_URL>"
|
175
|
+
;;
|
176
|
+
help2man*)
|
177
|
+
echo "You should only need it if you modified a dependency" \
|
178
|
+
"of a man page."
|
179
|
+
echo "You may want to install the GNU Help2man package:"
|
180
|
+
echo "<$gnu_software_URL/help2man/>"
|
181
|
+
;;
|
182
|
+
makeinfo*)
|
183
|
+
echo "You should only need it if you modified a '.texi' file, or"
|
184
|
+
echo "any other file indirectly affecting the aspect of the manual."
|
185
|
+
echo "You might want to install the Texinfo package:"
|
186
|
+
echo "<$gnu_software_URL/texinfo/>"
|
187
|
+
echo "The spurious makeinfo call might also be the consequence of"
|
188
|
+
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
|
189
|
+
echo "want to install GNU make:"
|
190
|
+
echo "<$gnu_software_URL/make/>"
|
191
|
+
;;
|
192
|
+
*)
|
193
|
+
echo "You might have modified some files without having the proper"
|
194
|
+
echo "tools for further handling them. Check the 'README' file, it"
|
195
|
+
echo "often tells you about the needed prerequisites for installing"
|
196
|
+
echo "this package. You may also peek at any GNU archive site, in"
|
197
|
+
echo "case some other package contains this missing '$1' program."
|
198
|
+
;;
|
199
|
+
esac
|
200
|
+
}
|
201
|
+
|
202
|
+
give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
203
|
+
-e '2,$s/^/ /' >&2
|
204
|
+
|
205
|
+
# Propagate the correct exit status (expected to be 127 for a program
|
206
|
+
# not found, 63 for a program that failed due to version mismatch).
|
207
|
+
exit $st
|
208
|
+
|
209
|
+
# Local variables:
|
210
|
+
# eval: (add-hook 'before-save-hook 'time-stamp)
|
211
|
+
# time-stamp-start: "scriptversion="
|
212
|
+
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
213
|
+
# time-stamp-time-zone: "UTC0"
|
214
|
+
# time-stamp-end: "; # UTC"
|
215
|
+
# End:
|
@@ -0,0 +1,153 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
# test-driver - basic testsuite driver script.
|
3
|
+
|
4
|
+
scriptversion=2018-03-07.03; # UTC
|
5
|
+
|
6
|
+
# Copyright (C) 2011-2021 Free Software Foundation, Inc.
|
7
|
+
#
|
8
|
+
# This program is free software; you can redistribute it and/or modify
|
9
|
+
# it under the terms of the GNU General Public License as published by
|
10
|
+
# the Free Software Foundation; either version 2, or (at your option)
|
11
|
+
# any later version.
|
12
|
+
#
|
13
|
+
# This program is distributed in the hope that it will be useful,
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
+
# GNU General Public License for more details.
|
17
|
+
#
|
18
|
+
# You should have received a copy of the GNU General Public License
|
19
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
20
|
+
|
21
|
+
# As a special exception to the GNU General Public License, if you
|
22
|
+
# distribute this file as part of a program that contains a
|
23
|
+
# configuration script generated by Autoconf, you may include it under
|
24
|
+
# the same distribution terms that you use for the rest of that program.
|
25
|
+
|
26
|
+
# This file is maintained in Automake, please report
|
27
|
+
# bugs to <bug-automake@gnu.org> or send patches to
|
28
|
+
# <automake-patches@gnu.org>.
|
29
|
+
|
30
|
+
# Make unconditional expansion of undefined variables an error. This
|
31
|
+
# helps a lot in preventing typo-related bugs.
|
32
|
+
set -u
|
33
|
+
|
34
|
+
usage_error ()
|
35
|
+
{
|
36
|
+
echo "$0: $*" >&2
|
37
|
+
print_usage >&2
|
38
|
+
exit 2
|
39
|
+
}
|
40
|
+
|
41
|
+
print_usage ()
|
42
|
+
{
|
43
|
+
cat <<END
|
44
|
+
Usage:
|
45
|
+
test-driver --test-name NAME --log-file PATH --trs-file PATH
|
46
|
+
[--expect-failure {yes|no}] [--color-tests {yes|no}]
|
47
|
+
[--enable-hard-errors {yes|no}] [--]
|
48
|
+
TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
|
49
|
+
|
50
|
+
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
|
51
|
+
See the GNU Automake documentation for information.
|
52
|
+
END
|
53
|
+
}
|
54
|
+
|
55
|
+
test_name= # Used for reporting.
|
56
|
+
log_file= # Where to save the output of the test script.
|
57
|
+
trs_file= # Where to save the metadata of the test run.
|
58
|
+
expect_failure=no
|
59
|
+
color_tests=no
|
60
|
+
enable_hard_errors=yes
|
61
|
+
while test $# -gt 0; do
|
62
|
+
case $1 in
|
63
|
+
--help) print_usage; exit $?;;
|
64
|
+
--version) echo "test-driver $scriptversion"; exit $?;;
|
65
|
+
--test-name) test_name=$2; shift;;
|
66
|
+
--log-file) log_file=$2; shift;;
|
67
|
+
--trs-file) trs_file=$2; shift;;
|
68
|
+
--color-tests) color_tests=$2; shift;;
|
69
|
+
--expect-failure) expect_failure=$2; shift;;
|
70
|
+
--enable-hard-errors) enable_hard_errors=$2; shift;;
|
71
|
+
--) shift; break;;
|
72
|
+
-*) usage_error "invalid option: '$1'";;
|
73
|
+
*) break;;
|
74
|
+
esac
|
75
|
+
shift
|
76
|
+
done
|
77
|
+
|
78
|
+
missing_opts=
|
79
|
+
test x"$test_name" = x && missing_opts="$missing_opts --test-name"
|
80
|
+
test x"$log_file" = x && missing_opts="$missing_opts --log-file"
|
81
|
+
test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
|
82
|
+
if test x"$missing_opts" != x; then
|
83
|
+
usage_error "the following mandatory options are missing:$missing_opts"
|
84
|
+
fi
|
85
|
+
|
86
|
+
if test $# -eq 0; then
|
87
|
+
usage_error "missing argument"
|
88
|
+
fi
|
89
|
+
|
90
|
+
if test $color_tests = yes; then
|
91
|
+
# Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
|
92
|
+
red='[0;31m' # Red.
|
93
|
+
grn='[0;32m' # Green.
|
94
|
+
lgn='[1;32m' # Light green.
|
95
|
+
blu='[1;34m' # Blue.
|
96
|
+
mgn='[0;35m' # Magenta.
|
97
|
+
std='[m' # No color.
|
98
|
+
else
|
99
|
+
red= grn= lgn= blu= mgn= std=
|
100
|
+
fi
|
101
|
+
|
102
|
+
do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
|
103
|
+
trap "st=129; $do_exit" 1
|
104
|
+
trap "st=130; $do_exit" 2
|
105
|
+
trap "st=141; $do_exit" 13
|
106
|
+
trap "st=143; $do_exit" 15
|
107
|
+
|
108
|
+
# Test script is run here. We create the file first, then append to it,
|
109
|
+
# to ameliorate tests themselves also writing to the log file. Our tests
|
110
|
+
# don't, but others can (automake bug#35762).
|
111
|
+
: >"$log_file"
|
112
|
+
"$@" >>"$log_file" 2>&1
|
113
|
+
estatus=$?
|
114
|
+
|
115
|
+
if test $enable_hard_errors = no && test $estatus -eq 99; then
|
116
|
+
tweaked_estatus=1
|
117
|
+
else
|
118
|
+
tweaked_estatus=$estatus
|
119
|
+
fi
|
120
|
+
|
121
|
+
case $tweaked_estatus:$expect_failure in
|
122
|
+
0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
|
123
|
+
0:*) col=$grn res=PASS recheck=no gcopy=no;;
|
124
|
+
77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
|
125
|
+
99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
|
126
|
+
*:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
|
127
|
+
*:*) col=$red res=FAIL recheck=yes gcopy=yes;;
|
128
|
+
esac
|
129
|
+
|
130
|
+
# Report the test outcome and exit status in the logs, so that one can
|
131
|
+
# know whether the test passed or failed simply by looking at the '.log'
|
132
|
+
# file, without the need of also peaking into the corresponding '.trs'
|
133
|
+
# file (automake bug#11814).
|
134
|
+
echo "$res $test_name (exit status: $estatus)" >>"$log_file"
|
135
|
+
|
136
|
+
# Report outcome to console.
|
137
|
+
echo "${col}${res}${std}: $test_name"
|
138
|
+
|
139
|
+
# Register the test result, and other relevant metadata.
|
140
|
+
echo ":test-result: $res" > $trs_file
|
141
|
+
echo ":global-test-result: $res" >> $trs_file
|
142
|
+
echo ":recheck: $recheck" >> $trs_file
|
143
|
+
echo ":copy-in-global-log: $gcopy" >> $trs_file
|
144
|
+
|
145
|
+
# Local Variables:
|
146
|
+
# mode: shell-script
|
147
|
+
# sh-indentation: 2
|
148
|
+
# eval: (add-hook 'before-save-hook 'time-stamp)
|
149
|
+
# time-stamp-start: "scriptversion="
|
150
|
+
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
151
|
+
# time-stamp-time-zone: "UTC0"
|
152
|
+
# time-stamp-end: "; # UTC"
|
153
|
+
# End:
|
@@ -6,5 +6,8 @@ includedir=@includedir@
|
|
6
6
|
Name: libarchive
|
7
7
|
Description: library that can create and read several streaming archive formats
|
8
8
|
Version: @VERSION@
|
9
|
-
|
9
|
+
Cflags: -I${includedir}
|
10
|
+
Cflags.private: -DLIBARCHIVE_STATIC
|
11
|
+
Libs: -L${libdir} -larchive
|
10
12
|
Libs.private: @LIBS@
|
13
|
+
Requires.private: @LIBSREQUIRED@
|