From 75386642618ee1c5dfdb4a2f727648b801ba8794 Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Thu, 3 Aug 2023 08:50:03 +0100 Subject: [PATCH] Ensure all archives are retrieved --- master_changes.md | 2 +- src_ext/Makefile | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/master_changes.md b/master_changes.md index b307c56837f..0d62220cd0e 100644 --- a/master_changes.md +++ b/master_changes.md @@ -56,7 +56,7 @@ New option/command/subcommand are prefixed with ◈. ## Build ## Infrastructure - * + * Ensure the full archive includes the 0install sources [#5624 @dra27] ## Admin * diff --git a/src_ext/Makefile b/src_ext/Makefile index 780403247a8..ba7f26c1c8d 100644 --- a/src_ext/Makefile +++ b/src_ext/Makefile @@ -34,13 +34,18 @@ endef SRC_EXTS = cppo base64 extlib re cmdliner ocamlgraph cudf dose3 opam-file-format result seq stdlib-shims PKG_EXTS = $(SRC_EXTS) dune-local findlib ocamlbuild topkg mccs +ALL_EXTS = $(SRC_EXTS) $(PKG_EXTS) ocaml flexdll +MCCS_SRCS = mccs +ALL_EXTS += $(MCCS_SRCS) ifeq ($(MCCS_ENABLED),true) -SRC_EXTS := $(SRC_EXTS) mccs +SRC_EXTS += mccs endif +0INSTALL_SRCS = opam-0install-cudf 0install-solver +ALL_EXTS += $(0INSTALL_SRCS) ifeq ($(OPAM_0INSTALL_SOLVER_ENABLED),true) -SRC_EXTS := $(SRC_EXTS) opam-0install-cudf 0install-solver +SRC_EXTS += opam-0install-cudf 0install-solver endif include Makefile.sources @@ -141,7 +146,7 @@ archives: $(SRC_EXTS:=.download) archives-pkg: $(PKG_EXTS:=.pkgdownload) @ -cache-archives: $(SRC_EXTS:=.cache) $(PKG_EXTS:=.pkgcache) ocaml.cache flexdll.cache +cache-archives: $(ALL_EXTS:=.cache) $(ALL_EXTS:=.pkgcache) @ has-archives: $(addprefix archives/, $(notdir $(URL_ocaml)) $(notdir $(URL_flexdll)) $(ARCHIVES) $(filter-out $(ARCHIVES), $(foreach pkg,$(PKG_EXTS), $(notdir $(URL_PKG_$(pkg))))))