git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] auto-detect changed $prefix in Makefile and properly rebuild to avoid broken install

From
Karl Hasselström <kha@treskal.com>
Date
Jun 18, 2006, 14:44 UTC
Message-ID
<20060618144447.GB2446@diana.vm.bytemark.co.uk>
In-Reply-To
<7vzmga1y9k.fsf@assigned-by-dhcp.cox.net>
On 2006-06-18 04:47:19 -0700, Junio C Hamano wrote:
Show 15 quoted lines
> Thanks for the explanation.
>
> If that's the case, I think it makes the original problem Santi
> brought up a non-issue. In this sequence:
>
>         make prefix=/home/santi/usr
>         make install prefix=/home/santi/usr/stow/git
>         cd /home/santi/usr/stow/
>         stow -v git
>
> the building phase could have used the same prefix as the install
> phase uses, and git can find its subprograms in gitexecdir (=
> ~/usr/stow/git/bin) just fine. It probably is even slightly more
> efficient since it does not have to go through the symlink stow
> installs.
Yes, exactly. I've always built git like this:
  $ make prefix=/usr/local/stow/git
  $ sudo make prefix=/usr/local/stow/git install
  $ cd /usr/local/stow
  $ sudo stow git

It works for all other programs I've tried too (most of which only require me to specify the prefix once, with ./configure --prefix=...). The programs never need to know about the symlinks; they're only there for when other programs need to access them (via PATH, etc.).

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Junio C Hamano
Message 17 of 17 in “auto-detect changed $prefix in Makefile and properly rebuild to avoid broken install”
  1. auto-detect changed $prefix in Makefile and properly rebuild to avoid broken installYakov Lerner, Jun 14, 2006
  2. Junio C HamanoJun 14, 2006
  3. Yakov LernerJun 14, 2006
  4. Junio C HamanoJun 14, 2006
  5. Yakov LernerJun 14, 2006
  6. Matthias LederhoferJun 15, 2006
  7. Yakov LernerJun 15, 2006
  8. Petr BaudisJun 18, 2006
  9. SantiJun 15, 2006
  10. Yakov LernerJun 15, 2006
  11. SantiJun 15, 2006
  12. Alexander LitvinovJun 15, 2006
  13. Junio C HamanoJun 17, 2006
  14. Junio C HamanoJun 17, 2006
  15. Karl HasselströmJun 18, 2006
  16. Junio C HamanoJun 18, 2006
  17. Karl HasselströmJun 18, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.