aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2020-10-23 09:46:57 +1000
committerGitHub <noreply@github.com>2020-10-23 09:46:57 +1000
commitbc5a344097d69f551b415294179cca3c56a05412 (patch)
tree45316727bc8a9fe7e48d333811e8e95ee98a02a8 /tools
parent271a707704a314c7bab6cd404955bfb30c257cdd (diff)
parent12f58f0fa4f553a98606ad0ca4daa06fc636dc8f (diff)
Merge pull request #18584 from lrusak/automake-patch
tools/depends: add automake patch to fix race in parallel builds
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/Makefile2
-rw-r--r--tools/depends/native/automake/01-fix-help2man-error.patch12
-rw-r--r--tools/depends/native/automake/Makefile3
3 files changed, 15 insertions, 2 deletions
diff --git a/tools/depends/native/Makefile b/tools/depends/native/Makefile
index 97a3306e2b..446f1bac36 100644
--- a/tools/depends/native/Makefile
+++ b/tools/depends/native/Makefile
@@ -40,7 +40,7 @@ flatbuffers: cmake
heimdal: libtool
libtool: automake
libjpeg-turbo: cmake yasm
-libpng: zlib
+libpng: zlib automake
meson: python3 setuptools
ninja: meson
swig: pcre
diff --git a/tools/depends/native/automake/01-fix-help2man-error.patch b/tools/depends/native/automake/01-fix-help2man-error.patch
new file mode 100644
index 0000000000..dd056826ab
--- /dev/null
+++ b/tools/depends/native/automake/01-fix-help2man-error.patch
@@ -0,0 +1,12 @@
+diff -Naur a/Makefile.in b/Makefile.in
+--- a/Makefile.in 2020-03-16 19:11:10.000000000 -0700
++++ b/Makefile.in 2020-10-22 08:06:24.606751367 -0700
+@@ -699,7 +699,7 @@
+ update_mans = \
+ $(AM_V_GEN): \
+ && $(MKDIR_P) doc \
+- && ./pre-inst-env $(PERL) $(srcdir)/doc/help2man --output=$@
++ && ./pre-inst-env $(PERL) $(srcdir)/doc/help2man --output=$@ --no-discard-stderr
+
+ amhello_sources = \
+ doc/amhello/configure.ac \
diff --git a/tools/depends/native/automake/Makefile b/tools/depends/native/automake/Makefile
index 3dfa1c1130..66c14a7632 100644
--- a/tools/depends/native/automake/Makefile
+++ b/tools/depends/native/automake/Makefile
@@ -1,6 +1,6 @@
include ../../Makefile.include
PLATFORM=$(NATIVEPLATFORM)
-DEPS= ../../Makefile.include Makefile
+DEPS= ../../Makefile.include Makefile 01-fix-help2man-error.patch
# lib name, version
LIBNAME=automake
@@ -21,6 +21,7 @@ $(TARBALLS_LOCATION)/$(ARCHIVE):
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); patch -p1 -i ../01-fix-help2man-error.patch
cd $(PLATFORM); $(CONFIGURE)
$(LIBDYLIB): $(PLATFORM)