]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
12 years agoSimplify passing of linker flags to try_compile calls 45/head
Brad King [Tue, 30 Jul 2013 15:37:11 +0000 (11:37 -0400)] 
Simplify passing of linker flags to try_compile calls

In commit d7bd02b6 (Modify CHECK_C_SOURCE_* checks to fix builds using
Visual Studio 12, 2013-02-01), commit e3d14342 (Set use of /SAFESEH linker
flag for all LIBARCHIVE_CHECK_C_SOURCE_* checks, 2013-02-01), and commit
58dc42aa (Fix checks for crypto algorithms in Visual Studio builds,
2013-02-01) we introduced and used custom copies of the CMake
CheckCSource(Compiles|Runs) modules in order to pass linker flags to
try_compile calls.  CMake has an issue tracker entry about passing
CMAKE_*_LINKER_FLAGS to try_compile calls:

  http://www.cmake.org/Bug/view.php?id=14066

Discussion there suggests a much simpler workaround: pass the flags
through the LDFLAGS environment variable.  Remove our custom check
macros and use the simpler workaround instead.

12 years agohttp://code.google.com/p/libarchive/issues/detail?id=325
Tim Kientzle [Fri, 12 Jul 2013 16:14:20 +0000 (09:14 -0700)] 
http://code.google.com/p/libarchive/issues/detail?id=325

Close the file handle on error.

12 years agohttp://code.google.com/p/libarchive/issues/detail?id=325
Tim Kientzle [Fri, 12 Jul 2013 16:12:34 +0000 (09:12 -0700)] 
http://code.google.com/p/libarchive/issues/detail?id=325

Simplify the method/level checks here and fix a bug.

12 years agoAdd more files autogenerated by automake build system to .gitignore.
Andres Mejia [Sat, 29 Jun 2013 19:53:08 +0000 (15:53 -0400)] 
Add more files autogenerated by automake build system to .gitignore.

12 years agoUse ustar format in the test_option_b test
Pavel Raiskup [Thu, 27 Jun 2013 14:01:30 +0000 (16:01 +0200)] 
Use ustar format in the test_option_b test

.. because the ustar archive does not store SELinux context.  As the default
format for bsdtar is "restricted pax" (trying to store xattrs and other
things by default), the test failed on Fedora because our files have by
default SELinux context set.  This results in additional data in tested
archive ~> and the test failed because the archive was unexpectedly big:

 tar/test/test_option_b.c:41: File archive1.tar has size 3072, expected 2048

Reviewed by Konrad Kleine <konrad.wilhelm.kleine@gmail.com>

12 years agoRework the sign-extension to avoid left-shift of
Tim Kientzle [Sat, 29 Jun 2013 15:15:23 +0000 (08:15 -0700)] 
Rework the sign-extension to avoid left-shift of
an explicit negative number (which newer GCC complains about).

12 years agoUpdated libarchive.spec from Nikolai Lifanov.
Tim Kientzle [Wed, 1 May 2013 15:55:40 +0000 (08:55 -0700)] 
Updated libarchive.spec from Nikolai Lifanov.

12 years agoMerge pull request #32 from bamiaux/fix_win32_exclusive_read_access
Tim Kientzle [Sun, 14 Apr 2013 04:38:30 +0000 (21:38 -0700)] 
Merge pull request #32 from bamiaux/fix_win32_exclusive_read_access

Do not require exclusive read access when reading files under windows

12 years agoMerge pull request #40 from juikim/master
Tim Kientzle [Sun, 14 Apr 2013 01:42:08 +0000 (18:42 -0700)] 
Merge pull request #40 from juikim/master

Do not overwrite file size if the local file header has valid file size.

12 years agoIssue 314: A tar archive containing only a single 'g' record
Tim Kientzle [Thu, 11 Apr 2013 04:52:15 +0000 (21:52 -0700)] 
Issue 314:  A tar archive containing only a single 'g' record
should be treated as a valid empty tar archive.
(Such archives are generated by 'git archive' from an empty
repository.)

http://thread.gmane.org/gmane.comp.version-control.git/220485
http://code.google.com/p/libarchive/issues/detail?id=314

12 years agoExpose the generic archive_free hook
Tim Kientzle [Sat, 6 Apr 2013 19:17:52 +0000 (12:17 -0700)] 
Expose the generic archive_free hook

