git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Joe Eykholt <joe@nuovasystems.com>
Cc: git@vger.kernel.org
Subject: Re: minor makefile issues
Date: Thu, 02 Aug 2007 21:00:55 +0200	[thread overview]
Message-ID: <853az1223c.fsf@lola.goethe.zz> (raw)
In-Reply-To: <46B21CB9.9050303@nuovasystems.com> (Joe Eykholt's message of "Thu\, 02 Aug 2007 11\:04\:41 -0700")

Joe Eykholt <joe@nuovasystems.com> writes:

> Hi All,
>
> Due to my unusual environment, I ran into two issues when installing
> git 1.5.2.4 from source.
> Although these are unusual, they might not be unique and the fixes are easy:
>
>    1.  The make install failed because of line 49 in templates/Makefile:
>           (cd blt && $(TAR) cf - .) | \
>           (cd '$(DESTDIR_SQ)$(template_dir_SQ)' && $(TAR) xf -)
>    because I have CDPATH set, the 'cd blt' actually outputs the new
> directory on stdout
>    which confuses the second tar.  Changing this to 'cd ./blt' fixes
> it.  Perhaps this could
>    be considered a bash bug.

No, it is a user bug.  You don't want a script to _ever_ walk around
on its own volition, so you must _not_ export CDPATH.  Instead, set it
in .bashrc without exporting it.  That way, it will be available with
every interactive shell, and not interfering with scripts.

>    2.  My home directory containing my build tree is NFS-mounted, and
> root doesn't have any
>    permission to write it.  So, when doing 'make prefix=/usr/local
> install-doc' as root, I got these errors:
>
>    # make prefix=/usr/local install-doc
>    make -C Documentation install
>    make[1]: Entering directory
> /net/da01/home/jre/build/git-1.5.2.4/Documentation'
>    rm -f doc.dep+ doc.dep
>    rm: cannot remove `doc.dep': Permission denied
>    make[1]: *** [doc.dep] Error 1
>    make[1]: Leaving directory
> /net/da01/home/jre/build/git-1.5.2.4/Documentation'
>    make: *** [install-doc] Error 2
>
> I'm not sure what the best fix is for the second problem.  rm -f
> ignores non-existent files but not permission errors.
> I guess you could do 'rm -f doc.dep || true'.

First do "make doc" for your normal user, then make doc-install as
root.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

      reply	other threads:[~2007-08-02 19:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02 18:04 minor makefile issues Joe Eykholt
2007-08-02 19:00 ` David Kastrup [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=853az1223c.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=git@vger.kernel.org \
    --cc=joe@nuovasystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).