From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16772: Failure in "make install" on MS-Windows Date: Mon, 17 Feb 2014 16:48:52 +0200 Message-ID: <8338jhaj6z.fsf@gnu.org> References: <63r47232fz.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392648553 17989 80.91.229.3 (17 Feb 2014 14:49:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2014 14:49:13 +0000 (UTC) Cc: 16772@debbugs.gnu.org, lekktu@gmail.com To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 17 15:49:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WFPVV-0007IQ-8p for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2014 15:49:17 +0100 Original-Received: from localhost ([::1]:41241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFPVU-0005vh-IJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2014 09:49:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFPVM-0005vb-6G for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 09:49:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFPVG-000672-BC for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 09:49:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFPVG-00066y-7p for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 09:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WFPVF-0005ID-Pv for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 09:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Feb 2014 14:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16772 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16772-submit@debbugs.gnu.org id=B16772.139264853520330 (code B ref 16772); Mon, 17 Feb 2014 14:49:01 +0000 Original-Received: (at 16772) by debbugs.gnu.org; 17 Feb 2014 14:48:55 +0000 Original-Received: from localhost ([127.0.0.1]:56075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFPV9-0005Hq-95 for submit@debbugs.gnu.org; Mon, 17 Feb 2014 09:48:55 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:52363) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFPV7-0005Hc-1Z for 16772@debbugs.gnu.org; Mon, 17 Feb 2014 09:48:54 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N1500500ACLON00@mtaout27.012.net.il> for 16772@debbugs.gnu.org; Mon, 17 Feb 2014 16:47:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1500JK8AEM8DB0@mtaout27.012.net.il>; Mon, 17 Feb 2014 16:47:11 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85728 Archived-At: > Date: Mon, 17 Feb 2014 12:42:52 +0100 > From: Dani Moncayo > Cc: 16772@debbugs.gnu.org > > /bin/install -c -m 644 /C/msys/home/dani/emacs/repo/nt/README.W32 > "../myinstalldir/share/emacs/24.3.50" > /bin/install: cannot create regular file > `../myinstalldir/share/emacs/24.3.50': No such file or directory > Makefile:168: recipe for target `install' failed > make[1]: *** [install] Error 1 > make[1]: Leaving directory `/usr/home/dani/emacs/build/nt' > Makefile:509: recipe for target `install-nt' failed > make: *** [install-nt] Error 2 > > The problem, I think, is that $(DESTDIR) contains literally the prefix > I gave ("../myinstalldir"), which is a relative path (to the "current" > directory - at the moment of the "make install"), but since we are now > in "nt/Makefile", the current working directory is "/nt", > and therefore, relative references like this one don't refer to the > intended location. > > If I specify an absolute path as prefix in "make install", the the > process seems to complete successfully. Don't specify relative file names in DESTDIR, that's not supported. >From the GNU Coding Standards: 7.2.4 `DESTDIR': Support for Staged Installs -------------------------------------------- `DESTDIR' is a variable prepended to each installed target file, like this: $(INSTALL_PROGRAM) foo $(DESTDIR)$(bindir)/foo $(INSTALL_DATA) libfoo.a $(DESTDIR)$(libdir)/libfoo.a The `DESTDIR' variable is specified by the user on the `make' command line as an absolute file name. For example: ^^^^^^^^^^^^^^^^^^^^^^^^ make DESTDIR=/tmp/stage install