summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive
Commit message (Collapse)AuthorAgeFilesLines
...
* | libarchive: Fix compliation with Open WatcomJiri Malak2014-03-093-3/+8
|/
* Fix wording of "the the" typos throughout textRuslan Baratov2014-01-031-1/+1
|
* libarchive: Use ARCHIVE_LITERAL_ULL to add ULL integer suffixBrad King2013-12-091-1/+1
| | | | | The macro maps to an implementation that works on older compilers when necessary.
* libarchive: Port upstream issue 320 second fixBrad King2013-12-091-20/+48
| | | | | | | Port upstream commit 6cf33c93 (Issue 320: Rewrite (again) to avoid the left shift that CLang dislikes so much, 2013-12-07) into CMake. Inspired-by: Tim Kientzle <kientzle@freebsd.org>
* libarchive: Port upstream issue 320 fixBrad King2013-11-251-11/+7
| | | | | | | Port upstream commit 533e8fda (Rework the sign-extension to avoid left-shift of an explicit negative number, 2013-06-29) into CMake. Inspired-by: Tim Kientzle <kientzle@freebsd.org>
* libarchive: Avoid struct init with variableBrad King2013-07-311-1/+3
| | | | | Compilers such as Borland and MIPSpro do not like struct initialization with variables. Initialize using assignment instead.
* libarchive: Silence API deprecation warningsBrad King2013-07-311-5/+2
| | | | CMake uses old libarchive APIs for now.
* libarchive: Include cm_zlib.h to get zlib used by CMakeBrad King2013-07-312-2/+2
| | | | | | Follow up change from commit ffa6faa4 (libarchive: Include cm_zlib.h to get zlib used by CMake, 2011-12-20) for new includes of zlib.h in updated libarchive.
* Merge branch 'libarchive-upstream' into update-libarchiveBrad King2013-07-31144-4053/+17773
| | | | | | | | | | | Conflicts: Utilities/cmlibarchive/CMakeLists.txt Utilities/cmlibarchive/libarchive/archive.h Utilities/cmlibarchive/libarchive/archive_entry.h Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c Utilities/cmlibarchive/libarchive/archive_windows.h Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c
* libarchive: Fix free() order to avoid accessing freed memoryÖmer Fadıl USTA2013-07-151-1/+1
| | | | | | | | | The archive_string_conv type sc variable already freed via free(sc) on the other hand in second line we are tyring to free its subset via free(sc->from_charset) this will cause a problem because we couldn't reach sc after first release. Reviewed-by: Igor Murzov <e-mail@date.by>
* Fix spelling and typos (non-binary)Andreas Mohr2013-05-071-1/+1
|
* Fix spelling and typos (affecting binary data / module messages)Andreas Mohr2013-05-072-4/+4
|
* libarchive: fixed undefined left shift with signed intsSean McBride2012-11-301-4/+32
| | | | | | | | caught by clang's -fsanitize=shift. A small unsigned int was promoted, according to C's regular promotion rules, to a signed int, it was then left shifted. This sometimes pushed a 1 into the sign bit, which is undefined behaviour. Fixed by using unsigned temporaries.
* Fix typo direcotry -> directory (and similar) [#13444]Rolf Eike Beer2012-07-302-2/+2
|
* libarchive: Avoid 'inline' on SunPro < 5.9 (#13277)Brad King2012-06-071-0/+3
| | | | Suggested-by: Daniel R. Gomez <gomez@teragram.com>
* libarchive: Avoid 'inline' keyword on XL C v6 (#13148)Brad King2012-04-191-0/+3
|
* libarchive: Avoid trailing , in enum for XL v6 (#13148)Jim Hague2012-04-191-5/+5
| | | | IBM xlc v6 cannot cope with a trailing ',' in enum definitions.
* libarchive: Workaround mbsnrtowcs assertion failure on old glibcBrad King2012-02-101-0/+5
| | | | | | | | | | | | The CMake TarTest fails with the error mbsnrtowcs.c:116: __mbsnrtowcs: Assertion `status == GCONV_OK || status != GCONV_EMPTY_INPUT || status == GCONV_ILLEGAL_INPUT || status == GCONV_INCOMPLETE_INPUT || status == GCONV_FULL_OUTPUT' failed. on very old glibc versions. Work around the problem by pretending that mbsnrtowcs does not exist. Libarchive will fall back to mbrtowc.
* Include bzlib.h consistently across CMake build (#10950)Brad King2012-01-136-6/+6
| | | | | | | | | Use the approach originally used in commit f91b3c1d (Add options to build with system utility libraries, 2006-10-19) for all other third-party libraries. Create a "cm_bzlib.h" header wrapper that robustly includes the header from the bzip2 library chosen for the CMake build (either builtin or system version). Include the header wrapper anywhere we need the API provided by <bzlib.h>.
* Merge branch 'libarchive-upstream' into update-libarchiveBrad King2012-01-0550-726/+808
| | | | | | Conflicts: Utilities/cmlibarchive/CMakeLists.txt Utilities/cmlibarchive/libarchive/archive_windows.c
* libarchive: Avoid bogus conversion warning from PGI compilerBrad King2012-01-044-6/+6
| | | | | | | | | | | | | | | | | | | | We cannot suppress PGI compiler warnings completely because even with the "-w" flag the compiler still writes a message containing "compilation completed with warnings" to stderr. A warning is triggered by expressions like test ? NULL : ptr_to_const_char test ? ".." : ptr_to_const_char that the PGI compiler handles incorrectly. It chooses the pointer type of the first option (either void* or char*) and warns about conversion of the second without a cast. Flip the expression logic to !test ? ptr_to_const_char : NULL !test ? ptr_to_const_char : ".." to help the compiler choose the proper result type.
* libarchive: Rename isoent_rr_move_dir parameter isoent => curentBrad King2012-01-041-21/+21
| | | | | The PGI compiler confuses parameter name "isoent" with "struct isoent". Rename the parameter to "curent" to avoid confusion.
* libarchive: Include linux/types.h before linux/fiemap.hBrad King2012-01-041-0/+3
| | | | | Some Linux API versions do not perform this inclusion automatically, so types like __u64 needed by the latter are not available.
* libarchive: Use Apple copyfile.h API only if availableBrad King2012-01-031-1/+1
| | | | | Do not use the copyfile.h API if the header is not available. The Mac SDK for older OS X versions does not provide it.
* libarchive: Do not use MNT_NOATIME if not definedBrad King2012-01-031-0/+2
| | | | | Use the same pattern already used elsewhere in archive_read_disk_posix.c for ST_NOATIME to use MNT_NOATIME only when defined.
* libarchive: Check for 'struct statvfs' member 'f_iosize'Brad King2011-12-231-0/+5
| | | | | | Configure the result as definition HAVE_STRUCT_STATVFS_F_IOSIZE and use the member only if it exists. At least one platform (IRIX) provides struct statvfs without this member.
* libarchive: Do not use ST_NOATIME if not definedBrad King2011-12-231-0/+2
| | | | | Use the same pattern already used elsewhere in archive_read_disk_posix.c to use ST_NOATIME only when defined.
* libarchive: Fix var decl after statement in archive_string.cBrad King2011-12-231-1/+1
| | | | | When HAVE_MBRTOWC is true we declare an extra local variable. Move the unused argument cast to the end of the invalid_mbs function.
* libarchive: Suppress compiler warningsBrad King2011-12-231-1/+2
| | | | We are not developing libarchive so we do not care about warnings.
* libarchive: Fix Windows NT API usage in VS 6Brad King2011-12-231-0/+18
| | | | | | | | VS 6 warns verbosely when WINVER >= 0x0500. Avoid defining WINVER and _WIN32_WINNT to higher than 0x0400 on VS 6. Provide missing API declarations in archive_windows.h when we do not get them from <windows.h>. Provide GetVolumePathNameW because VS 6 does not declare it regardless of the API version.
* libarchive: Cast mode constants to mode_t in case it is signedBrad King2011-12-231-8/+8
| | | | | | | | | | | | | | | | | | At least one compiler (Borland) defines mode_t as just "short" which is signed. This breaks code like switch(archive_entry_filetype(e)) { case AE_IFREG: ... } if AE_IFREG and other constants have a longer signed type (int) because sign extension of the mode_t return type from archive_entry_filetype changes its value. Avoid the problem by ensuring the type of the constants matches mode_t. This change was originally made in commit a73acfbe (Fix for mode_t with signed types, 2009-11-07). Port it to the new libarchive snapshot.
* libarchive: Workaround case-insensitive symbols on BorlandBrad King2011-12-231-0/+7
| | | | | | | | | | | | | | Mangle the open_FILE symbols to avoid conflict with open_file: Warning: public '_archive_read_open_file' in module 'archive_read_open_filename.c' clashes with prior module 'archive_read_open_file.c' Warning: public '_archive_write_open_file' in module 'archive_write_open_filename.c' clashes with prior module 'archive_write_open_file.c' This workaround should not go upstream because it will break when mixing compilers.
* libarchive: Cast constants to int64_t instead of using LL suffixBrad King2011-12-232-2/+2
| | | | The LL suffix is not portable. Use an explicit cast instead.
* libarchive: Declare mbstate_t and wcrtomb for BorlandBrad King2011-12-231-0/+4
| | | | | The Borland C++ 5.81 runtime library provides wcrtomb but only the C++ header <cwchar> actually declares the API.
* libarchive: Implement custom lseek for BorlandBrad King2011-12-232-0/+59
| | | | | | Restore Windows 64-bit lseek removed by upstream svn revision 3826 (Cast away __la_lseek(), use _lseeki64() instead, 2011-11-21). We need it on Borland.
* libarchive: Port to OSF operating systemBrad King2011-12-233-4/+4
| | | | | | | | | Make changes equivalent to those originally made by commits bd56626a (Fixes for the OSF operating system build, 2010-09-08) 92c082b1 (Add a fix for the inline keyword on the osf os, 2010-09-10) but based on the updated libarchive snapshot.
* libarchive: Include cm_zlib.h to get zlib used by CMakeBrad King2011-12-2212-12/+12
|
* libarchive: Build one static cmlibarchive for CMakeBrad King2011-12-221-21/+3
| | | | | CMake needs only a single static libarchive library and not a shared one. Call it cmlibarchive to avoid confusion.
* libarchive: Do not build subdirectories not in reduced snapshotBrad King2011-12-221-2/+0
| | | | | | Remove add_subdirectory() calls for directories not included in the reduced libarchive snapshot. Remove options that configure settings in the missing directories.
* Merge branch 'libarchive-upstream' into update-libarchiveBrad King2011-12-20148-0/+97189
| | | | | Add Utilities/cmlibarchive using upstream libarchive 3.0.0-r3950 snapshot.
* libarchive: Remove our copy to make room for new importBrad King2011-12-20227-95642/+0
|
* libarchive: Fix ssize_t detection with mingwrt 3.20Brad King2011-09-161-1/+1
| | | | | | | | This version of MinGW defines _SSIZE_T_ for ssize_t. This patch is based on upstream libarchive SVN commit 3649 (Fix build with mingwrt 3.20, 2011-08-27). Inspired-by: Tim Kientzle <kientzle@freebsd.org>
* 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>
* Merge topic 'fix_osf_build'David Cole2010-11-093-4/+12
|\ | | | | | | | | | | 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-082-3/+11
| |
* | 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
|