12 years agoIf seek fails, fail the xar read. We should be able to do better than this.
Tim Kientzle [Sat, 6 Apr 2013 19:06:15 +0000 (12:06 -0700)] 
If seek fails, fail the xar read.  We should be able to do better than this.

12 years agoDo not overwrite file size if the local file header has valid file size. 40/head
Jung-uk Kim [Mon, 1 Apr 2013 21:02:18 +0000 (17:02 -0400)] 
Do not overwrite file size if the local file header has valid file size.
This allows us to extract index.xml from Apple iWork '09 format files.

12 years agoMerge pull request #33 from xiw/overflow
Tim Kientzle [Sat, 30 Mar 2013 17:58:21 +0000 (10:58 -0700)] 
Merge pull request #33 from xiw/overflow

Fix overflow checking in archive_entry_sparse_add_entry()

12 years agoLimit write requests to at most INT_MAX.
Tim Kientzle [Sat, 23 Mar 2013 06:48:41 +0000 (23:48 -0700)] 
Limit write requests to at most INT_MAX.
This prevents a certain common programming error (passing -1 to write)
from leading to other problems deeper in the library.

12 years agoFix overflow checking in archive_entry_sparse_add_entry() 33/head
Xi Wang [Sun, 20 Jan 2013 23:17:20 +0000 (18:17 -0500)] 
Fix overflow checking in archive_entry_sparse_add_entry()

gcc will optimize the overflow check x + y < 0 (assuming x, y >= 0)
into false, since signed integer overflow is undefined behavior in C.
Use a safe precondition check instead.

12 years agoFix test_archive_write_add_filter_by_name_lrzip test case.
Andres Mejia [Sun, 24 Feb 2013 18:06:28 +0000 (13:06 -0500)] 
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

12 years agoAllow the option to use no 2nd stage compression with lrzip.
Andres Mejia [Sun, 24 Feb 2013 18:05:33 +0000 (13:05 -0500)] 
Allow the option to use no 2nd stage compression with lrzip.

12 years agoInitialize buff to all zeros.
Andres Mejia [Sun, 24 Feb 2013 17:54:44 +0000 (12:54 -0500)] 
Initialize buff to all zeros.

12 years agoFix test cases for LZO write support.
Andres Mejia [Sun, 24 Feb 2013 16:54:26 +0000 (11:54 -0500)] 
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

12 years agowrite_raw support from Marek Kubica
Tim Kientzle [Sat, 23 Feb 2013 21:19:59 +0000 (13:19 -0800)] 
write_raw support from Marek Kubica

Merged branch 'feature/write-format-raw' of https://github.com/Leonidas-from-XIV/libarchive

12 years agoRevert "Allow adding extra CFLAGS with a configure option."
Andres Mejia [Sat, 23 Feb 2013 02:40:33 +0000 (21:40 -0500)] 
Revert "Allow adding extra CFLAGS with a configure option."

This reverts commit 64b3cefbdbc0d6deef1dd3bcde890e273c323168.

Apparently, setting CFLAGS won't override the preset AM_CFLAGS
afterall. Not sure why this was giving me a problem before.

12 years agoRevert "Remove unnecessary use of arguments from AC_ARG_WITH([extra-cflags])."
Andres Mejia [Sat, 23 Feb 2013 02:40:07 +0000 (21:40 -0500)] 
Revert "Remove unnecessary use of arguments from AC_ARG_WITH([extra-cflags])."

This reverts commit 6a917dcd1378e2a50ece9f007e79a8a5058a59cb.

12 years agoRemove unnecessary use of arguments from AC_ARG_WITH([extra-cflags]).
Andres Mejia [Sat, 23 Feb 2013 01:10:08 +0000 (20:10 -0500)] 
Remove unnecessary use of arguments from AC_ARG_WITH([extra-cflags]).

12 years agoAllow adding extra CFLAGS with a configure option.
Andres Mejia [Sat, 23 Feb 2013 01:02:40 +0000 (20:02 -0500)] 
Allow adding extra CFLAGS with a configure option.
This is a convenience option to pass in extra CFLAGS without overriding other
CFLAGS.

12 years agoFix compile warning due to -Wcast-qual.
Andres Mejia [Sat, 23 Feb 2013 01:01:42 +0000 (20:01 -0500)] 
Fix compile warning due to -Wcast-qual.

12 years agoFix compiler warning from compiling with clang.
Andres Mejia [Fri, 22 Feb 2013 01:14:16 +0000 (20:14 -0500)] 
Fix compiler warning from compiling with clang.
Assigning from a read-only variable to a regular variable will issue
a warning from clang.

