]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoSimplify this a tad.
Tim Kientzle [Fri, 27 Mar 2009 07:05:15 +0000 (03:05 -0400)] 
Simplify this a tad.

SVN-Revision: 865

16 years agoMake it easier for mdoc2man to format this correctly.
Tim Kientzle [Fri, 27 Mar 2009 07:04:48 +0000 (03:04 -0400)] 
Make it easier for mdoc2man to format this correctly.

SVN-Revision: 864

16 years agosvn:ignore the built files in these directories.
Tim Kientzle [Fri, 27 Mar 2009 07:04:22 +0000 (03:04 -0400)] 
svn:ignore the built files in these directories.

SVN-Revision: 863

16 years agoImprove the conversion of mdoc to man format.
Tim Kientzle [Fri, 27 Mar 2009 07:04:01 +0000 (03:04 -0400)] 
Improve the conversion of mdoc to man format.

SVN-Revision: 862

16 years agoMention mtree:indent even though I'm not entirely sure what it does.
Tim Kientzle [Thu, 26 Mar 2009 07:05:16 +0000 (03:05 -0400)] 
Mention mtree:indent even though I'm not entirely sure what it does.

SVN-Revision: 861

16 years agoThe argument is spelled with an 's': --options
Tim Kientzle [Thu, 26 Mar 2009 07:04:08 +0000 (03:04 -0400)] 
The argument is spelled with an 's': --options

SVN-Revision: 860

16 years agoDocument --option
Tim Kientzle [Thu, 26 Mar 2009 07:02:49 +0000 (03:02 -0400)] 
Document --option

SVN-Revision: 859

16 years agoSet options before opening the archive.
Tim Kientzle [Thu, 26 Mar 2009 06:25:35 +0000 (02:25 -0400)] 
Set options before opening the archive.

SVN-Revision: 858

16 years agoRename --format-options to simply --options, since these are options
Tim Kientzle [Thu, 26 Mar 2009 06:23:14 +0000 (02:23 -0400)] 
Rename --format-options to simply --options, since these are options
for filter/compressors as well as format handlers.
On write, set options before we open the file.

SVN-Revision: 857

16 years agoFreeBSD has MD5, RMD160, and various SHA headers and libraries.
Tim Kientzle [Thu, 26 Mar 2009 06:19:28 +0000 (02:19 -0400)] 
FreeBSD has MD5, RMD160, and various SHA headers and libraries.

SVN-Revision: 856

16 years agoSucceed with ARCHIVE_OK if we're given a NULL or empty options argument.
Tim Kientzle [Thu, 26 Mar 2009 06:18:19 +0000 (02:18 -0400)] 
Succeed with ARCHIVE_OK if we're given a NULL or empty options argument.
Return ARCHIVE_WARN if any option is unclaimed.

SVN-Revision: 855

16 years agoSucceed if we're handed an empty or NULL option argument.
Tim Kientzle [Thu, 26 Mar 2009 06:16:47 +0000 (02:16 -0400)] 
Succeed if we're handed an empty or NULL option argument.
In particular, this simplifies clients such as bsdtar, which can
now simply call archive_read_set_options() with a fixed string
that may be NULL.

SVN-Revision: 854

16 years agoReturn ARCHIVE_OK for "indent" and "use-set" options, which
Tim Kientzle [Thu, 26 Mar 2009 06:14:29 +0000 (02:14 -0400)] 
Return ARCHIVE_OK for "indent" and "use-set" options, which
are consumed but don't use the 'keybit' mechanism.  Without
this, mtree options returned ARCHIVE_WARN ("not used") for
these options.

SVN-Revision: 853

16 years agoUse a better mechanism to portably find binmode.o
Charles Wilson [Thu, 26 Mar 2009 01:59:56 +0000 (21:59 -0400)] 
Use a better mechanism to portably find binmode.o

SVN-Revision: 852

16 years agoAnother stab at Issue 9: Change off_t to int64_t in test_tar_large.c.
Tim Kientzle [Wed, 25 Mar 2009 20:45:36 +0000 (16:45 -0400)] 
Another stab at Issue 9: Change off_t to int64_t in test_tar_large.c.

SVN-Revision: 844

