Subject: bug#22822: closed (Re: bug#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 28 Feb 2016 03:03:02 +0000

Your bug report

#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
22822: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22822
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Sat, 27 Feb 2016 22:02:24 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks.

Subject: Use MKDIR_P instead of mkdir --parents in test/Makefile.in
From: "Aaron S. Hawley" <[email-masked]>
To: bug-gnu-emacs <[email-masked]>
Date: Fri, 26 Feb 2016 11:55:54 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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}

--