100 Commits
Author SHA1 Message Date
Andres Mejia a7d62141d9 Add more files autogenerated by automake build system to .gitignore. 2013-06-29 15:53:08 -04:00
Andres Mejia d767d79047 Fix test_archive_write_add_filter_by_name_lrzip test case.
There's some bug in lrzip where small files cannot use 2nd stage
compression.
See http://ck-hack.blogspot.com/2012/03/lrzip-0612.html?showComment=1337356929450#c3154145708572533571
2013-02-24 13:06:28 -05:00
Andres Mejia 21b21bc874 Allow the option to use no 2nd stage compression with lrzip. 2013-02-24 13:05:33 -05:00
Andres Mejia 1016793be6 Initialize buff to all zeros. 2013-02-24 12:54:44 -05:00
Andres Mejia 26629c191a Fix test cases for LZO write support.
Some architectures would produce a bigger archive for compression
level 9 than with the default level, possibly due to memory
limitations.
Fixes #303
2013-02-24 11:54:26 -05:00
Andres Mejia 014de9caa8 Revert "Allow adding extra CFLAGS with a configure option."
This reverts commit 64b3cefbdb.

Apparently, setting CFLAGS won't override the preset AM_CFLAGS
afterall. Not sure why this was giving me a problem before.
2013-02-22 21:44:17 -05:00
Andres Mejia 94031e4b1f Revert "Remove unnecessary use of arguments from AC_ARG_WITH([extra-cflags])."
This reverts commit 6a917dcd13.
2013-02-22 21:40:07 -05:00
Andres Mejia 6a917dcd13 Remove unnecessary use of arguments from AC_ARG_WITH([extra-cflags]). 2013-02-22 20:10:08 -05:00
Andres Mejia 64b3cefbdb Allow adding extra CFLAGS with a configure option.
This is a convenience option to pass in extra CFLAGS without overriding other
CFLAGS.
2013-02-22 20:02:40 -05:00
Andres Mejia 9feba94f1a Fix compile warning due to -Wcast-qual. 2013-02-22 20:01:42 -05:00
Andres Mejia 8607c1b532 Fix compiler warning from compiling with clang.
Assigning from a read-only variable to a regular variable will issue
a warning from clang.
2013-02-21 20:14:16 -05:00
Andres Mejia aefbb66fd6 Add test case for adding pathnames with no leading './' in mtree format.
libarchive should add the leading './' for such pathnames.
2013-02-21 19:51:22 -05:00
Andres Mejia 9caa49246c Test correct archive in test_extract_cpio_lzo test case. 2013-02-21 18:03:09 -05:00
Andres Mejia e567c8ccb4 Redo the strings sorting function, allocate/free memory as needed.
This is the normal implementation of quicksort.
2013-02-09 22:24:12 -05:00
Andres Mejia 258fd85505 Add a convenience function to sort a list of strings.
This is useful for sorting a list of filepaths to
multivolume RARs for example.
2013-02-09 19:13:53 -05:00
Andres Mejia 94a49b188a Reenable developer cflags. 2013-02-09 13:45:18 -05:00
Andres Mejia 19f23e191f Update NEWS file. 2013-02-09 12:17:57 -05:00
Andres Mejia f141b14d62 Remove developer cflags. 2013-02-09 12:11:03 -05:00
Andres Mejia d4766af8f5 Bump version to 3.1.2. 2013-02-08 23:00:28 -05:00
Andres Mejia 9d1508b430 Update libarchive website location. 2013-02-08 22:19:44 -05:00
Andres Mejia fdd5acfe8b Remove the 4th argument to CRYPTO_CHECK, it is no longer used. 2013-02-08 19:21:53 -05:00
Andres Mejia 045e5c5a44 Fix check for openssl on Windows.
OpenSSL libraries are named differently on Windows.
2013-02-08 16:15:37 -05:00
Andres Mejia 177cf35be0 Change crypto checks, find necessary library before corresponding checks are done.
LIBS are set back to original value if all crypto checks for that implementation
fail.
2013-02-08 15:00:05 -05:00
Andres Mejia ee59330932 Initialize buff, fix valgrind warning about use of uninitialized bytes. 2013-02-07 20:04:40 -05:00
Andres Mejia 4955ee15ec Merge pull request #36 from falconindy/manpages
build-sys: install all library manpages
2013-02-07 16:08:18 -08:00
Andres Mejia c71e70aee0 Cast comparison functions to __compar_fn_t if stdlib.h defines it. 2013-02-07 16:57:22 -05:00
Andres Mejia 97bf284c9b Fix warnings about redefinition of variables, use either sys/xattr.h or attr/xattr.h. 2013-02-07 16:57:22 -05:00
Andres Mejia c2b9d5f681 Fix warning about unused variable triggered when not building on WIN32. 2013-02-07 16:57:22 -05:00
Andres Mejia d16c4871c3 Model the pcre checks for the autotools build system to be similar as that used in the cmake build system. 2013-02-06 19:17:25 -05:00
Andres Mejia 5adb430072 Set WINVER default to use Windows 2000 API. 2013-02-05 19:04:37 -05:00
Andres Mejia da738640d2 Remove redundant defines of WINVER and _WIN32_WINNT from CRYPTO_CHECK_WIN.
Defines will be added from confdefs.h which is generated while configure script executes.
2013-02-05 18:23:53 -05:00
Andres Mejia 81e2d6dbce Provide better check for when libpcreposix is to be used for regex support.
On Windows, if the static libraries for PCRE are to be used and the PCRE static libs were built
using the mingw toolchain, libgcc must also be linked for resolving the symbol ___chkstk_ms.
2013-02-05 17:51:15 -05:00
Andres Mejia 18532ae712 Fix pcre checks to work on visual studio builds using pcre static libraries built using mingw toolchain. 2013-02-05 17:51:13 -05:00
Andres Mejia a01cfe6ef9 Add check for finding libgcc. 2013-02-05 17:51:11 -05:00
Andres Mejia b6a0e7088e Fix crypto check failures on Windows.
Checks will now be similar to checks done with autotools, where all defines are passed into a source file
along with the append source code to be checked. Also, once a library that support a crypto function is
found, all other checks for that crypto function will be skipped.
2013-02-03 22:05:34 -05:00
Andres Mejia c078ff5d9a Correct ordering of preferred library for crypto function in mingw builds. 2013-02-03 18:21:30 -05:00
Andres Mejia b900346ed5 Partially revert commit 58dc42aaea as this broke mingw builds. 2013-02-03 17:42:45 -05:00
Andres Mejia d57368cc3d Update the ordering of preferred libraries that provide crypto functions. 2013-02-03 17:40:00 -05:00
Andres Mejia 75479dd12b Make sure to check for Windows crypto functions for both mingw and cygwin. 2013-02-03 01:49:21 -05:00
Andres Mejia 6a864d8cec Add *.exe to .gitignore. 2013-02-03 01:44:33 -05:00
Andres Mejia 91717f721e Fix mingw build because of bad check for libpcreposix. 2013-02-03 01:42:59 -05:00
Andres Mejia 9797fb4e49 Make POSIX regex checks cleaner. 2013-02-02 23:46:44 -05:00
Andres Mejia 1a0f8974bd Use different check for libbz2 on Windows.
Windows port of libbz2 cannot use AC_CHECK_LIB.
See https://mail.gnome.org/archives/gnumeric-list/2008-November/msg00038.html for an explanation.
2013-02-02 22:56:39 -05:00
Andres Mejia 66648f8c3f Do not ignore errors when generating documentation.
This will ensure documentation is actually generated when building
release tarballs.
2013-02-02 18:43:09 -05:00
Andres Mejia 9fe06744b4 Use same check from cmake in autotools for POSIX regex support. 2013-02-02 01:23:40 -05:00
Andres Mejia 01c218d037 Change ordering of libraries to check for POSIX regular expression support.
New ordering is now LIBC followed by LIBREGEX followed by LIBPCREPOSIX.
2013-02-01 23:54:33 -05:00
Andres Mejia e8c8ec110b Use a string option to select what library is to support POSIX regular expressions.
AUTO means choose the first suitable library