16 years agoWhen generating list.h file, Do not check CMAKE_CURRENT_LIST_FILE
Michihiro NAKAJIMA [Wed, 25 Mar 2009 10:58:45 +0000 (06:58 -0400)] 
When generating list.h file, Do not check CMAKE_CURRENT_LIST_FILE
at GENERATE_LIST_H macro. It will have a wrong path
if GENERATE_LIST_H macro is called from other CMakeList.txt.

SVN-Revision: 843

16 years agoRevert r838,r839 and r840.
Michihiro NAKAJIMA [Wed, 25 Mar 2009 09:14:53 +0000 (05:14 -0400)] 
Revert r838,r839 and r840.

SVN-Revision: 842

16 years agoAdd archive_read_next_header2(), which populates the archive_entry
Tim Kientzle [Tue, 24 Mar 2009 20:01:00 +0000 (16:01 -0400)] 
Add archive_read_next_header2(), which populates the archive_entry
object passed into it.  Make archive_read_next_header() be the obvious
wrapper that just reuses a single entry object.  This has been shown
to provide a big speedup for cases where people want to generate a list
of every entry in an archive; creating a new entry is faster than cloning
an existing entry.

Thanks to: Brian Harring

SVN-Revision: 841

16 years agoMake archive_windows.c internal static library.
Michihiro NAKAJIMA [Tue, 24 Mar 2009 13:49:10 +0000 (09:49 -0400)] 
Make archive_windows.c internal static library.
Now bsdtar and bsdcpio on Windows can be made by
both static build and dynamic build.

SVN-Revision: 840

16 years agoRemove useless '#ifndef LIST_H' condition.
Michihiro NAKAJIMA [Tue, 24 Mar 2009 09:29:24 +0000 (05:29 -0400)] 
Remove useless '#ifndef LIST_H' condition.

SVN-Revision: 839

16 years agoRemove a lot of duplicate functions which simulates POSIX
Michihiro NAKAJIMA [Tue, 24 Mar 2009 09:04:15 +0000 (05:04 -0400)] 
Remove a lot of duplicate functions which simulates POSIX
function for Windows platform. And move the remaining
simulate functions to archive_windows.[ch].  It will be
easy maintenance and avoid the same named functions having
different codes. This change does *not* mean libarchive
library has those ones or exports it. All libarchive's
executable programs include archive_windows.c for one of
its program files.

SVN-Revision: 838

16 years agoImprove a progress of the cmake's test.
Michihiro NAKAJIMA [Mon, 23 Mar 2009 08:30:03 +0000 (04:30 -0400)] 
Improve a progress of the cmake's test.
Now cmake test results are:

Running tests...
Start processing tests
Test project /home/cue/libarchive/gogo/cbuld
  1/111 Testing libarchive_test_acl_basic        Passed
  2/111 Testing libarchive_test_acl_freebsd      Passed
  3/111 Testing libarchive_test_acl_pax          Passed
--- snip ---
 75/111 Testing libarchive_test_write_format_t   Passed
 76/111 Testing libarchive_test_write_open_mem   Passed
 77/111 Testing bsdtar_test_0                    Passed
 78/111 Testing bsdtar_test_basic                Passed
 79/111 Testing bsdtar_test_copy                 Passed
--- snip ---
109/111 Testing bsdcpio_test_passthrough_dotdo   Passed
110/111 Testing bsdcpio_test_passthrough_rever   Passed
111/111 Testing bsdcpio_test_pathmatch           Passed

100% tests passed, 0 tests failed out of 111

SVN-Revision: 837

16 years agoAdd installation of PDF documents into CMakeLists.txt
Michihiro NAKAJIMA [Mon, 23 Mar 2009 00:25:29 +0000 (20:25 -0400)] 
Add installation of PDF documents into CMakeLists.txt
for Windows platform.

SVN-Revision: 836

16 years agoIssue 16: Change the text files to all end in '.txt' for the
Tim Kientzle [Sun, 22 Mar 2009 17:17:27 +0000 (13:17 -0400)] 
Issue 16: Change the text files to all end in '.txt' for the
convenience of file browsers (including Windows shell, KDE, Mac OS
Finder, etc) that use file extensions as a type hint.

SVN-Revision: 835

