From: Yasuhiro KIMURA <yasu@utahime.org>
To: zsh-workers@zsh.org
Subject: 'make install' fails when build directory is differnet from that of source tree.
Date: Fri, 29 May 2020 15:07:52 +0900 (JST) [thread overview]
Message-ID: <20200529.150752.1706439437681626208.yasu@utahime.org> (raw)
Hello All,
'make install' fails when build directory is differnet from that of
source tree.
At first I found this problem when building with 5.8 source archive.
For example if I take following steps,
1. cd /tmp/zsh/source
2. tar xfpvJ /somewhere/zsh-5.8.tar.xz
3. cd /tmp/zsh/build
4. /tmp/zsh/source/zsh-5.8/configure --srcdir=/tmp/zsh/source/zsh-5.8
5. make
6. make DESTDIR=/tmp/zsh/install install
then step 6 fails as following.
----------------------------------------------------------------------
make[1]: Entering directory '/tmp/zsh/build/Doc'
/bin/sh /tmp/zsh/source/zsh-5.8/mkinstalldirs /tmp/zsh/install/usr/local/share/man/man1
mkdir -m 755 -p -- /tmp/zsh/install/usr/local/share/man/man1
for file in zsh.1 zshbuiltins.1 zshcalsys.1 zshcompctl.1 zshcompwid.1 zshcompsys.1 zshcontrib.1 zshexpn.1 zshmisc.1 zshmodules.1 zshoptions.1 zshparam.1 zshroadmap.1 zshtcpsys.1 zshzftpsys.1 zshzle.1 zshall.1; do \
test -s $file || exit 1; \
/bin/install -c -m 644 $file /tmp/zsh/install/usr/local/share/man/man1/`echo $file | sed 's|zsh|zsh|'` || exit 1; \done
make[1]: *** [Makefile:474: install.man] Error 1
make[1]: Leaving directory '/tmp/zsh/build/Doc'
make: *** [Makefile:222: install.man] Error 2
----------------------------------------------------------------------
But if I checked out source tree from git repository such problem
doesn't happen.
For example if I take following steps,
1. cd /tmp/zsh/source
2. git clone https://git.code.sf.net/p/zsh/code zsh
3. cd zsh
4. git checkout zsh-5.8
5. ./Util/preconfig
6. cd /tmp/zsh/build
7. /tmp/zsh/source/zsh/configure --srcdir=/tmp/zsh/source/zsh
8. make
9. make DESTDIR=/tmp/zsh/install install
then everything completes without any errors.
Why such difference happens? And how it is fixed?
Best Regards.
---
Yasuhiro KIMURA
next reply other threads:[~2020-05-29 6:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 6:07 Yasuhiro KIMURA [this message]
2020-05-29 22:54 ` Daniel Shahaf
2020-05-29 23:42 ` Daniel Shahaf
2020-05-30 9:05 ` Yasuhiro KIMURA
2020-05-31 1:39 ` Daniel Shahaf
2020-05-31 5:36 ` Yasuhiro KIMURA
2020-05-31 1:57 ` Daniel Shahaf
2020-05-31 7:46 ` Yasuhiro KIMURA
2020-06-01 8:03 ` Daniel Shahaf
2020-06-01 18:23 ` Yasuhiro KIMURA
2020-06-03 1:14 ` Daniel Shahaf
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200529.150752.1706439437681626208.yasu@utahime.org \
--to=yasu@utahime.org \
--cc=zsh-workers@zsh.org \
/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://git.vuxu.org/mirror/zsh/
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).