zsh-workers
 help / color / mirror / code / Atom feed
* 'make install' fails when build directory is differnet from that of source tree.
@ 2020-05-29  6:07 Yasuhiro KIMURA
  2020-05-29 22:54 ` Daniel Shahaf
  0 siblings, 1 reply; 11+ messages in thread
From: Yasuhiro KIMURA @ 2020-05-29  6:07 UTC (permalink / raw)
  To: zsh-workers

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-03  1:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  6:07 'make install' fails when build directory is differnet from that of source tree Yasuhiro KIMURA
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

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).