16 years agoIssue 16: Generate PDF documentation as well as text and man formats.
Tim Kientzle [Sun, 22 Mar 2009 17:02:56 +0000 (13:02 -0400)] 
Issue 16:  Generate PDF documentation as well as text and man formats.

SVN-Revision: 834

16 years agoCatch up with r829.
Michihiro NAKAJIMA [Sun, 22 Mar 2009 10:39:08 +0000 (06:39 -0400)] 
Catch up with r829.

SVN-Revision: 833

16 years agosvn:ignore tuneup
Tim Kientzle [Sun, 22 Mar 2009 06:24:43 +0000 (02:24 -0400)] 
svn:ignore tuneup

SVN-Revision: 832

16 years agoRemove unused dir.
Tim Kientzle [Sun, 22 Mar 2009 06:23:26 +0000 (02:23 -0400)] 
Remove unused dir.

SVN-Revision: 831

16 years agoAdd PROJECTS to the distribution, sort the file list.
Tim Kientzle [Sun, 22 Mar 2009 06:12:26 +0000 (02:12 -0400)] 
Add PROJECTS to the distribution, sort the file list.

SVN-Revision: 830

16 years agoAdd a check for wcrtomb() and control the FreeBSD extattr function
Tim Kientzle [Sun, 22 Mar 2009 06:03:22 +0000 (02:03 -0400)] 
Add a check for wcrtomb() and control the FreeBSD extattr function
tests by --enable-xattr as well.

SVN-Revision: 829

16 years agoFiles that are used by the autoconf build system belong in
Tim Kientzle [Sun, 22 Mar 2009 05:58:07 +0000 (01:58 -0400)] 
Files that are used by the autoconf build system belong in
the build/autoconf dir.  We may need to further split that
out to separate the files that get generated by autoconf/automake/etc
from the files that are provided by libarchive.

SVN-Revision: 828

16 years agoIssue 15, part 14. Build system
Charles Wilson [Sat, 21 Mar 2009 14:25:50 +0000 (10:25 -0400)] 
Issue 15, part 14. Build system
  build/m4/la_syslibsearchpath.m4: New.  Allows to automatically
      determine where binmode.o is located, even on cross builds (hopefully).
  configure.ac: specify AC_CONFIG_MACRO_DIR, AC_CANONICAL_HOST, and
      AC_LIBTOOL_WIN32_DLL. Add new AM_CONDITIONALs INC_WINDOWS_FILES and
      INC_CYGWIN_FILES. Use new macro LA_SYS_LIB_SEARCH_PATH to set
      new AC_SUBST, PROG_LDADD_EXTRA, to <some path>/binmode.o on cygwin.
  Makefile.am: Specify ACLOCAL_AMFLAGS. Use INC_WINDOWS_FILES and
      INC_CYGWIN_FILES where appropriate. Update all *_EXTRA_DIST variables
      with new files. Add -DLIBARCHIVE_STATIC to all *_test_CPPFLAGS. Add
      or update existing ${APP}_LDADD to specify @PROG_LDADD_EXTRA@ (this
      enables to link apps with binmode.o on cygwin).

Works on cygwin (ac-2.63, am-1.10.1, libtool-2.2.7a). Passes all tests.
Works on linux (ac-2.61, am-1.10, libtool-1.5.22). Passes all tests.

 Makefile.am                     |   75 +++++++++++++++++++++++++++++++----
 build/m4/la_syslibsearchpath.m4 |   84 ++++++++++++++++++++++++++++++++++++++++
 configure.ac                    |   34 ++++++++++++++++

SVN-Revision: 827

16 years agoAdd support both static and dynamic build of bsdtar and bsdcpio
Michihiro NAKAJIMA [Sat, 21 Mar 2009 02:33:49 +0000 (22:33 -0400)] 
Add support both static and dynamic build of bsdtar and bsdcpio
to the cmake build process except Windows.

SVN-Revision: 826

16 years agoOn Windows, build bsdcpio by default.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 21:41:16 +0000 (17:41 -0400)] 
On Windows, build bsdcpio by default.

SVN-Revision: 825

16 years agoTesting: test_pathmatch.c now has 100% test coverage of pathmatch.c
Tim Kientzle [Fri, 20 Mar 2009 19:21:45 +0000 (15:21 -0400)] 
Testing:  test_pathmatch.c now has 100% test coverage of pathmatch.c
Allow '$' to force anchor at end iff PATHMATCH_NO_ANCHOR_END is in flags.
Fix backslash escaping so that patterns such as "\\/./" or "/\\./" match
an explicit "/./" but do not match plain "/", even though "/./" does
ordinarily match "/".

I think this is finally sufficient to match my long-standing desire
to be able to extract "./foo/" by just asking for "foo".
There's still an open question whether this can be extended to handle
Windows-style \ path separators without causing conflicts with
the use of \ as a quote character.  I don't think it can.

SVN-Revision: 824

16 years agoSplit a CMakeLists.txt into each subdirectory, and remove
Michihiro NAKAJIMA [Fri, 20 Mar 2009 12:57:14 +0000 (08:57 -0400)] 
Split a CMakeLists.txt into each subdirectory, and remove
useless '#include LIST_H'. It was used for out-of-source build
with the previous CMakeLists.txt.

SVN-Revision: 823

16 years agoAdd test_entry_strmode.c into CMakeLists.txt.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 10:03:12 +0000 (06:03 -0400)] 
Add test_entry_strmode.c into CMakeLists.txt.
It's forgotten for a long time.

SVN-Revision: 822

16 years agoCatch up with r819 for cmake.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 09:14:13 +0000 (05:14 -0400)] 
Catch up with r819 for cmake.

SVN-Revision: 821

16 years agoIssue 15, part 13. cygwin test failures
Charles Wilson [Fri, 20 Mar 2009 07:52:34 +0000 (03:52 -0400)] 
Issue 15, part 13. cygwin test failures
  cpio/test/test_owner_parse.c: Attempt to work around lack
     of 'root' account. May need to revisit.
  libarchive/archive_write_disk.c: For cygwin, go ahead and try
     to chown if requested; don't assume failure based on uid/gid.
  libarchive/test/test_read_disk.c: For cygwin, don't attempt
     to verify "standare" uname/gname lookup.

SVN-Revision: 820

16 years agoIssue 15, part 12. wchar_t is only 16 bits
Charles Wilson [Fri, 20 Mar 2009 07:14:49 +0000 (03:14 -0400)] 
Issue 15, part 12. wchar_t is only 16 bits
   Check the size in configure.ac/CMakeLists.txt,
   and react as needed in libarchive/archive_string.c.

SVN-Revision: 819

16 years agoIssue 15, part 11. bsdtar help message.
Charles Wilson [Fri, 20 Mar 2009 06:13:37 +0000 (02:13 -0400)] 
Issue 15, part 11. bsdtar help message.
  Document xz and lzma compression as well as gzip and bzip2.

SVN-Revision: 818

16 years agoIssue 15, part 10. __FBSDID macro
Charles Wilson [Fri, 20 Mar 2009 06:10:07 +0000 (02:10 -0400)] 
Issue 15, part 10. __FBSDID macro
   Is defined on the non-FreeBSD cygwin platform.
   This is because its libc is based on newlib, which borrows
   a lot of FreeBSD code unchanged. So, can't unconditionally
   define this macro but must guard it.

SVN-Revision: 817

16 years agoIssue 15, part 9. WINVER macro
Charles Wilson [Fri, 20 Mar 2009 06:01:23 +0000 (02:01 -0400)] 
Issue 15, part 9. WINVER macro
  When compiling with the w32api headers (used by mingw and cygwin)
  some symbols are not brought into scope by _WIN32_WINNT alone, but
  also require WINVER. Also, in *_cygwin.c files, change 0x500 to
  0x0500, for consistency with *_windows.c ones.

SVN-Revision: 816

16 years agoIssue 15, part 8. Headers and #includes...
Charles Wilson [Fri, 20 Mar 2009 05:47:49 +0000 (01:47 -0400)] 
Issue 15, part 8. Headers and #includes...
  cpio/test/test.h: remove now-useless #else branch
  cpio/cpio.c: ensure <time.h> and <sys/time.h> are included
     (fixes compile failure on cygwin)
  libarchive/archive_write_disk.c: change order of #includes
     (sys/xattr must preceded attr/xattr on linux, or compile fails)

