summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
Commit message (Collapse)AuthorAgeFilesLines
* libarchive: Use OpenSSL only if CMAKE_USE_OPENSSL (#11815)Brad King2011-02-081-2/+10
| | | | | | OpenSSL is not part of the Linux Standard Base but its headers and libraries may still be found at build time even though they may not be available at runtime. Use it only if explicitly allowed.
* libarchive: Define major/minor/makedev only where needed (#11648)Brad King2011-02-073-16/+11
| | | | | | | | | | | If neither MAJOR_IN_MKDEV or MAJOR_IN_SYSMACROS is defined then provide our own implementation of these macros locally. This complements the change in commit cf5ad183 (Fix major() check for LSB 4.0, 2011-01-12). This patch is based on upstream libarchive SVN commit 1553 (Shuffle the major/minor/makedev support a bit; this should work on both Windows and Haiku, 2009-10-31). Inspired-by: Tim Kientzle <kientzle@freebsd.org>
* libarchive: Fix major() check for LSB 4.0 (#11648)Brad King2011-01-121-2/+6
| | | | | | | | | | The LSB header files define major() as a macro but if it is ever called the macro references symbols not available at link time. Improve the test for major() to actually call the macro and try to link. This approach is based on upstream libarchive SVN commit 2866 which fixed libarchive issue 125, submitted in response to CMake issue #11648. Inspired-by: Tim Kientzle <kientzle@freebsd.org>
* Merge topic 'fix_osf_build'David Cole2010-11-095-7/+20
|\ | | | | | | | | | | 92c082b Add a fix for the inline keyword on the osf os. bd56626 Fixes for the OSF operating system build.
| * Add a fix for the inline keyword on the osf os.Bill Hoffman2010-09-101-1/+1
| |
| * Fixes for the OSF operating system build.Bill Hoffman2010-09-084-6/+19
| |
* | libarchive: Fix purposeful crashBrad King2010-09-101-1/+1
|/ | | | | | Dereferencing a 0-pointer is undefined behavior, not a deterministic crash. Use a 1-pointer instead. This also avoids a warning by Clang about the undefined behavior.
* libarchive: Remove SCHILY dev,ino,nlink attributes (#11176)Brad King2010-08-271-10/+0
| | | | | | At least one version of GNU tar (1.15.1 with Fedora patches) does not recognize these attributes and exits with error. Do not generate them. Patch from upstream libarchive svn r2563.
* Fix build on borland windows, by adding back typedef for pid_t.Bill Hoffman2010-05-061-2/+2
|
* Win64 fixes for mingw-w64 compilationRuben Van Boxem2010-05-051-1/+3
|
* Fix prototype to match header, for bug # 10543.Bill Hoffman2010-05-051-1/+1
|
* For HP, preprocessor if on multiple lines not allowed, make a long line.Bill Hoffman2010-05-041-2/+1
|
* Fixes for bug # 10543, build on older sunpro now works.Bill Hoffman2010-05-041-1/+3
|
* Remove another c++ comment from the c code.Bill Hoffman2010-04-281-1/+1
|
* Get rid of c++ style comments in C code.Bill Hoffman2010-04-274-16/+12
|
* libarchive: Drop unused %jd and %lld checksBrad King2009-12-142-32/+0
| | | | | The libarchive source does not use HAVE_PRINTF_JD or HAVE_PRINTF_LLD, so we do not need to test for them at configuration time.
* libarchive: Remove unused STDC_HEADERS try_runBrad King2009-11-307-95/+0
| | | | | This was the only try_run() in libarchive, and the result was not used in the source code. We remove it to allow cross-compiling to work.
* libarchive: Use one architecture for try-compilesBrad King2009-11-231-0/+7
| | | | | | | | | We use CHECK_TYPE_SIZE in libarchive to check for the existence of some types. For universal binary builds on the Mac, the size check can fail if it is inconsistent across architectures. However, we do not actually need the size so it is safe to do the checks for only one architecture. See issue #9913.
* libarchive: Include integer types very earlyBrad King2009-11-181-8/+8
| | | | | | | | In libarchive/archive_platform.h we should include <stdint.h> or <inttypes.h> immediately after "config.h" to define integer types referenced by configuration results. For example, on a non-conformant platform ssize_t might default to int64_t, so int64_t must be defined before ssize_t is used (and ssize_t is used in archive_windows.h).
* for the Cmake build we do not want to have -Werror or force -WallBill Hoffman2009-11-141-3/+3
|
* remove the last of the windows W4 warningsBill Hoffman2009-11-122-2/+4
|
* Remove a few more warningsBill Hoffman2009-11-121-2/+2
|
* libarchive: Borland provides umask, not _umaskBrad King2009-11-101-0/+2
|
* keep libarchive from using a system zlib unless cmake uses oneBill Hoffman2009-11-091-2/+6
|
* libarchive: Put local include dir firstBrad King2009-11-091-1/+1
| | | | | | In libarchive we configure an internal header file called 'config.h'. This commits moves the include directory containing the file to the beginning of the include path to avoid conflicts from system headers.
* try to get rid of some warnings on hpuxBill Hoffman2009-11-082-6/+6
|
* remove a few more windows warningsBill Hoffman2009-11-081-1/+6
|
* Fix for mode_t with signed typesBill Hoffman2009-11-081-8/+8
|
* link in additional libraries that the configure step findsBill Hoffman2009-11-071-0/+1
|
* Fix hpux build on heartBill Hoffman2009-11-061-0/+3
|
* libarchive: Fix get(pw|gr)name_r commentBrad King2009-11-061-1/+1
| | | | | | The commit "libarchive: Define _XOPEN_SOURCE for get(pwu|grg)id_r" introduced a comment referring to get(pwu|grg)id_r in a source file that actually uses the functions get(pw|gr)name_r. We fix the comment.
* libarchive: Initialize passwd/group lookup resultBrad King2009-11-062-0/+4
| | | | | | | The "result" argument to functions get(pwu|grg)id_r and get(pw|gr)name_r does not appear in the signatures provided on older platforms. We set the pointer to the result memory in case the function ignores it, thus ensuring initialization.
* libarchive: Fix try-compile for SIZE_MAXBrad King2009-11-052-21/+15
| | | | | | This constant may be defined in one of a few headers. We teach the try-compile for it to test all the headers together instead of only one header.
* libarchive: Add try-compile for 'major'Brad King2009-11-052-4/+3
| | | | | | | The commit "Fix libarchive linker errors on SunOS for mkdev/major/minor" hard-coded #include lines for getting mkdev/major/minor on the Sun. Instead we add missing try-compile tests to make sure the proper headers get included through the standard mechanism.
* libarchive: Define _XOPEN_SOURCE for get(pwu|grg)id_rBrad King2009-11-052-20/+12
| | | | | | The commit "Fixed a few of the SunOS build errors in libarchive" changed the call to these functions to use the old signatures. Instead we now define _XOPEN_SOURCE to get the improved modern signatures.
* Do not use external lzma library as it causes link errors on several ↵Bill Hoffman2009-11-051-1/+8
| | | | machines and we don't need it.
* Fix linker errors for libarchive in AIX as well.Zach Mullen2009-11-051-1/+1
|
* Fix statement not reached warning for libarchive.Zach Mullen2009-11-051-1/+0
|
* Fix libarchive linker errors on SunOS for mkdev/major/minorZach Mullen2009-11-051-0/+4
|
* Fixed a few of the SunOS build errors in libarchive.Zach Mullen2009-11-052-4/+20
|
* libarchive: Use consistent function storage classBrad King2009-11-043-3/+3
| | | | Functions declared 'static' should be defined 'static' too.
* libarchive: Fix integer type defaults for WindowsBrad King2009-11-041-35/+25
| | | | | | Most of the integer type defaults needed for MSVC and Borland actually work with all Windows compilers. This commit generalizes the defaults to avoid compiler-specific tests.
* libarchive: Provide SetFilePointerEx for VS 6Brad King2009-11-041-0/+14
|
* libarchive: Fix unconfigured header logicBrad King2009-11-042-29/+30
| | | | | | | The commit "libarchive: Fix Borland integer constants" introduced use of HAVE_* configured macros into archive.h and archive_entry.h where they are not allowed. This commit replaces the logic with something that does not depend on the configured macros.
* libarchive: Fix dev_t configurationBrad King2009-11-041-0/+3
|
* libarchive: Fix intptr_t and uintptr_t configurationBrad King2009-11-042-6/+22
|
* libarchive: Fix wincrypt.h inclusion on VS 6Brad King2009-11-041-0/+4
| | | | | | The VS 6 version of wincrypt.h only works if _WIN32_WINNT >= 0x0400. We block its inclusion through windows.h by defining NOCRYPT, and then define _WIN32_WINNT and include it only when necessary.
* libarchive: Fix Borland integer constantsBrad King2009-11-046-5/+29
| | | | | | | Some versions of Borland provide <stdint.h>, so we use it when possible. However, the 64-bit signed and unsigned integer min/max constants cause overflow warnings from Borland itself! For these constants we fall back on our default definitions.
* libarchive: Disable Borland warningsBrad King2009-11-043-0/+15
| | | | | We disable warnings to silence them while making minimal changes to third-party code.
* libarchive: Disable MSVC warningsBrad King2009-11-041-0/+4
| | | | | We disable warnings to silence them while making minimal changes to third-party code.