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

Re: "make quick-install-man" broke recently

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Aug 17, 2009, 05:58 UTC
Message-ID
<8c9a060908162258ua50e34ah53c1ada9dbcd4aa0@mail.gmail.com>
In-Reply-To
<7vd46v3tp1.fsf@alter.siamese.dyndns.org>
On Sun, Aug 16, 2009 at 22:17, Junio C Hamano<gitster@pobox.com> wrote:
Show 45 quoted lines
> merlyn@stonehenge.com (Randal L. Schwartz) writes:
>
>> % rm -rf /opt/git/share/man
>> % make prefix=/opt/git quick-install-man
>> make -C Documentation quick-install-man
>>     SUBDIR ../
>> make[2]: `GIT-VERSION-FILE' is up to date.
>> '/bin/sh' ./install-doc-quick.sh origin/man /opt/git/share/man
>> % make prefix=/opt/git quick-install-man
>> make -C Documentation quick-install-man
>>     SUBDIR ../
>> make[2]: `GIT-VERSION-FILE' is up to date.
>> '/bin/sh' ./install-doc-quick.sh origin/man /opt/git/share/man
>> error: git checkout-index: unable to create file /opt/git/share/man/man1/git-add.1 (File exists)
>> error: git checkout-index: unable to create file /opt/git/share/man/man1/git-am.1 (File exists)
>> error: git checkout-index: unable to create file /opt/git/share/man/man1/git-annotate.1 (File exists)
>> error: git checkout-index: unable to create file /opt/git/share/man/man1/git-apply.1 (File exists)
>> [...]
>>
>> So it fails the second time.  This is new behavior.
>
> Interesting, and this does not reproduce for me.
>
> I've tried "run twice back to back" like you did above, "run once, then
> 'find -type f -print | xargs touch' the target, and then run again", and also
> "run once, then 'find -type f -print | xargs chmod -w' the target, and then run again".
>
> None of these fail.
>
> One way I can think of to break it deliberately would be:
>
>        make prefix=/var/tmp/gomikuzu quick-install-man
>        find /var/tmp/gomikuzu -type d | xargs chmod -w
>        make prefix=/var/tmp/gomikuzu quick-install-man
>
> But then the failure is different from what you showed above:
>
>    error: unable to unlink old '/var/tmp/gomikuzu/share/...' (Permission denied)
>
> Puzzled.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

I was able to reproduce this one one of the machines I have access to, and bisecting shows that it was introduced by b6986d8 (git-checkout: be careful about untracked symlinks). This makes sense, since home-dirs are symlinks on the machine I was able to reproduce it on.

Hopefully this helps someone with a little stronger fu, to point them in the right direction.

Randal, does your machine have a similar symlinked $HOME setup?
Previous: Junio C HamanoNext: Randal L. Schwartz
Message 5 of 13 in “"make quick-install-man" broke recently”
  1. Randal L. SchwartzAug 17, 2009
  2. Junio C HamanoAug 17, 2009
  3. Randal L. SchwartzAug 17, 2009
  4. Junio C HamanoAug 17, 2009
  5. Jacob HelwigAug 17, 2009
  6. Randal L. SchwartzAug 17, 2009
  7. Junio C HamanoAug 17, 2009
  8. Johannes SixtAug 17, 2009
  9. Junio C HamanoAug 17, 2009
  10. Randal L. SchwartzAug 17, 2009
  11. Junio C HamanoAug 17, 2009
  12. Linus TorvaldsAug 17, 2009
  13. Junio C HamanoAug 17, 2009

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.