The other options are LIBPCREPOSIX, LIBC, and LIBREGEX.
2013-02-01 23:41:45 -05:00
Andres Mejia 5b887a2197 Add Nettle include dir in check for nettle crypto functions. 2013-02-01 22:12:34 -05:00
Andres Mejia 5972a554b2 Use cmake module similar to FindLZMA.cmake to find Nettle include dir and library. 2013-02-01 22:10:15 -05:00
Andres Mejia 4b234e8bf8 Use a string option WINDOWS_VERSION to set WINVER and _WIN32_WINNT in Windows build.
This will allow using WINVER for VISTA and up so that crypto checks for SHA256, SHA384, and SHA512
will pass.
2013-02-01 18:46:30 -05:00
Andres Mejia 58dc42aaea Fix checks for crypto algorithms in Visual Studio builds.
Checks were failing because /SAFESEH was being used and because ssize_t was not defined.
2013-02-01 18:16:34 -05:00
Andres Mejia c13f706343 Fix test failures in libarchive built using Visual Studio.
Negating "sizeof" operator requires casting to appropriate primitive data type, in this commit, a cast to int.
2013-02-01 16:52:23 -05:00
Andres Mejia e3d1434212 Set use of /SAFESEH linker flag for all LIBARCHIVE_CHECK_C_SOURCE_* checks. 2013-02-01 16:52:21 -05:00
Andres Mejia d7bd02b6d8 Modify CHECK_C_SOURCE_* checks to fix builds using Visual Studio 12.
This is needed to fix build failures using Visual Studio 12 and using libraries such as liblzma which
have been built without the "/SAFESEH" linker flag (which is the usual case for libraries built using
the mingw toolchain).
2013-02-01 16:52:19 -05:00
Andres Mejia e136add09e Check that build did not succeed with WITHOUT_PCRE_STATIC before defining PCRE_STATIC. 2013-01-31 23:07:57 -05:00
Andres Mejia de7e765690 Add check for build without PCRE_STATIC defined. 2013-01-31 23:03:33 -05:00
Andres Mejia b89e4f7352 Redo check for pcreposix library.
Other check was broken, it did not set PCRE_STATIC when necessary nor did it add needed PCREPOSIX_LIBRARIES
for Visual Studio build.
2013-01-31 23:00:11 -05:00
Andres Mejia 192575157e Minor formatting change, no functional change. 2013-01-31 19:53:54 -05:00
Andres Mejia afd7f05750 Rename PCREPOSIX_INCLUDE* to PCRE_INCLUDE* as pcreposix.h will be found alongside pcre.h. 2013-01-31 19:50:42 -05:00
Andres Mejia 146a5067ca Add CMake option to explicitly enable/disable /SAFESEH linker flag for Visual Studio builds.
Visual Studio 12 enables this option by default. Enabling /SAFESEH will produce build failures when
attempting to link other libraries which were not built with /SAFESEH. This would typically be
the case for libraries built using the mingw toolchain, where the option to use structured exception
handling is not yet available.