SVN-Revision: 815

16 years agoMark several nonsensical combinations of options as errors.
Tim Kientzle [Thu, 19 Mar 2009 23:27:45 +0000 (19:27 -0400)] 
Mark several nonsensical combinations of options as errors.
Permit bare -t as a synonym for -it.

SVN-Revision: 814

16 years agoAdd support for -n option from GNU cpio.
Tim Kientzle [Thu, 19 Mar 2009 23:09:01 +0000 (19:09 -0400)] 
Add support for -n option from GNU cpio.

SVN-Revision: 813

16 years agoImprove cmake detecting a function on linux.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 22:21:35 +0000 (18:21 -0400)] 
Improve cmake detecting a function on linux.
The GNU C library defines stub functions(chflags, fchflags..),
and so cmake detecting the function process found out that
stub function. This commit avoid detecting the stub function.

SVN-Revision: 812

16 years agoEliminate failing some tests at bsdcpio_test when the platform
Michihiro NAKAJIMA [Thu, 19 Mar 2009 19:24:31 +0000 (15:24 -0400)] 
Eliminate failing some tests at bsdcpio_test when the platform
doesn't have a compression library such as gzip nor bzip2.

SVN-Revision: 811

16 years agoAdd checking if _FILE_OFFSET_BITS macro needed for large files.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 09:28:53 +0000 (05:28 -0400)] 
Add checking if _FILE_OFFSET_BITS macro needed for large files.

SVN-Revision: 810

16 years agoCorrect regex to get right version.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 06:03:36 +0000 (02:03 -0400)] 
Correct regex to get right version.

SVN-Revision: 809

16 years agoEliminate building error on Ubuntu.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 05:40:58 +0000 (01:40 -0400)] 
Eliminate building error on Ubuntu.

SVN-Revision: 808

16 years agoDocument the write-side options interface.
Tim Kientzle [Thu, 19 Mar 2009 04:01:24 +0000 (00:01 -0400)] 
Document the write-side options interface.

SVN-Revision: 807

16 years agoI misspelled ".Cm" <sigh>
Tim Kientzle [Thu, 19 Mar 2009 04:01:02 +0000 (00:01 -0400)] 
I misspelled ".Cm" <sigh>

SVN-Revision: 806

16 years agoBack out r786 except cheking __CYGWIN__ macro.
Michihiro NAKAJIMA [Thu, 19 Mar 2009 04:00:51 +0000 (00:00 -0400)] 
Back out r786 except cheking __CYGWIN__ macro.

SVN-Revision: 805

16 years agoDocument the read side of the options framework.
Tim Kientzle [Thu, 19 Mar 2009 03:39:51 +0000 (23:39 -0400)] 
Document the read side of the options framework.

SVN-Revision: 804

16 years agoIssue 15, part 7. Add --same-owner option to bsdtar.
Charles Wilson [Thu, 19 Mar 2009 03:02:36 +0000 (23:02 -0400)] 
Issue 15, part 7. Add --same-owner option to bsdtar.

SVN-Revision: 803

16 years agoIssue 15, part 6. Fix test failure on cygwin-1.7.x
Charles Wilson [Thu, 19 Mar 2009 02:54:30 +0000 (22:54 -0400)] 
Issue 15, part 6. Fix test failure on cygwin-1.7.x
  In cpio/test/tests.h: new #define to disable certain
  tests on cygwin. POSIX does not require that the .nlinks
  field be accurate for directories, and as an optimization
  newer cygwin does not even try to ensure its accuracy.
  Therefore, it is not a failure if wrong; cpio tests should
  not verify its value -- at least on cygwin.
  cpio/test/test_format_newc.c: Use new #define to skip
     .nlinks test.
  cpio/test/test_option_c.c: ditto.

SVN-Revision: 802

16 years agoIssue 15, part 5. New files for cygwin/cpio
Charles Wilson [Thu, 19 Mar 2009 02:43:53 +0000 (22:43 -0400)] 
Issue 15, part 5. New files for cygwin/cpio
  Added cpio/cpio_cygwin.[c|h] which are simply copies
  of the relevant portions of cpio/cpio_windows.[c|h]
  Modified cpio/cpio_platform.h to #include as needed.
  Modified cpio/cpio.c to call new bsdcpio_is_privileged()
  function on cygwin also.

