git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git configure script
@ 2008-11-26 19:30 Neale T. Pickett
  2008-11-26 20:53 ` Matthieu Moy
  0 siblings, 1 reply; 4+ messages in thread
From: Neale T. Pickett @ 2008-11-26 19:30 UTC (permalink / raw)
  To: git

I downloaded 1.6.0.4 from
http://kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz 
and ran

  ./configure --prefix=$HOME/opt

But it installed everything in $HOME/bin and $HOME/libexec.  Looking
into it, it seems the shipped Makefile doesn't look to see what --prefix
is, despite the configure script claiming that "make install" would
honor this.

I'm guessing it should have shipped with a Makefile.in or something, but
honestly Autoconf confuses the dickens out of me.

Neale

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

* Re: git configure script
  2008-11-26 19:30 git configure script Neale T. Pickett
@ 2008-11-26 20:53 ` Matthieu Moy
  2008-11-27  9:25   ` Mike Ralphson
  2008-12-01 19:12   ` Neale T. Pickett
  0 siblings, 2 replies; 4+ messages in thread
From: Matthieu Moy @ 2008-11-26 20:53 UTC (permalink / raw)
  To: Neale T. Pickett; +Cc: git

neale@lanl.gov (Neale T. Pickett) writes:

> But it installed everything in $HOME/bin and $HOME/libexec.  Looking
> into it, it seems the shipped Makefile doesn't look to see what --prefix
> is, despite the configure script claiming that "make install" would
> honor this.

It does, since it includes config.mak.autogen which overrides prefix
defined in Makefile.

I'm 99% sure you did something wrong. You should investigate by
looking into config.mak.autogen after running configure.

-- 
Matthieu

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

* Re: git configure script
  2008-11-26 20:53 ` Matthieu Moy
@ 2008-11-27  9:25   ` Mike Ralphson
  2008-12-01 19:12   ` Neale T. Pickett
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Ralphson @ 2008-11-27  9:25 UTC (permalink / raw)
  To: Neale T. Pickett; +Cc: git, Matthieu Moy

2008/11/26 Matthieu Moy <Matthieu.Moy@imag.fr>
>
> neale@lanl.gov (Neale T. Pickett) writes:
>
> > But it installed everything in $HOME/bin and $HOME/libexec.  Looking
> > into it, it seems the shipped Makefile doesn't look to see what --prefix
> > is, despite the configure script claiming that "make install" would
> > honor this.
>
> It does, since it includes config.mak.autogen which overrides prefix
> defined in Makefile.
>
> I'm 99% sure you did something wrong. You should investigate by
> looking into config.mak.autogen after running configure.

Indeed. I believe something goes a little funny if you build as root.
Can you try again running ./configure and (g)make as a non-root user,
then only (g)make install as root / under sudo etc.

Cheers, Mike

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

* Re: git configure script
  2008-11-26 20:53 ` Matthieu Moy
  2008-11-27  9:25   ` Mike Ralphson
@ 2008-12-01 19:12   ` Neale T. Pickett
  1 sibling, 0 replies; 4+ messages in thread
From: Neale T. Pickett @ 2008-12-01 19:12 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: git

Matthieu Moy <Matthieu.Moy@imag.fr> writes:

> It does, since it includes config.mak.autogen which overrides prefix
> defined in Makefile.
>
> I'm 99% sure you did something wrong. You should investigate by
> looking into config.mak.autogen after running configure.

This gave me the tip I needed.  I was doing this in my Makefile:

    make -C git-1.6.0.4 install

Instead of this:

    cd git-1.6.0.4 && make install

Since the include was prefixed with "-", I didn't get any warnings or
errors about not being able to find config.mak.autogen, and it fell back
to the default.

I'm not sure using the -C option to make is "something wrong", but then
again I am apparently the first person to run into this problem, so it's
probably not a big deal.

Thanks for your help :)

Neale

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

end of thread, other threads:[~2008-12-01 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 19:30 git configure script Neale T. Pickett
2008-11-26 20:53 ` Matthieu Moy
2008-11-27  9:25   ` Mike Ralphson
2008-12-01 19:12   ` Neale T. Pickett

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).