The option is used as follows.
  Setting to "YES" sets "/SAFESEH" linker flag
  Setting to "NO" sets "/SAFESEH:NO" linker flag
  Setting to any other value such as "AUTO" won't do anything (set the default linker flag from Visual Studio)
2013-01-31 19:20:34 -05:00
Andres Mejia b708276ac5 Support POSIX regular expression support using PCRE in CMake builds.
This change is mainly meant for Windows regex support, where PCRE Windows development is much
more active than development of the regex library found in the GNUWin32 packages. I found that
the latest release of PCRE built right out of the box, unlike the GNUWin32 regex library released
6 years ago which failed to build from source for me using the mingw toolchain.
2013-01-31 18:39:39 -05:00
Andres Mejia 1148d8d933 Fix build errors on Visual Studio from negating value of sizeof operator. 2013-01-30 18:49:26 -05:00
Andres Mejia e7dd1bfbe0 Remove error about unreachable code, fixes build on Visual Studio 12. 2013-01-29 22:11:01 -05:00
Andres Mejia fbad616fc7 Write common checks for files in a separate function. 2013-01-28 17:27:40 -05:00
Andres Mejia 72d27a8c40 Add new test case to thouroughly test multivolume RAR seek support. 2013-01-28 00:31:27 -05:00
Andres Mejia bd7335423b Add new tests in multivolume RAR seek test case. 2013-01-27 11:32:18 -05:00
Andres Mejia fffd9b4807 Change how seek support in stored RARs are handled.
This fixes various test cases when seeking is used.
2013-01-27 11:31:02 -05:00
Andres Mejia 94b616c830 Add checks for proper return value reading past EOF in RAR archives. 2013-01-26 12:01:13 -05:00
Andres Mejia f2bd4d8161 Fix check for EOF in RAR format reader. 2013-01-26 12:00:38 -05:00
Andres Mejia 4b10f04c5c Fix build failure when doing normal builds.
These are builds done running a standard './configure && make'. This
will also fix a corner case where the whence is set to anything other than
SEEK_SET, SEEK_CUR, or SEEK_END. The behavior is to use SEEK_SET by default.
2013-01-25 22:43:17 -05:00
Andres Mejia c086e47ea3 Update RAR test case to expect correct results from calls to archive_read_data(). 2013-01-25 22:03:04 -05:00
Andres Mejia a16da62ba7 Give formats/filters way to know data amount requested from archive_read_data(). 2013-01-25 22:01:56 -05:00
Andres Mejia c2a8c82a44 Fix broken RAR seek support.
Using SEEK_CUR or SEEK_END produced the wrong results, SEEK_SET was
fine however. Note that archive_read_data() doesn't function exactly
as POSIX read. Currently, downstreams will have to check the current
file position after after call to archive_read_data() if they are
to use SEEK_CUR afterwards.
2013-01-25 20:57:48 -05:00
Andres Mejia 6d032315b1 Fix check for compression method in rar seek method. 2013-01-21 23:32:49 -05:00
Andres Mejia b1b8e7f79c Reenable developer CFLAGS. 2013-01-14 00:24:25 -05:00
Andres Mejia 74cdb52c07 Update libarchive to 3.1.1. 2013-01-13 23:43:04 -05:00
Andres Mejia ecd860e4f5 Bump soname major version in CMakeLists.txt. 2013-01-13 23:30:57 -05:00
Andres Mejia 1f3fda8ca3 Fix formatting from build/bump-version.sh for NEWS file. 2013-01-13 23:29:48 -05:00
Andres Mejia 4dc187739d Add notes on how to make a new release of libarchive for developers. 2013-01-13 23:25:40 -05:00
Andres Mejia 581841b85e Remove developer CFLAGS if a release build is to be made. 2013-01-13 20:36:50 -05:00
Andres Mejia bdf2c17173 Bump soname major version to 13. 2013-01-13 19:57:49 -05:00
Andres Mejia 1d9cd6e6cb Bump version to 3.1.0 due to API/ABI changes. 2013-01-13 19:52:07 -05:00
Andres Mejia 6726d329dc Add generated release zip files to .gitignore. 2013-01-13 18:57:48 -05:00
Andres Mejia 432c5f2eb8 Update configure script and header files to new libarchive version. 2013-01-13 18:55:19 -05:00
Andres Mejia 5880cd5204 Update NEWS entries for release of libarchive 3.0.5. 2013-01-13 18:27:09 -05:00
Andres Mejia beea43a43f Bump libarchive version to 3.0.5. 2013-01-13 18:02:44 -05:00
Andres Mejia badac2f392 Merge remote-tracking branch 'libarchive/release' into libarchive-master 2013-01-13 17:49:25 -05:00
Andres Mejia cba708b674 Remove comment and fix failure message to indicate gzip is expected. 2013-01-13 16:53:26 -05:00
Andres Mejia 727e04ab86 Merge pull request #31 from bamiaux/fix_gunzip_test
Fix test_read_append_filter_program
2013-01-13 13:52:21 -08:00
Andres Mejia 05966c701e Fixup paths to reference files in Makefile.am. 2012-12-09 14:43:28 -05:00
Andres Mejia db703d251e Separate code to set formats/filters into different source files.
This needs close_filters and free_filters to be globally available
as global symbols __archive_read_close_filters and
__archive_read_free_filters.
2012-12-09 13:13:42 -05:00
Andres Mejia 82b5d8dfb3 Implement functions to manually set the format and filters used. 2012-12-07 18:39:52 -05:00
Andres Mejia 5fbef6a074 Implement command to test if commands are available in the current platform. 2012-12-07 18:22:11 -05:00
Andres Mejia 864a2c1068 Merge pull request #22 from amejia1/seek-support
Implement function used to seek within data blocks.
2012-09-30 21:08:09 -07:00
Andres Mejia a5b03cc1c5 Implement function used to seek within data blocks.
This only implements seeking fully for uncompressed RAR files. Seeking is not
implemented for compressed RAR files and for the other formats (ZIP, TAR, etc.).
2012-09-27 14:04:23 -04:00
Andres Mejia 7cc97c9892 Add test_utils.h to test_utils_SOURCES, fixes use of 'make dist'. 2012-09-21 20:30:34 -04:00
Andres Mejia bb923ab058 Implement filtering of test cases run using glob pattern matching.
A test case will run if it matches a specified glob pattern. Test cases can
also be filtered out by including a '^' at the beginning of a pattern.
2012-09-19 16:42:10 -04:00
Andres Mejia 31dfef8b11 Update .gitignore to ignore library and Testing folder 2012-09-19 14:19:15 -04:00
Andres Mejia aa95a749a0 Seperate get_test_set() function out into a utility source file used by all test programs. 2012-09-19 14:17:54 -04:00
Andres Mejia 31ce1522a9 Seperate single RAR test into multiple test cases. 2012-09-19 12:43:19 -04:00