SVN-Revision: 801

16 years agoIssue 15, part 4. New files for cygwin/bsdtar
Charles Wilson [Thu, 19 Mar 2009 02:36:24 +0000 (22:36 -0400)] 
Issue 15, part 4. New files for cygwin/bsdtar
  Added tar/bsdtar_cygwin.[c|h] which are simply copies
  of the relevant portions of tar/bsdtar_windows.[c|h]
  Modified tar/bsdtar_platform.h to #include as needed.

SVN-Revision: 800

16 years agoUpdate the comments around the archive_write_disk functions.
Tim Kientzle [Thu, 19 Mar 2009 01:12:05 +0000 (21:12 -0400)] 
Update the comments around the archive_write_disk functions.

SVN-Revision: 799

16 years agoOn the cmake build process, it is better to use FindOpenSSL module
Michihiro NAKAJIMA [Wed, 18 Mar 2009 22:05:18 +0000 (18:05 -0400)] 
On the cmake build process, it is better to use FindOpenSSL module
to find out OpenSSL library.

SVN-Revision: 798

16 years agoAvoid building error when target system is Win64.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 21:19:52 +0000 (17:19 -0400)] 
Avoid building error when target system is Win64.

SVN-Revision: 797

16 years agoMinor fix. correct comment about cmake on Windows.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 19:12:31 +0000 (15:12 -0400)] 
Minor fix. correct comment about cmake on Windows.

SVN-Revision: 796

16 years agoMinor fix. correct return value type.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 18:59:10 +0000 (14:59 -0400)] 
Minor fix. correct return value type.

SVN-Revision: 795

16 years agoOn Windows, fix build error.
Michihiro NAKAJIMA [Wed, 18 Mar 2009 18:51:20 +0000 (14:51 -0400)] 
On Windows, fix build error.

SVN-Revision: 794

16 years agoComplete test coverage of archive_entry_strmode().
Tim Kientzle [Wed, 18 Mar 2009 11:10:33 +0000 (07:10 -0400)] 
Complete test coverage of archive_entry_strmode().

SVN-Revision: 793

16 years agoCoverage testing revealed a few under-tested areas of archive_entry
Tim Kientzle [Wed, 18 Mar 2009 10:51:47 +0000 (06:51 -0400)] 
Coverage testing revealed a few under-tested areas of archive_entry
which in turn uncovered a bug in archive_entry (sourcepath not being
cloned).

SVN-Revision: 792

16 years agoParse the status code that comes back from waitpid() at close time.
Tim Kientzle [Wed, 18 Mar 2009 09:57:44 +0000 (05:57 -0400)] 
Parse the status code that comes back from waitpid() at close time.

SVN-Revision: 791

16 years agoReport errors from archive_read_close().
Tim Kientzle [Wed, 18 Mar 2009 09:56:36 +0000 (05:56 -0400)] 
Report errors from archive_read_close().

SVN-Revision: 790

16 years agoIssue 15, part 3. Mechanical conversion of #defines, cpio/
Charles Wilson [Wed, 18 Mar 2009 04:11:40 +0000 (00:11 -0400)] 
Issue 15, part 3. Mechanical conversion of #defines, cpio/
   #ifdef _WIN32   --> #if defined(_WIN32) && !defined(__CYGWIN__)
   #ifndef _WIN32  --> #if !defined(_WIN32) || defined(__CYGWIN__)
Exceptions to the general rule:
   cpio/test/main.c: some additional comments
   cpio/cpio.c: some additional comments

SVN-Revision: 789

16 years agoIssue 15, part 2. Mechanical conversion of #defines, tar/
Charles Wilson [Wed, 18 Mar 2009 03:53:23 +0000 (23:53 -0400)] 
Issue 15, part 2. Mechanical conversion of #defines, tar/
   #ifdef _WIN32   --> #if defined(_WIN32) && !defined(__CYGWIN__)
   #ifndef _WIN32  --> #if !defined(_WIN32) || defined(__CYGWIN__)
