Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

pkg_create tar problem

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> pkg_create tar problem Page: [1]
Login
Message << Older Topic   Newer Topic >>
pkg_create tar problem - May 3, '06, 11:37:03 AM   
richb

 

Posts: 2
Status: offline
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
Post #: 1
RE: pkg_create tar problem - May 3, '06, 12:53:10 PM   
richb

 

Posts: 2
Status: offline
Of course after I posted this I found the problem. Looks like /bin/tar and /bin/pax are messed up, their md5sums don't match the sums in /var/db/pkg/pax-1.5.3-bin/+CONTENTS. I'm not sure what versions they are but it isn't what we're supposed to have. Not sure how that happened but I think the machine was rebuilt or restored a while back so maybe something happened at that time.

(in reply to richb)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> pkg_create tar problem Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031