git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* make install fails because GNU tar needed
@ 2014-08-28 14:16 dev
  2014-08-28 14:50 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: dev @ 2014-08-28 14:16 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: Jeff King, git



Well I am making progress in that I have what looks like a
successful build.

what fails next on the non-linux world is the next requirement for
GNU tar for some reason :

# gmake CFLAGS="$CFLAGS" LDFLAGS="$LD_OPTIONS" NEEDS_LIBICONV=Yes \
> SHELL_PATH=/usr/local/bin/bash \
> SANE_TOOL_PATH=/usr/local/bin \
> USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \
> EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \
> NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \
> PERL_PATH=/usr/local/bin/perl \
> NO_PYTHON=1 DEFAULT_PAGER=/usr/xpg4/bin/more \
> DEFAULT_EDITOR=/usr/local/bin/vim DEFAULT_HELP_FORMAT=man \
> prefix=/usr/local install >
> ../git-2.0.4_SunOS5.10_sparcv9.006.install.log
    * new build flags
"read-cache.c", line 780: warning: statement not reached
"xdiff/xutils.c", line 180: warning: statement not reached
Writing perl.mak for Git
Writing MYMETA.yml and MYMETA.json
/bin/sh: gtar: /bin/shnot found
: gtar: not found
gmake[1]: *** [install] Error 1
gmake: *** [install] Error 2


Well that is maddening.

Is there some magic somewhere to use ordinary POSIX tar ?

Also, what is shnot ?

dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: make install fails because GNU tar needed
  2014-08-28 14:16 make install fails because GNU tar needed dev
@ 2014-08-28 14:50 ` Jeff King
  2014-08-28 15:08   ` dev
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff King @ 2014-08-28 14:50 UTC (permalink / raw)
  To: dev; +Cc: Jonathan Nieder, git

On Thu, Aug 28, 2014 at 10:16:48AM -0400, dev wrote:

> # gmake CFLAGS="$CFLAGS" LDFLAGS="$LD_OPTIONS" NEEDS_LIBICONV=Yes \
> > SHELL_PATH=/usr/local/bin/bash \
> > SANE_TOOL_PATH=/usr/local/bin \
> > USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \
> > EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \
> > NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \

As an aside, you may be able to drop some of these defines. For example,
we set NEEDS_SOCKET automatically on Solaris. See the "SunOS" section of
config.mak.uname for the complete set of defaults.

> Is there some magic somewhere to use ordinary POSIX tar ?

gmake TAR=tar ?

The default of gtar for Solaris dates back to 2005. There may have been
a reason then that is no longer valid now, or there may be something
besides "make install" which uses a more advanced feature.

> /bin/sh: gtar: /bin/shnot found
> : gtar: not found
> gmake[1]: *** [install] Error 1
> gmake: *** [install] Error 2
>
> [...]
>
> Also, what is shnot ?

Two messages stepping on each other's toes?