Exceptions to the general rule:
   tar/test/main.c: some additional comments
   tar/bsdtar.c: some additional comments

SVN-Revision: 788

16 years agoIssue 15, part 1. Mechanical conversion of #defines, libarchive/
Charles Wilson [Wed, 18 Mar 2009 03:43:12 +0000 (23:43 -0400)] 
Issue 15, part 1. Mechanical conversion of #defines, libarchive/
   #ifdef _WIN32   --> #if defined(_WIN32) && !defined(__CYGWIN__)
   #ifndef _WIN32  --> #if !defined(_WIN32) || defined(__CYGWIN__)
Exceptions to the general rule:
   libarchive/archive.h: we want declspec for both
   libarchive/archive_entry.h: ditto
   libarchive/archive_write_disk.c: we want to fix backslashs,
     and to use cleanup_pathname_win on both.

SVN-Revision: 787

16 years agoMove _WIN32_WINNT macro to build/cmake/config.h.in
Michihiro NAKAJIMA [Wed, 18 Mar 2009 01:54:17 +0000 (21:54 -0400)] 
Move _WIN32_WINNT macro to build/cmake/config.h.in

SVN-Revision: 786

16 years agoOur installation instructions assume you already have a tar
Tim Kientzle [Tue, 17 Mar 2009 22:51:42 +0000 (18:51 -0400)] 
Our installation instructions assume you already have a tar
program.  This is a minimalist implementation that should
allow people to bootstrap the full libarchive distribution.

SVN-Revision: 780

16 years agoOn Windows, previous commit occurs link error.
Michihiro NAKAJIMA [Tue, 17 Mar 2009 22:19:39 +0000 (18:19 -0400)] 
On Windows, previous commit occurs link error.
This commit just avoid it.

SVN-Revision: 779

16 years agoOn the cmake build process, bsdtar and bsdcpio
Michihiro NAKAJIMA [Tue, 17 Mar 2009 21:43:52 +0000 (17:43 -0400)] 
On the cmake build process, bsdtar and bsdcpio
use static library of libarchive because
configure build process does it.

SVN-Revision: 778

16 years agoThe cmake build process makes static library as configure does.
Michihiro NAKAJIMA [Tue, 17 Mar 2009 20:31:21 +0000 (16:31 -0400)] 
The cmake build process makes static library as configure does.

SVN-Revision: 777

16 years agoAdd support shared library number to the cmake build.
Michihiro NAKAJIMA [Tue, 17 Mar 2009 19:53:31 +0000 (15:53 -0400)] 
Add support shared library number to the cmake build.

SVN-Revision: 776

16 years agoInitial support install target for the cmake build.
Michihiro NAKAJIMA [Mon, 16 Mar 2009 19:23:29 +0000 (15:23 -0400)] 
Initial support install target for the cmake build.

SVN-Revision: 775

16 years agoOn Windows, libarchive has already supported hardlink.
Michihiro NAKAJIMA [Mon, 16 Mar 2009 18:53:36 +0000 (14:53 -0400)] 
On Windows, libarchive has already supported hardlink.

SVN-Revision: 774

16 years agoOn Windows, skip test_owner_parse. Windows cannot handle uid/gid as
Michihiro NAKAJIMA [Mon, 16 Mar 2009 12:47:21 +0000 (08:47 -0400)] 
On Windows, skip test_owner_parse. Windows cannot handle uid/gid as
UNIX like system. We need to improve it.

Now all bsdcpio tests passed.
Results are:
0 of 22 tests reported failures
 Total of 675 assertions checked.
 Total of 0 assertions failed.
 Total of 1 assertions skipped.

SVN-Revision: 773

16 years agoNL macro is no longer needed.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 14:04:49 +0000 (10:04 -0400)] 
NL macro is no longer needed.

SVN-Revision: 772

16 years agoOn Windows, pass test_passthrough_reverse in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 13:51:44 +0000 (09:51 -0400)] 
On Windows, pass test_passthrough_reverse in bsdcpio_test.

SVN-Revision: 771

16 years agoOn Windows, pass test_passthrough_dotdot in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 13:42:22 +0000 (09:42 -0400)] 
On Windows, pass test_passthrough_dotdot in bsdcpio_test.

