Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
'make install' fails when build directory is differnet from that of source tree.
- X-seq: zsh-workers 45936
- From: Yasuhiro KIMURA <yasu@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: 'make install' fails when build directory is differnet from that of source tree.
- Date: Fri, 29 May 2020 15:07:52 +0900 (JST)
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author