pkg_create is giving me tar errors. From the verbose output it appears tar doesn't like the command line it is given. For example, pkg_create calls, "tar -c -f .../myfile ..." but my tar command doesn't like the -c and -f flags, it seems to want cf instead.
tar -c -f myfile.tar install
tar: Unable to access -f: No such file or directory
tar: Unable to access myfile.tar: No such file or directory
tar: WARNING! These file names were not selected:
-f
myfile.tar
this works:
tar cf myfile.tar install
Here is the actual output from pkg_create:
$ pkg_create -v -c install/+COMMENT -d install/+DESC -i install/+INSTALL -k install/+DEINSTALL -f packlist mypkg-bin
Creating package mypkg-bin
Creating gzip'd tar ball in '/tmp/richb/mypkg-bin.tgz'
Running "tar -c -f /tmp/richb/mypkg-bin.tgz -z +CONTENTS +COMMENT +DESC +INSTALL +DEINSTALL -C /tmp/richb/install -I /tmp/tpkg.XXXXaaacTa "
tar: Unable to access -f: No such file or directory
tar: Unable to access -z: No such file or directory
tar: Unable to access -C: No such file or directory
tar: Unable to access -I: No such file or directory
tar: WARNING! These file names were not selected:
-f
-z
-C
-I
pkg_create: tar command failed with code 256
Here is my tar command:
$ type tar
tar is /bin/tar
$ ls -l /bin/tar
-rwxrwxr-x 1 Administrator +Administrators 217088 Nov 8 2003 /bin/tar
$ md5sum /bin/tar /bin/pax
MD5 (/bin/tar) = 9291529376a993920575bca1fc36aaa8
MD5 (/bin/pax) = 9291529376a993920575bca1fc36aaa8
$ pkg_info pax
Information for pax-1.5.3-bin:
Comment:
Version 1.5.3 of pax for Interix 3.5.
Required by:
pkg-2.5.3-bin
Description:
Version 1.5.3 of pax for Interix 3.5.
This package was created for the http://www.interopsystems.com/tools web page.
Any ideas what is wrong here? Do we somehow have the wrong tar command or pax package
or should I be picking up another tar? Any help is much appreciated!
Thanks!
rich
|