12 years agoAdd test case for adding pathnames with no leading './' in mtree format.
Andres Mejia [Fri, 22 Feb 2013 00:51:22 +0000 (19:51 -0500)] 
Add test case for adding pathnames with no leading './' in mtree format.
libarchive should add the leading './' for such pathnames.

12 years agomtree: fix line filename length calculation.
Dave Reisner [Fri, 22 Feb 2013 00:01:06 +0000 (19:01 -0500)] 
mtree: fix line filename length calculation.
Fixes #301.
Signed-off-by: Andres Mejia <amejia004@gmail.com>
12 years agoTest correct archive in test_extract_cpio_lzo test case.
Andres Mejia [Thu, 21 Feb 2013 23:03:09 +0000 (18:03 -0500)] 
Test correct archive in test_extract_cpio_lzo test case.

12 years agostyle fix
Tim Kientzle [Sun, 17 Feb 2013 02:40:30 +0000 (18:40 -0800)] 
style fix

12 years agoMerge pull request #38 from Leonidas-from-XIV/bugfix/optional-finish-entry
Tim Kientzle [Sun, 17 Feb 2013 02:37:17 +0000 (18:37 -0800)] 
Merge pull request #38 from Leonidas-from-XIV/bugfix/optional-finish-entry

Make calls to the finish_entry callback optional

12 years agoMade calls to the finish_entry callback optional 38/head
Marek Kubica [Sat, 16 Feb 2013 23:36:56 +0000 (00:36 +0100)] 
Made calls to the finish_entry callback optional

12 years agoRedo the strings sorting function, allocate/free memory as needed.
Andres Mejia [Sun, 10 Feb 2013 03:09:30 +0000 (22:09 -0500)] 
Redo the strings sorting function, allocate/free memory as needed.
This is the normal implementation of quicksort.

12 years agoAdd a convenience function to sort a list of strings.
Andres Mejia [Sun, 10 Feb 2013 00:13:53 +0000 (19:13 -0500)] 
Add a convenience function to sort a list of strings.
This is useful for sorting a list of filepaths to
multivolume RARs for example.

12 years agoSet offset to correct data type.
Martin Pitt [Sat, 9 Feb 2013 19:09:04 +0000 (14:09 -0500)] 
Set offset to correct data type.
Fixes #282
Signed-off-by: Andres Mejia <amejia004@gmail.com>
12 years agoUse correct define for libarchive version number in archive.h.
Martin Pitt [Sat, 9 Feb 2013 19:07:28 +0000 (14:07 -0500)] 
Use correct define for libarchive version number in archive.h.
Signed-off-by: Andres Mejia <amejia004@gmail.com>
12 years agoSet a default error message if message passed in is NULL.
Benjamin Drung [Sat, 9 Feb 2013 19:05:36 +0000 (14:05 -0500)] 
Set a default error message if message passed in is NULL.
Signed-off-by: Andres Mejia <amejia004@gmail.com>
12 years agoFix build failure of example program because of __FBSDID define.
Benjamin Drung [Sat, 9 Feb 2013 18:58:53 +0000 (13:58 -0500)] 
Fix build failure of example program because of __FBSDID define.
Fixes #283
Signed-off-by: Andres Mejia <amejia004@gmail.com>
12 years agoReenable developer cflags.
Andres Mejia [Sat, 9 Feb 2013 18:45:18 +0000 (13:45 -0500)] 
Reenable developer cflags.

12 years agoUpdate NEWS file. v3.1.2
Andres Mejia [Sat, 9 Feb 2013 17:17:57 +0000 (12:17 -0500)] 
Update NEWS file.

12 years agoRemove developer cflags.
Andres Mejia [Sat, 9 Feb 2013 17:11:03 +0000 (12:11 -0500)] 
Remove developer cflags.

12 years agoBump version to 3.1.2.
Andres Mejia [Sat, 9 Feb 2013 04:00:28 +0000 (23:00 -0500)] 
Bump version to 3.1.2.

12 years agoUpdate libarchive website location.
Andres Mejia [Sat, 9 Feb 2013 03:19:44 +0000 (22:19 -0500)] 
Update libarchive website location.

12 years agoRemove the 4th argument to CRYPTO_CHECK, it is no longer used.
Andres Mejia [Sat, 9 Feb 2013 00:21:53 +0000 (19:21 -0500)] 
Remove the 4th argument to CRYPTO_CHECK, it is no longer used.

12 years agoFix check for openssl on Windows.
Andres Mejia [Fri, 8 Feb 2013 21:15:37 +0000 (16:15 -0500)] 
Fix check for openssl on Windows.

OpenSSL libraries are named differently on Windows.

12 years agoChange crypto checks, find necessary library before corresponding checks are done.
Andres Mejia [Fri, 8 Feb 2013 20:00:05 +0000 (15:00 -0500)] 
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.

12 years agoInitialize buff, fix valgrind warning about use of uninitialized bytes.
Andres Mejia [Fri, 8 Feb 2013 01:04:40 +0000 (20:04 -0500)] 
Initialize buff, fix valgrind warning about use of uninitialized bytes.

12 years agoMerge pull request #36 from falconindy/manpages
Andres Mejia [Fri, 8 Feb 2013 00:08:18 +0000 (16:08 -0800)] 
Merge pull request #36 from falconindy/manpages

build-sys: install all library manpages

12 years agoCast comparison functions to __compar_fn_t if stdlib.h defines it.
Andres Mejia [Thu, 7 Feb 2013 21:57:22 +0000 (16:57 -0500)] 
Cast comparison functions to __compar_fn_t if stdlib.h defines it.

12 years agoFix warnings about redefinition of variables, use either sys/xattr.h or attr/xattr.h.
Andres Mejia [Thu, 7 Feb 2013 21:57:22 +0000 (16:57 -0500)] 
Fix warnings about redefinition of variables, use either sys/xattr.h or attr/xattr.h.

12 years agoFix warning about unused variable triggered when not building on WIN32.
Andres Mejia [Thu, 7 Feb 2013 21:57:22 +0000 (16:57 -0500)] 
Fix warning about unused variable triggered when not building on WIN32.

12 years agoModel the pcre checks for the autotools build system to be similar as that used in...
Andres Mejia [Thu, 7 Feb 2013 00:17:25 +0000 (19:17 -0500)] 
Model the pcre checks for the autotools build system to be similar as that used in the cmake build system.

12 years agoSet WINVER default to use Windows 2000 API.
Andres Mejia [Wed, 6 Feb 2013 00:04:37 +0000 (19:04 -0500)] 
Set WINVER default to use Windows 2000 API.

12 years agoRemove redundant defines of WINVER and _WIN32_WINNT from CRYPTO_CHECK_WIN.
Andres Mejia [Tue, 5 Feb 2013 23:23:53 +0000 (18:23 -0500)] 
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.

12 years agoProvide better check for when libpcreposix is to be used for regex support.
Andres Mejia [Tue, 5 Feb 2013 22:51:15 +0000 (17:51 -0500)] 
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.

12 years agoFix pcre checks to work on visual studio builds using pcre static libraries built...
Andres Mejia [Tue, 5 Feb 2013 22:51:13 +0000 (17:51 -0500)] 
Fix pcre checks to work on visual studio builds using pcre static libraries built using mingw toolchain.

12 years agoAdd check for finding libgcc.
Andres Mejia [Tue, 5 Feb 2013 22:51:11 +0000 (17:51 -0500)] 
Add check for finding libgcc.

12 years agobuild-sys: install all library manpages 36/head
Dave Reisner [Fri, 6 Jul 2012 03:31:49 +0000 (23:31 -0400)] 
build-sys: install all library manpages

A number of manpages were curiously omitted from the installation
process, but are referred to in installed manpages. To avoid developers
spontaneously combusting, ship all available manpages.

12 years agoFix crypto check failures on Windows.
Andres Mejia [Mon, 4 Feb 2013 03:05:34 +0000 (22:05 -0500)] 
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.

12 years agoCorrect ordering of preferred library for crypto function in mingw builds.
Andres Mejia [Sun, 3 Feb 2013 23:21:30 +0000 (18:21 -0500)] 
Correct ordering of preferred library for crypto function in mingw builds.

12 years agoPartially revert commit 58dc42aaea93cd281aafaaaa4c3926c3578b7e26 as this broke mingw...
Andres Mejia [Sun, 3 Feb 2013 22:42:45 +0000 (17:42 -0500)] 
Partially revert commit 58dc42aaea93cd281aafaaaa4c3926c3578b7e26 as this broke mingw builds.

