| Summary: | solaris only: tar '-C' not supported -> (g)make fails | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Daniel Franke <franke.daniel> |
| Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
See Bug #58145 also. "-C" means "change to that directory", is there a similar command line switch on solaris? There is a similar command (from solaris tar man-page):
SYNOPSIS
tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tar-
file ] [ exclude-file ] { -I include-file | -C directory
| file | file } ...
-C directory file
Performs a chdir (see cd(1)) operation on directory
and performs the c (create) or r (replace) operation
on file. Use short relative path names for file. If
file is `.', archive all files in directory. This
option enables archiving files from multiple direc-
tories not related by a close common parent.
It seems that the command order is important. Using
> tar -cf admin.tar admin/ -C .
instead of
> tar -C . -cf admin.tar admin/
works (at least I get a file named "admin.tar" containing the desired files).
Hmm... from the man page I'd guess that the correct use of "-C" would be
> tar -cf admin.tar -C . admin/
Can you please try that? If it succeeds, I'll patch the Makefile.am so we can close this bug.
Thank you,
Harry
Subject: RE: solaris only: tar '-C' not supported -> (g)make fails It seems that it doesn't matter if > tar -cf admin.tar -C . admin or > tar -cf admin.tar -C . admin -C . but it does matter if > tar -cf admin.tar -C . admin or > tar -cf admin.tar -C . admin/ since the latter DOES NOT work. (tar: admin/: No such file or directory) Hope I helped Daniel okay, should be fixed in CVS now. Thanks for you help :) Yes, works fine :) |
Version: 3.0.0a4 (using KDE 3.1.1) Installed from: compiled sources Compiler: gcc version 3.2.2 OS: SunOS (sun4u) release 5.8 Building latest CVS source (030517): [...] Making all in common gmake[4]: Entering directory `/home/franke/build/kdevelop-cvs/kdevelop/parts/appwizard/common' tar -C . -cf admin.tar admin/ tar: C: unknown option Usage: tar {txruc}[vfbFXhiBEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ... gmake[4]: *** [admin.tar.gz] Error 1 [...] This 'tar' is SUN standard tar-package. (Solaris 8, sparc) Workaround: use solaris 'gtar' package (SFWgtar, link gtar->tar) or get 'tar' from www.sunfreeware.com ... Could it be possible to omit the '-C' option?