Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#7373 closed defect (fixed)

no ports install; gnutar complains about --no-same-owner

Reported by: rhaleblian@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

Sorry guys if this does not belong in Bugzilla, as it may not be a bug at all. Any installs via the 'port' program fail in the same way, eg:

65:~ rhaleblian$ sudo port install readline ---> Extracting readline Error: Target com.apple.extract returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_readline/work" && gzip -dc /opt/local/var/db/dports/distfiles/readline/readline-5.0.tar.gz | /usr/bin/gnutar --no-same-owner -xf -" returned error 2 Command output: /usr/bin/gnutar: unrecognized option `--no-same-owner' Try `/usr/bin/gnutar --help' for more information.

gzip: stdout: Broken pipe

I've tried ports readline, mutella, vim, nethack, all behave the same. Did I install DarwinPorts-1.2.pkg improperly?

65:~ rhaleblian$ uname -a Darwin 65.39.179.135.novuscom.net 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh powerpc

cheers

Change History (5)

comment:1 Changed 18 years ago by blb@…

/usr/bin/gnutar on 10.4.5 should support that option; what does

/usr/bin/gnutar --version

return?

comment:2 Changed 18 years ago by rhaleblian@…

65:~/.xemacs rhaleblian$ /usr/bin/gnutar --version tar (GNU tar) 1.13

Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by John Gilmore and Jay Fenlason.

uhoh. -rwxr-xr-x 1 root wheel 24012 Nov 22 2002 /usr/bin/gnuserv -rwxr-xr-x 1 root wheel 153244 Nov 22 2002 /usr/bin/gnutar

I have a sinking feeling that an Emacs installation replaced gnutar. Could you recommend how to get the original 10.4.5 version back? At any rate this ticket should probably be closed.

comment:3 Changed 18 years ago by rhaleblian@…

wellll.... I obtained the ports source from CVS, built, and installed gnutar. Now I can install mutella, readline, nethack, for examples.

Both gnutar know --same-owner, but not --no-same-owner ...

65:~/Development/darwinports/base rhaleblian$ which gnutar /opt/local/bin/gnutar 65:~/Development/darwinports/base rhaleblian$ gnutar --version tar (GNU tar) 1.13

Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by John Gilmore and Jay Fenlason. 65:~/Development/darwinports/base rhaleblian$ gnutar --help GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive.

Usage: gnutar [OPTION]... [FILE]...

If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments.

Main operation mode:

-t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive

--concatenate same as -A --delete delete from the archive (not on mag tapes!)

Operation modifiers:

-W, --verify attempt to verify the archive after writing it

--remove-files remove files after adding them to the archive

-k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it

--recursive-unlink empty hierarchies prior to extracting directory

-S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup

--ignore-failed-read do not exit with nonzero on unreadable files

Handling of file attributes:

--owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files

-m, --modification-time don't extract file modified time

--same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names

-p, --same-permissions extract all protection information

--preserve-permissions same as -p

-s, --same-order sort names to extract to match archive

--preserve-order same as -s --preserve same as both -p and -s

Device selection and switching:

-f, --file=ARCHIVE use archive file or device ARCHIVE

--force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh

-[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M)

--new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE

Device blocking:

-b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record

--record-size=SIZE SIZE bytes per record, multiple of 512

-i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes)

Archive format selection:

-V, --label=NAME create archive with volume name NAME

PATTERN at list/extract time, a globbing PATTERN

-o, --old-archive, --portability write a V7 format archive

--posix write a POSIX conformant archive

-z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress

--use-compress-program=PROG filter through PROG (must accept -d)

Local file selection:

-C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME

--null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN

-X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to

--no-recursion avoid descending automatically in directories

-l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive -N, --newer=DATE only store files newer than DATE

--newer-mtime compare date and time when data changed only --after-date=DATE same as -N --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix

Informative output:

--help print this help, then exit --version print tar program version number, then exit

-v, --verbose verbosely list files processed

--checkpoint print directory names while reading the archive --totals print total bytes written while creating archive

-R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action

--confirmation same as -w

The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are:

t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups

GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* tar' defaults to -f- -b20'.

Report bugs to <tar-bugs@…>.

comment:4 Changed 18 years ago by blb@…

You should be able to use something like Pacifist to grab gnutar out of the install DVD (it's in the BaseSystem package). 10.4 (through 10.4.5 since it hasn't been updated) has version 1.14 according to my system. You may also need to find what else may be overwritten, or (unfortunately) do a reinstall if there's lots of stuff.

If you install gnutar through DP as well, it should be version 1.15.1, so it's strange that 'which' says DP's location, but the version check still says 1.13.

comment:5 Changed 18 years ago by rhaleblian@…

Resolution: fixed
Status: newclosed

well, yes, tar 1.14 supports --no-same-owner and that's what i have in /usr/bin now. wierd.

Note: See TracTickets for help on using tickets.