12 years agoUpdate the ordering of preferred libraries that provide crypto functions.
Andres Mejia [Sun, 3 Feb 2013 22:40:00 +0000 (17:40 -0500)] 
Update the ordering of preferred libraries that provide crypto functions.

12 years agoMake sure to check for Windows crypto functions for both mingw and cygwin.
Andres Mejia [Sun, 3 Feb 2013 06:49:21 +0000 (01:49 -0500)] 
Make sure to check for Windows crypto functions for both mingw and cygwin.

12 years agoAdd *.exe to .gitignore.
Andres Mejia [Sun, 3 Feb 2013 06:44:33 +0000 (01:44 -0500)] 
Add *.exe to .gitignore.

12 years agoFix mingw build because of bad check for libpcreposix.
Andres Mejia [Sun, 3 Feb 2013 06:42:59 +0000 (01:42 -0500)] 
Fix mingw build because of bad check for libpcreposix.

12 years agoMake POSIX regex checks cleaner.
Andres Mejia [Sun, 3 Feb 2013 04:46:44 +0000 (23:46 -0500)] 
Make POSIX regex checks cleaner.

12 years agoUse different check for libbz2 on Windows.
Andres Mejia [Sun, 3 Feb 2013 03:56:39 +0000 (22:56 -0500)] 
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.

12 years agoDo not ignore errors when generating documentation.
Andres Mejia [Sat, 2 Feb 2013 23:42:30 +0000 (18:42 -0500)] 
Do not ignore errors when generating documentation.
This will ensure documentation is actually generated when building
release tarballs.

12 years agoUse same check from cmake in autotools for POSIX regex support.
Andres Mejia [Sat, 2 Feb 2013 06:23:40 +0000 (01:23 -0500)] 
Use same check from cmake in autotools for POSIX regex support.

12 years agoChange ordering of libraries to check for POSIX regular expression support.
Andres Mejia [Sat, 2 Feb 2013 04:54:33 +0000 (23:54 -0500)] 
Change ordering of libraries to check for POSIX regular expression support.

New ordering is now LIBC followed by LIBREGEX followed by LIBPCREPOSIX.

12 years agoUse a string option to select what library is to support POSIX regular expressions.
Andres Mejia [Sat, 2 Feb 2013 04:41:45 +0000 (23:41 -0500)] 
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.

12 years agoAdd Nettle include dir in check for nettle crypto functions.
Andres Mejia [Sat, 2 Feb 2013 03:12:34 +0000 (22:12 -0500)] 
Add Nettle include dir in check for nettle crypto functions.

12 years agoUse cmake module similar to FindLZMA.cmake to find Nettle include dir and library.
Andres Mejia [Sat, 2 Feb 2013 03:10:15 +0000 (22:10 -0500)] 
Use cmake module similar to FindLZMA.cmake to find Nettle include dir and library.

12 years agoUse a string option WINDOWS_VERSION to set WINVER and _WIN32_WINNT in Windows build.
Andres Mejia [Fri, 1 Feb 2013 23:46:30 +0000 (18:46 -0500)] 
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.

12 years agoFix checks for crypto algorithms in Visual Studio builds.
Andres Mejia [Fri, 1 Feb 2013 23:16:34 +0000 (18:16 -0500)] 
Fix checks for crypto algorithms in Visual Studio builds.

Checks were failing because /SAFESEH was being used and because ssize_t was not defined.

12 years agoFix test failures in libarchive built using Visual Studio.
Andres Mejia [Fri, 1 Feb 2013 21:52:23 +0000 (16:52 -0500)] 
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.

12 years agoSet use of /SAFESEH linker flag for all LIBARCHIVE_CHECK_C_SOURCE_* checks.
Andres Mejia [Fri, 1 Feb 2013 21:52:21 +0000 (16:52 -0500)] 
Set use of /SAFESEH linker flag for all LIBARCHIVE_CHECK_C_SOURCE_* checks.

12 years agoModify CHECK_C_SOURCE_* checks to fix builds using Visual Studio 12.
Andres Mejia [Fri, 1 Feb 2013 21:52:19 +0000 (16:52 -0500)] 
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).

12 years agoCheck that build did not succeed with WITHOUT_PCRE_STATIC before defining PCRE_STATIC.
Andres Mejia [Fri, 1 Feb 2013 04:07:57 +0000 (23:07 -0500)] 
Check that build did not succeed with WITHOUT_PCRE_STATIC before defining PCRE_STATIC.