-Peff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: make install fails because GNU tar needed
  2014-08-28 14:50 ` Jeff King
@ 2014-08-28 15:08   ` dev
  2014-08-28 15:26     ` Matthieu Moy
  0 siblings, 1 reply; 5+ messages in thread
From: dev @ 2014-08-28 15:08 UTC (permalink / raw)
  To: Jeff King; +Cc: git, Jonathan Nieder



On August 28, 2014 at 10:50 AM Jeff King <peff@peff.net> wrote:
> On Thu, Aug 28, 2014 at 10:16:48AM -0400, dev wrote:
>
> > # gmake CFLAGS="$CFLAGS" LDFLAGS="$LD_OPTIONS" NEEDS_LIBICONV=Yes \
> > > SHELL_PATH=/usr/local/bin/bash \
> > > SANE_TOOL_PATH=/usr/local/bin \
> > > USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \
> > > EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \
> > > NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \
>
> As an aside, you may be able to drop some of these defines. For
> example,
> we set NEEDS_SOCKET automatically on Solaris. See the "SunOS" section
> of
> config.mak.uname for the complete set of defaults.

I figured as much but for the moment I am flailing along towards a nice
working build first and then pray to the gods of complication for some
kindness and simplification.  :-)

Thus far the build process seems to work fine. I have no idea if I
can use SSH protocol as I would need to set up a dummy to test it.
Everything else seems to work. I think. :-\

> > Is there some magic somewhere to use ordinary POSIX tar ?
>
> gmake TAR=tar ?

ha .. yeah I guess.

Actually I found a file called GIT-BUILD-OPTIONS :

# cat GIT-BUILD-OPTIONS
SHELL_PATH='/usr/local/bin/bash'
PERL_PATH='/usr/local/bin/perl'
DIFF='diff'
PYTHON_PATH='/usr/bin/python'
TAR='tar'
NO_CURL=''
USE_LIBPCRE='1'
NO_PERL=''
NO_PYTHON='1'
NO_UNIX_SOCKETS=''
NO_GETTEXT=''
GETTEXT_POISON=''


Funny looking options for NO_foo where I would think that a null
string indicates that in fact I have foo?  Because I do have curl
and perl and most likely UNIX_SOCKETS.  Regardless, I simply edited
that file and three others to stop the search for gtar.

> The default of gtar for Solaris dates back to 2005. There may have
> been
> a reason then that is no longer valid now, or there may be something
> besides "make install" which uses a more advanced feature.

Yes, I seem to recall that long long ago there were problems with old
tar on Solaris 2.5.1 back in the 90's and then it carried forwards up
to Solaris 7 or 8.  The ultimate POSIX tar as well as tar that can
archive
or extract anything from anything is Joerg Schilling's star.

   http://sourceforge.net/projects/s-tar/

I use that nearly everywhere that I must ensure all metadata and data
gets taken care of correctly and cross platform.  However, hell will
freeze over before we ever see it included in a distro or UNIX anywhere
so for now tar will suffice.

> > /bin/sh: gtar: /bin/shnot found
> > : gtar: not found
> > gmake[1]: *** [install] Error 1
> > gmake: *** [install] Error 2
> >
> > [...]
> >
> > Also, what is shnot ?
>
> Two messages stepping on each other's toes?

Yeah .. I saw that after I sent the email.

dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: make install fails because GNU tar needed
  2014-08-28 15:08   ` dev
@ 2014-08-28 15:26     ` Matthieu Moy
  2014-08-30 15:26       ` dev
  0 siblings, 1 reply; 5+ messages in thread
From: Matthieu Moy @ 2014-08-28 15:26 UTC (permalink / raw)
  To: dev; +Cc: Jeff King, git, Jonathan Nieder

dev <dev@cor0.com> writes:

> Actually I found a file called GIT-BUILD-OPTIONS :

That's a generated file (not included by the Makefile, but by some shell
scripts later), don't edit it. Use config.mak for your build
configuration.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: make install fails because GNU tar needed
  2014-08-28 15:26     ` Matthieu Moy
@ 2014-08-30 15:26       ` dev
  0 siblings, 0 replies; 5+ messages in thread
From: dev @ 2014-08-30 15:26 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: git, Jeff King, Jonathan Nieder



On August 28, 2014 at 11:26 AM Matthieu Moy
<Matthieu.Moy@grenoble-inp.fr> wrote:
> dev <dev@cor0.com> writes:
>
> > Actually I found a file called GIT-BUILD-OPTIONS :
>
> That's a generated file (not included by the Makefile, but by some
> shell
> scripts later), don't edit it. Use config.mak for your build
> configuration.

good to know .. thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-30 15:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 14:16 make install fails because GNU tar needed dev
2014-08-28 14:50 ` Jeff King
2014-08-28 15:08   ` dev
2014-08-28 15:26     ` Matthieu Moy
2014-08-30 15:26       ` dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).