From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26228 invoked from network); 29 May 2020 06:11:18 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 29 May 2020 06:11:18 -0000 Received: (qmail 4080 invoked by alias); 29 May 2020 06:11:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45936 Received: (qmail 11253 invoked by uid 1010); 29 May 2020 06:11:05 -0000 X-Qmail-Scanner-Diagnostics: from gate.utahime.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(183.180.29.210):SA:0(-2.0/5.0):. Processed in 4.89579 secs); 29 May 2020 06:11:05 -0000 X-Envelope-From: yasu@utahime.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at utahime.org designates 183.180.29.210 as permitted sender) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at eastasia.home.utahime.org Date: Fri, 29 May 2020 15:07:52 +0900 (JST) Message-Id: <20200529.150752.1706439437681626208.yasu@utahime.org> To: zsh-workers@zsh.org Subject: 'make install' fails when build directory is differnet from that of source tree. From: Yasuhiro KIMURA X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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