aports/community/opam/makefile.patch
Celeste c7486479b8 community/opam: fix build
Dune 3.11 changed help output, breaking the grep pattern used,
so patch Makefile to never remove --promote-install-files
argument, as our Dune is new enough and supports this
2023-10-25 13:31:38 +00:00

15 lines
379 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -20,11 +20,6 @@
endif
else
DUNE_EXE=
- # NB make does not export the PATH update in Makefile.config to $(shell ...)
- ifeq ($(shell PATH='$(PATH)' $(DUNE) build --root . --help=plain 2>/dev/null \
- | grep -F -- '$(DUNE_PROMOTE_ARG) '),)
- DUNE_PROMOTE_ARG =
- endif
endif
OPAMINSTALLER = ./opam-installer$(EXE)