One more thing which probably should be mentioned in the book or 6.2
errata (um, am I posting to the right mailing list?):

Chapter 6.53. Tar-1.15.1

> root:/wrk/tar-1.15.1# make check
> [...skip...]
> ## -------------------------- ##
> ## GNU tar 1.15.1 test suite. ##
> ## -------------------------- ##
>   1: tar version                                  ok
> [...skip...]
>  19: --listed for individual files                ok
>  20: working --listed                             FAILED (listed02.at:148)
>  21: V7 and long names                            ok

Found this in testsuite.log:

> ## ---------------------- ##
> ## Detailed failed tests. ##
> ## ---------------------- ##
> 
> 20. listed02.at:28: testing ...
> listed02.at:148:
> mkdir gnu
> (cd gnu
> TAR_OPTIONS="-H gnu"
> export TAR_OPTIONS
> rm -rf *
>
> mkdir directory
> 
> echo Create directories
> mkdir tart
> sleep 1
> mkdir tart/c0
> sleep 1
> mkdir tart/c1
> sleep 1
> 
> for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
> do
>   echo File $file > $file
>   sleep 1
> done
> 
> sleep 1
> echo Creating main archive
> tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart || exit 1
> 
> sleep 1
> echo Modifying filesystem
> rm tart/a1
> mv tart/b1 tart/b2
> mv tart/c1 tart/c2
> touch tart/c2/ca3
> 
> echo Directory contents
> find tart|sort 2>/dev/null
> 
> sleep 1
> echo Creating incremental archive
> cp -p tart.incr1 tart.incr2
> tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
> 
> sleep 1
> 
> rm -rf tart/*
> echo Extracting main archive
> tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
> echo Extracting incremental archive
> # This command should produce three messages about deletion
> # of the existing files, that may appear in any order. Piping
> # to sort makes sure we don't depend on any particular ordering.
> tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
> 
> echo Final files:
> find tart|sort 2>/dev/null
> )
> --- -   2007-07-22 21:34:22.195246000 +0400
> +++ /wrk/tar-1.15.1/tests/testsuite.dir/at-stderr       2007-07-22 
> 21:34:22.000000000 +0400
> @@ -1,4 +1,4 @@
> -tar: tart/c0: Directory is new
>  tar: tart/c1: Directory is new
> +tar: tart/c0: Directory is new
>  tar: tart/c2: Directory is new
> 
> 20. listed02.at:28: 20. working --listed (listed02.at:28): FAILED 
> (listed02.at:148)

Looks like a bug in testsuite which is discussed here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00621.html

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to