SVN-Revision: 770

16 years agoOn Windows, pass test_option_y in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:59:06 +0000 (08:59 -0400)] 
On Windows, pass test_option_y in bsdcpio_test.

SVN-Revision: 769

16 years agoOn Windows, pass test_option_version in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:55:21 +0000 (08:55 -0400)] 
On Windows, pass test_option_version in bsdcpio_test.

SVN-Revision: 768

16 years agoOn Windows, pass test_option_t in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:46:17 +0000 (08:46 -0400)] 
On Windows, pass test_option_t in bsdcpio_test.

SVN-Revision: 767

16 years agoOn Windows, pass test_option_m in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:07:16 +0000 (08:07 -0400)] 
On Windows, pass test_option_m in bsdcpio_test.

SVN-Revision: 766

16 years agoOn Windows, pass test_option_f in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 12:05:15 +0000 (08:05 -0400)] 
On Windows, pass test_option_f in bsdcpio_test.

SVN-Revision: 765

16 years agoOn Windows, pass test_option_d in bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 11:21:05 +0000 (07:21 -0400)] 
On Windows, pass test_option_d in bsdcpio_test.

SVN-Revision: 764

16 years agoAdd assertFileTextContents to bsdcpio_test.
Michihiro NAKAJIMA [Fri, 13 Mar 2009 11:05:58 +0000 (07:05 -0400)] 
Add assertFileTextContents to bsdcpio_test.
It asserts the contents of a text file and pass over
different new line characters.

SVN-Revision: 763

16 years agoReassign option -J to xz compression(--xz) at bsdtar.
Michihiro NAKAJIMA [Thu, 12 Mar 2009 21:27:42 +0000 (17:27 -0400)] 
Reassign option -J to xz compression(--xz) at bsdtar.
gtar 1.22 has been changed it.

SVN-Revision: 762

16 years agoNew documentation...
Tim Kientzle [Wed, 11 Mar 2009 21:54:33 +0000 (17:54 -0400)] 
New documentation...

SVN-Revision: 761

16 years agoOn Windows, pass test_option_c in bsdcpio_test.
Michihiro NAKAJIMA [Wed, 11 Mar 2009 09:41:51 +0000 (05:41 -0400)] 
On Windows, pass test_option_c in bsdcpio_test.

SVN-Revision: 760

16 years agoOn Windows, pass test_option_a in bsdcpio_test.
Michihiro NAKAJIMA [Wed, 11 Mar 2009 09:38:00 +0000 (05:38 -0400)] 
On Windows, pass test_option_a in bsdcpio_test.
- Tweak cpio; close a file descriptor to restore access times
  before we call lutimes/utimes function.

SVN-Revision: 759

16 years agoIf a platform doesn't have fchdir function, it is unnecessary
Michihiro NAKAJIMA [Tue, 10 Mar 2009 14:19:33 +0000 (10:19 -0400)] 
If a platform doesn't have fchdir function, it is unnecessary
that calling open(".", ..) and related handling in tar/tree.c.

Suggested by Joerg Sonnenberger.

SVN-Revision: 758

16 years agoCheck _WIN32 instead of __timeval when we use struct __timeval.
Michihiro NAKAJIMA [Tue, 10 Mar 2009 11:41:16 +0000 (07:41 -0400)] 
Check _WIN32 instead of __timeval when we use struct __timeval.
__timeval is defined in archive_windows.h and we use it for
Windows only, so __timeval is not expected for using on other
platform.

SVN-Revision: 757

16 years agoFirst cut at archive_read_disk documentation.
Tim Kientzle [Tue, 10 Mar 2009 06:00:55 +0000 (02:00 -0400)] 
First cut at archive_read_disk documentation.

SVN-Revision: 756

16 years agoTweak the "other platforms" installation instructions; this
Tim Kientzle [Tue, 10 Mar 2009 04:29:31 +0000 (00:29 -0400)] 
Tweak the "other platforms" installation instructions; this
needs lots more help.

SVN-Revision: 755

16 years agoMinor README updates.
Tim Kientzle [Tue, 10 Mar 2009 00:21:14 +0000 (20:21 -0400)] 
Minor README updates.

SVN-Revision: 754