aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-12-07 11:35:22 +0000
committerWerner Koch <[email protected]>2022-12-07 15:07:50 +0000
commit11d3114e1a86dd6ff5e054ac457bdc41710c773b (patch)
treebede5a51aff524bd50eba2714565e29b17e0b7a8
parentspeedo: Introduce the OVERRIDE_TARBALLS feature (diff)
downloadgnupg-11d3114e1a86dd6ff5e054ac457bdc41710c773b.tar.gz
gnupg-11d3114e1a86dd6ff5e054ac457bdc41710c773b.zip
speedo: Support CUSTOM_SWDB builds.
--
-rw-r--r--Makefile.am17
-rw-r--r--build-aux/speedo.mk30
2 files changed, 33 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am
index f3aa2067f..cfc68a0ad 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -189,10 +189,25 @@ release:
./autogen.sh --force; \
cd $(abs_top_builddir); \
rm -rf dist; mkdir dist ; cd dist ; \
+ mkopt=""; \
+ if [ -n "$$CUSTOM_SWDB" ]; then \
+ mkopt="CUSTOM_SWB=1"; \
+ x=$$(grep '^OVERRIDE_TARBALLS=' \
+ $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
+ if [ -f "$$x/swdb.lst" ]; then \
+ echo "/* Copying swdb.lst from the overrides directory */"; \
+ cp "$$x/swdb.lst" . ; \
+ cp "$$x/swdb.lst.sig" . ; \
+ fi; \
+ fi; \
+ echo "/* Running configure */";\
$(abs_top_srcdir)/configure --enable-maintainer-mode; \
+ echo "/* Running make distcheck */";\
$(MAKE) distcheck TESTFLAGS=--parallel; \
+ echo "/* Unpacking release */";\
$(TAR) xjf $(RELEASE_NAME).tar.bz2 ;\
- $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk w32-release ;\
+ echo "/* Running $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk w32-release $$mkopt";\
+ $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk w32-release $$mkopt;\
echo "/* Build finished at $$(date -uIseconds) */" ;\
echo "/*" ;\
echo " * Please run the final step interactivly:" ;\
diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk
index 433dc9973..d010d6c3e 100644
--- a/build-aux/speedo.mk
+++ b/build-aux/speedo.mk
@@ -135,7 +135,10 @@ help-wixlib:
@echo ''
@echo 'Afterwards w32-release will build also a wixlib.'
-
+# NB: we can't use +$(MAKE) here because we would need to define the
+# dependencies of our packages. This does not make much sense given that
+# we have a clear order in how they are build and concurrent builds
+# would anyway clutter up the logs.
SPEEDOMAKE := $(MAKE) -f $(SPEEDO_MK) UPD_SWDB=1
native: check-tools
@@ -226,7 +229,7 @@ STATIC=0
# external packages.
TARBALLS=$(shell pwd)/../tarballs
-# Number of parallel make jobs
+# Number of parallel make jobs in each package
MAKE_J=3
# Name to use for the w32 installer and sources
@@ -877,17 +880,18 @@ endif
# The playground area is our scratch area, where we unpack, build and
# install the packages.
$(stampdir)/stamp-directories:
- $(MKDIR) $(root) || true
- $(MKDIR) $(stampdir) || true
- $(MKDIR) $(sdir) || true
- $(MKDIR) $(bdir) || true
- $(MKDIR) $(idir) || true
+ $(MKDIR) -p $(root)
+ $(MKDIR) -p $(stampdir)
+ $(MKDIR) -p $(sdir)
+ $(MKDIR) -p $(bdir)
+ $(MKDIR) -p $(idir)
ifeq ($(TARGETOS),w32)
- $(MKDIR) $(bdir6) || true
- $(MKDIR) $(idir6) || true
+ $(MKDIR) -p $(bdir6)
+ $(MKDIR) -p $(idir6)
endif
touch $(stampdir)/stamp-directories
+
# Frob the name $1 by converting all '-' and '+' characters to '_'.
define FROB_macro
$(subst +,_,$(subst -,_,$(1)))
@@ -981,7 +985,7 @@ endef
#
define SPKG_template
-$(stampdir)/stamp-$(1)-00-unpack: $(stampdir)/stamp-directories
+$(stampdir)/stamp-$(1)-00-unpack:
@echo "speedo: /*"
@echo "speedo: * $(1)"
@echo "speedo: */"
@@ -1256,7 +1260,7 @@ endef
# Insert the template for each source package.
$(foreach spkg, $(speedo_spkgs), $(eval $(call SPKG_template,$(spkg))))
-$(stampdir)/stamp-final: $(stampdir)/stamp-directories clean-pkg-versions
+$(stampdir)/stamp-final: clean-pkg-versions
ifeq ($(TARGETOS),w32)
$(stampdir)/stamp-final: $(addprefix $(stampdir)/stamp-w64-final-,$(speedo_w64_build_list))
endif
@@ -1535,9 +1539,9 @@ endif
#
-# Check availibility of standard tools
+# Check availibility of standard tools and prepare everything.
#
-check-tools:
+check-tools: $(stampdir)/stamp-directories
#