12 years agoAdd check for build without PCRE_STATIC defined.
Andres Mejia [Fri, 1 Feb 2013 04:03:33 +0000 (23:03 -0500)] 
Add check for build without PCRE_STATIC defined.

12 years agoRedo check for pcreposix library.
Andres Mejia [Fri, 1 Feb 2013 04:00:11 +0000 (23:00 -0500)] 
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.

12 years agoMinor formatting change, no functional change.
Andres Mejia [Fri, 1 Feb 2013 00:53:54 +0000 (19:53 -0500)] 
Minor formatting change, no functional change.

12 years agoRename PCREPOSIX_INCLUDE* to PCRE_INCLUDE* as pcreposix.h will be found alongside...
Andres Mejia [Fri, 1 Feb 2013 00:50:42 +0000 (19:50 -0500)] 
Rename PCREPOSIX_INCLUDE* to PCRE_INCLUDE* as pcreposix.h will be found alongside pcre.h.

12 years agoAdd CMake option to explicitly enable/disable /SAFESEH linker flag for Visual Studio...
Andres Mejia [Fri, 1 Feb 2013 00:20:34 +0000 (19:20 -0500)] 
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)

12 years agoSupport POSIX regular expression support using PCRE in CMake builds.
Andres Mejia [Thu, 31 Jan 2013 23:39:39 +0000 (18:39 -0500)] 
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.

12 years agoFix build errors on Visual Studio from negating value of sizeof operator.
Andres Mejia [Wed, 30 Jan 2013 23:49:26 +0000 (18:49 -0500)] 
Fix build errors on Visual Studio from negating value of sizeof operator.

12 years agoRemove error about unreachable code, fixes build on Visual Studio 12.
Andres Mejia [Wed, 30 Jan 2013 02:30:09 +0000 (21:30 -0500)] 
Remove error about unreachable code, fixes build on Visual Studio 12.

12 years agoWrite common checks for files in a separate function.
Andres Mejia [Mon, 28 Jan 2013 22:27:40 +0000 (17:27 -0500)] 
Write common checks for files in a separate function.

12 years agoAdd new test case to thouroughly test multivolume RAR seek support.
Andres Mejia [Mon, 28 Jan 2013 05:31:27 +0000 (00:31 -0500)] 
Add new test case to thouroughly test multivolume RAR seek support.

12 years agoAdd new tests in multivolume RAR seek test case.
Andres Mejia [Sun, 27 Jan 2013 16:32:18 +0000 (11:32 -0500)] 
Add new tests in multivolume RAR seek test case.

12 years agoChange how seek support in stored RARs are handled.
Andres Mejia [Sun, 27 Jan 2013 16:31:02 +0000 (11:31 -0500)] 
Change how seek support in stored RARs are handled.
This fixes various test cases when seeking is used.

12 years agoAdd checks for proper return value reading past EOF in RAR archives.
Andres Mejia [Sat, 26 Jan 2013 17:01:13 +0000 (12:01 -0500)] 
Add checks for proper return value reading past EOF in RAR archives.

12 years agoFix check for EOF in RAR format reader.
Andres Mejia [Sat, 26 Jan 2013 17:00:38 +0000 (12:00 -0500)] 
Fix check for EOF in RAR format reader.

12 years agoFix build failure when doing normal builds.
Andres Mejia [Sat, 26 Jan 2013 03:43:17 +0000 (22:43 -0500)] 
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.

12 years agoUpdate RAR test case to expect correct results from calls to archive_read_data().
Andres Mejia [Sat, 26 Jan 2013 03:03:04 +0000 (22:03 -0500)] 
Update RAR test case to expect correct results from calls to archive_read_data().

12 years agoGive formats/filters way to know data amount requested from archive_read_data().
Andres Mejia [Sat, 26 Jan 2013 03:01:56 +0000 (22:01 -0500)] 
Give formats/filters way to know data amount requested from archive_read_data().

12 years agoFix broken RAR seek support.
Andres Mejia [Sat, 26 Jan 2013 01:57:48 +0000 (20:57 -0500)] 
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.

12 years agoFix check for compression method in rar seek method.
Andres Mejia [Tue, 22 Jan 2013 04:32:49 +0000 (23:32 -0500)] 
Fix check for compression method in rar seek method.

12 years agoReenable developer CFLAGS.
Andres Mejia [Mon, 14 Jan 2013 05:24:25 +0000 (00:24 -0500)] 
Reenable developer CFLAGS.