[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4904: zoo won't create new directories when extracting



Package: zoo
Status: install ok installed
Priority: optional
Section: misc
Maintainer: Martin Schulze <joey@namib.north.de>
Version: 2.10-2

The zoo archiver should automatically create any needed directories
when extracting files, unless it has been told not to.  The debian
version will not create any directories, even when explicitly told to
do so, although it will extract into directories that already exist.

A look at the configuration showed that the linux configuration that is
set up in the makefile is a very minimal configuration for a very old
version of unix.  If the 'debian.rules' file is changed from calling
'$(MAKE) linux' to '$(MAKE) bsdansi' then the resulting binary will
handle directories properly.  It will also handle filenames longer than
14 characters as I had reported in an earlier bug report.

The only minor problem that I saw with the 'bsdansi' target is that
warnings will be reported for signals being defined as 'int' instead of
'void', however this is already the case with the 'linux' target.

The following script will fail with the standard debian zoo, but will
extract all files when using the zoo compiled with the 'bsdansi'
target.

  #!/bin/bash
  ZOO=/usr/bin/zoo		# the debian copy
  #ZOO=/usr/local/bin/zoo		# my corrected copy

  cd /tmp
  mkdir dir1 dir2 dir1/testdir
  echo file 1 >dir1/testdir/file1
  echo file 2 >dir1/testdir/file2
  echo long file name 1 >dir1/testdir/longfilename001
  echo long file name 2 >dir1/testdir/longfilename002

  cd dir1
  $(ZOO) a ../test.zoo testdir/*	# archive the files in /tmp/test.zoo
  cd ../dir2
  $(ZOO) e// ../test.zoo		# extract the files and create dirs


The following is the output from the script with my working version of zoo.

  Zoo:  testdir/file1           --  ( 0%) added
  Zoo:  testdir/file2           --  ( 0%) added
  Zoo:  testdir/longfilename001 --  ( 0%) added
  Zoo:  testdir/longfilename002 --  ( 0%) added
  Zoo:  testdir/file1  -- extracted
  Zoo:  testdir/file2  -- extracted
  Zoo:  testdir/longfilename001 -- extracted
  Zoo:  testdir/longfilename002 -- extracted

-- 
Carl Johnson		carlj@peak.org

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: