From b55b38aca28af8c05791820d2ff5eaf3a95e453e Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Fri, 10 Nov 2023 13:39:01 +0000 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 0f7fcf673f9..b1230e0321d 100644 --- a/master_changes.md +++ b/master_changes.md @@ -61,7 +61,7 @@ New option/command/subcommand are prefixed with ◈. * ## Infrastructure - * + * Ensure the full archive includes the 0install sources [#5624 @dra27] ## Admin * diff --git a/src_ext/Makefile b/src_ext/Makefile index 7be85c62825..3a0ec397889 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_SRCS) 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 += $(0INSTALL_SRCS) 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))))))