GNU bug report logs - #22822
Use MKDIR_P instead of mkdir --parents in test/Makefile.in

Previous Next

Package: emacs;

Reported by: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>

Date: Fri, 26 Feb 2016 16:57:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: Use MKDIR_P instead of mkdir --parents in test/Makefile.in
Date: Fri, 26 Feb 2016 11:55:54 -0500
[Message part 1 (text/plain, inline)]
Some platforms don't support the long options for mkdir.  Seems there
is a variable, MKDIR_P, set by Autoconf that is used elsewhere in the
Emacs build system that could be used instead.  Patch is attached and
quoted below.

Thanks,
Aaron

---
 test/Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/Makefile.in b/test/Makefile.in
index b5954df..beb3ff9 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -29,6 +29,7 @@
 ### Code:

 SHELL = @SHELL@
+MKDIR_P = @MKDIR_P@

 srcdir = @srcdir@
 VPATH = $(srcdir)
@@ -110,7 +111,7 @@ endif
  fi; \
  echo Testing $$loadfile; \
  stat=OK ; \
- mkdir --parents $(dir $@) ; \
+ ${MKDIR_P} $(dir $@) ; \
  $(emacs) -l ert -l $$loadfile \
   --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG}

--
[0001-Use-MKDIR_P-instead-of-mkdir-parents.patch (application/octet-stream, attachment)]

This bug report was last modified 9 years and 144 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.