[GRASS5] Again Solaris/tar/Makefile problem

Hi all,

find attached a report on tar/Makefile/Solaris. This was
reported before, I feel, we have ignored it.

Does anyone have a safe solution?

Thanks,

Markus

Hi Markus, Hi all,

the Solaris tar is flawed in some ways. Although it is not a general
solution i use the GNU tar command on Solaris x86. I remember that with
Solaris 7 one had to install GNU tar to use the GNU tools. Note that the
GNU tar program has to be first in the path or the Solaris tar is used
instead.

HTH,

Andreas

Markus Neteler wrote:

Hi all,

find attached a report on tar/Makefile/Solaris. This was
reported before, I feel, we have ignored it.

Does anyone have a safe solution?

Thanks,

Markus

  ------------------------------------------------------------------------

Subject: Latest Grass CVS
Date: Wed, 11 Apr 2001 12:08:52 -0700
From: "Wallace, Beverly T" <beverly.t.wallace@lmco.com>
To: "'Neteler, Markus'" <neteler@geog.uni-hannover.de>
CC: "Pelizzari, Michael" <michael.pelizzari@lmco.com>

Markus,

I downloaded the latest Grass from CVS. It has been months since I last
updated. I had a problem with "make install" on a sun workstation
(sparc-sun-solaris2.6). The tar commands had the following type of error:
        tar: bin/: No such file or directory
I fixed this by editing Makefile to change "bin/" to either "bin" or
"./bin". The problem was with the trailing slash. I did this for all the
tar commands (bwidget, documents, etc) in Makefile. I hope this change
works for your machines as well.

This new version of Grass is very nice. I like the friendly location and
mapset selection method.

Thanks, Bev Wallace

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Markus Neteler wrote:

find attached a report on tar/Makefile/Solaris. This was
reported before, I feel, we have ignored it.

Does anyone have a safe solution?

Is it not safe to simply omit the trailing slash?

If it isn't, they I guess that we would need to use

  find ... | tar cT ...

BTW: is tar's "C" switch non-standard?

--
Glynn Clements <glynn.clements@virgin.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hello,
  one of the problems on Solaris tar is that options MUST go first
(and i think it depends on getopt in the libraries which behaves
strangely). I installed Grass on a solaris, and solved the tar problem
that way (just moved options at the beginning).

  Hope that helps.
  Federico.

On Fri, 13 Apr 2001, Glynn Clements wrote:

Markus Neteler wrote:

> find attached a report on tar/Makefile/Solaris. This was
> reported before, I feel, we have ignored it.
>
> Does anyone have a safe solution?
Is it not safe to simply omit the trailing slash?
If it isn't, they I guess that we would need to use
  find ... | tar cT ...
BTW: is tar's "C" switch non-standard?

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Wed, Apr 18, 2001 at 03:30:33PM +0200, Federico Ponchio wrote:

Hello,
  one of the problems on Solaris tar is that options MUST go first
(and i think it depends on getopt in the libraries which behaves
strangely). I installed Grass on a solaris, and solved the tar problem
that way (just moved options at the beginning).

  Hope that helps.
  Federico.

Hi Federico,

would you be so kind a send a "diff" to either me or Justin?
Thanks,

Markus

On Fri, 13 Apr 2001, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > find attached a report on tar/Makefile/Solaris. This was
> > reported before, I feel, we have ignored it.
> >
> > Does anyone have a safe solution?
> Is it not safe to simply omit the trailing slash?
> If it isn't, they I guess that we would need to use
> find ... | tar cT ...
> BTW: is tar's "C" switch non-standard?
>
>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Markus Neteler * University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494 Fax: -3984

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Federico Ponchio wrote:

  one of the problems on Solaris tar is that options MUST go first
(and i think it depends on getopt in the libraries which behaves
strangely). I installed Grass on a solaris, and solved the tar problem
that way (just moved options at the beginning).

Huh? The options are at the beginning:

  ${SHELL} -c "cd ${GISBASE} ; tar cBf - bin/ | (cd ${INST_DIR} ; tar xBf - ) 2>/dev/null ; true"

We're not using the newer "dash" form (switches preceded with dashes,
with arguments immediately following the corresponding switch).

--
Glynn Clements <glynn.clements@virgin.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi all

Glynn Clements wrote:

Federico Ponchio wrote:

> one of the problems on Solaris tar is that options MUST go
> first (and i think it depends on getopt in the libraries which
> behaves strangely). I installed Grass on a solaris, and solved the
> tar problem that way (just moved options at the beginning).

Huh? The options are at the beginning:

        ${SHELL} -c "cd ${GISBASE} ; tar cBf - bin/ | (cd ${INST_DIR}
; tar xBf - ) 2>/dev/null ; true"

We're not using the newer "dash" form (switches preceded with dashes,
with arguments immediately following the corresponding switch).

Has this been solved yet? I just don't want this to be ignored again.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Justin Hickey wrote:

> > one of the problems on Solaris tar is that options MUST go
> > first (and i think it depends on getopt in the libraries which
> > behaves strangely). I installed Grass on a solaris, and solved the
> > tar problem that way (just moved options at the beginning).
>
> Huh? The options are at the beginning:
>
> ${SHELL} -c "cd ${GISBASE} ; tar cBf - bin/ | (cd ${INST_DIR}
> ; tar xBf - ) 2>/dev/null ; true"
>
> We're not using the newer "dash" form (switches preceded with dashes,
> with arguments immediately following the corresponding switch).

Has this been solved yet? I just don't want this to be ignored again.

Nothing has changed yet. I think that the relevant issue is a few
messages back:

Is it not safe to simply omit the trailing slash?

Unless someone actually says "no, FooOS complains if you omit the
trailing slash", I suggest that we remove it.

--
Glynn Clements <glynn.clements@virgin.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Glynn

Glynn Clements wrote:

Unless someone actually says "no, FooOS complains if you omit the
trailing slash", I suggest that we remove it.

Yes, but what were you trying to say with the following:

> > We're not using the newer "dash" form (switches preceded with
> > dashes, with arguments immediately following the corresponding
> > switch).

Has anyone tried this yet? I would rather leave the slash if possible
since it makes reading clearer.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Federico

(cc grass5)

On Mon, Apr 23, 2001 at 07:55:29AM +0100, Glynn Clements wrote:

Justin Hickey wrote:

> > > one of the problems on Solaris tar is that options MUST go
> > > first (and i think it depends on getopt in the libraries which
> > > behaves strangely). I installed Grass on a solaris, and solved the
> > > tar problem that way (just moved options at the beginning).
> >
> > Huh? The options are at the beginning:
> >
> > ${SHELL} -c "cd ${GISBASE} ; tar cBf - bin/ | (cd ${INST_DIR} ; tar xBf - ) 2>/dev/null ; true"

is this order of tar parameters working for you? Just to confirm!

> > We're not using the newer "dash" form (switches preceded with dashes,
> > with arguments immediately following the corresponding switch).
>
> Has this been solved yet? I just don't want this to be ignored again.

Nothing has changed yet. I think that the relevant issue is a few
messages back:

> Is it not safe to simply omit the trailing slash?

Unless someone actually says "no, FooOS complains if you omit the
trailing slash", I suggest that we remove it.

Usually we find out quickly if we change the cvs (brute force method).
O.k., not very elegant, but we need to find out now.

Regards

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi,
  i finally got the Makefile (i have not easy access to the solaris
machine, sorry for being late).
This is the line working for me:

${SHEL} -c "cd ${GISBASE} ; tar cBf - bin | (cd ${INST_DIR} ; tar xBf - )
; true"

Notice the missing slash after bin. That was the problem. How silly.

Federico.

On Mon, 23 Apr 2001, Markus Neteler wrote:

Hi Federico

(cc grass5)

On Mon, Apr 23, 2001 at 07:55:29AM +0100, Glynn Clements wrote:
>
> Justin Hickey wrote:
>
> > > > one of the problems on Solaris tar is that options MUST go
> > > > first (and i think it depends on getopt in the libraries which
> > > > behaves strangely). I installed Grass on a solaris, and solved the
> > > > tar problem that way (just moved options at the beginning).
> > >
> > > Huh? The options are at the beginning:
> > >
> > > ${SHELL} -c "cd ${GISBASE} ; tar cBf - bin/ | (cd ${INST_DIR} ; tar xBf - ) 2>/dev/null ; true"

is this order of tar parameters working for you? Just to confirm!

> > > We're not using the newer "dash" form (switches preceded with dashes,
> > > with arguments immediately following the corresponding switch).
> >
> > Has this been solved yet? I just don't want this to be ignored again.
>
> Nothing has changed yet. I think that the relevant issue is a few
> messages back:
>
> > Is it not safe to simply omit the trailing slash?
>
> Unless someone actually says "no, FooOS complains if you omit the
> trailing slash", I suggest that we remove it.

Usually we find out quickly if we change the cvs (brute force method).
O.k., not very elegant, but we need to find out now.

Regards

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Justin Hickey wrote:

Yes, but what were you trying to say with the following:

> > > We're not using the newer "dash" form (switches preceded with
> > > dashes, with arguments immediately following the corresponding
> > > switch).

I was replying to Federico:

  one of the problems on Solaris tar is that options MUST go first
(and i think it depends on getopt in the libraries which behaves
strangely). I installed Grass on a solaris, and solved the tar problem
that way (just moved options at the beginning).

With:

Huh? The options are at the beginning:

  ${SHELL} -c "cd ${GISBASE} ; tar cBf - bin/ | (cd ${INST_DIR} ; tar xBf - ) 2>/dev/null ; true"

We're not using the newer "dash" form (switches preceded with dashes,
with arguments immediately following the corresponding switch).

IOW, the tar commands are "tar cBf - bin/" and "tar xBf -", which do
have the options first.

GNU tar supports the "dash" form (e.g. "tar -c -f - -B ...") and, in
common with other GNU utilities, allows options to be interspersed
with filenames. I took the original post as pointing out that this
wouldn't work on other tars, and I was saying that we weren't doing
this.

Has anyone tried this yet? I would rather leave the slash if possible
since it makes reading clearer.

Tried what? Do you have a different interpretation of Federico's post?

--
Glynn Clements <glynn.clements@virgin.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Glynn

Glynn Clements wrote:

GNU tar supports the "dash" form (e.g. "tar -c -f - -B ...") and, in
common with other GNU utilities, allows options to be interspersed
with filenames. I took the original post as pointing out that this
wouldn't work on other tars, and I was saying that we weren't doing
this.

> Has anyone tried this yet? I would rather leave the slash if
> possible since it makes reading clearer.

Tried what? Do you have a different interpretation of Federico's
post?

Ahh. I see now. I thought that the new "dash" form you mentioned was an
alternative solution. I've never used GNU tar so I didn't quite
understand what you meant. I'll remove the trailing slash and see what
happens.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hello all

I removed the trailing slash from tar commands in Makefile.in. This
works so far for SGI and presumably Solaris.

Please let me know of any problems.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'