Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 03c5a49a4e7c5fca6b7ccb833b8a98e1 > files > 2

schismtracker-git20221020-1.mga9.src.rpm

From: Jan Engelhardt <jengelh@inai.de>

There are some manual commands which create dependency files, and
they do fail if they concurrently try to create the directory
(because it does something like test -e auto || mkdir auto, rather
than checking just the return value of mkdir for EISDIR.)

Anyway, create the directory beforehand.
---
 Makefile.am  |    1 +
 configure.ac |    1 +
 2 files changed, 2 insertions(+)

Index: schismtracker-20220125/Makefile.am
===================================================================
--- schismtracker-20220125.orig/Makefile.am
+++ schismtracker-20220125/Makefile.am
@@ -147,6 +147,7 @@ CLEANFILES = \
 	auto/helptext.c
 
 auto/default-font.c: Makefile.am scripts/bin2h.sh scripts/build-font.sh $(fonts)
+	${MKDIR_P} auto
 	sh $(srcdir)/scripts/build-font.sh $(srcdir) $(fonts) >$@
 auto/helptext.c: Makefile.am scripts/genhelp.py $(helptexts)
 	$(PYTHON) $(srcdir)/scripts/genhelp.py $(srcdir) $(helptexts) >$@
Index: schismtracker-20220125/configure.ac
===================================================================
--- schismtracker-20220125.orig/configure.ac
+++ schismtracker-20220125/configure.ac
@@ -38,6 +38,7 @@ AM_PROG_CC_C_O
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S
+AC_PROG_MKDIR_P
 
 dnl do we have Git
 AC_CHECK_TOOL([GIT], [git])