git: 47c4c9014587 - 2022Q2 - net/unison251: Try to fix build failure due to race condition in Makefile

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Tue, 19 Apr 2022 08:35:06 UTC
The branch 2022Q2 has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=47c4c901458758f40f67554212a301fdb8045ff6

commit 47c4c901458758f40f67554212a301fdb8045ff6
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2022-04-19 08:06:18 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2022-04-19 08:34:38 +0000

    net/unison251: Try to fix build failure due to race condition in Makefile
    
    PR:             263067
    MFH:            2022Q2
    (cherry picked from commit c46c155b02df4d51fc6e5868fb151918b0a07cc5)
---
 net/unison251/files/patch-Makefile.OCaml | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/net/unison251/files/patch-Makefile.OCaml b/net/unison251/files/patch-Makefile.OCaml
index 45859e189c5a..147a3793331a 100644
--- a/net/unison251/files/patch-Makefile.OCaml
+++ b/net/unison251/files/patch-Makefile.OCaml
@@ -1,6 +1,6 @@
---- Makefile.OCaml.orig	2021-06-23 14:30:30 UTC
+--- Makefile.OCaml.orig	2021-12-18 15:04:56 UTC
 +++ Makefile.OCaml
-@@ -34,7 +34,11 @@ ifeq ($(shell uname),OpenBSD)
+@@ -34,7 +34,11 @@ ifeq ($(shell uname),NetBSD)
  else
  ifeq ($(shell uname),NetBSD)
    OSARCH=NetBSD
@@ -12,7 +12,7 @@
  ifeq ($(shell uname),Linux)
    OSARCH=Linux
  endif
-@@ -290,6 +294,11 @@ ifeq ($(OSARCH),Linux)
+@@ -301,6 +305,11 @@ endif
  INCLFLAGS+=-I fsmonitor -I fsmonitor/linux
  endif
  
@@ -24,7 +24,18 @@
  ifeq ($(OSARCH),solaris)
  -include fsmonitor/solaris/Makefile src/fsmonitor/solaris/Makefile
  INCLFLAGS+=-I fsmonitor -I fsmonitor/solaris
-@@ -432,7 +441,7 @@ fswatch.cmi : ubase/prefs.cmi
+@@ -427,6 +436,10 @@ win32rc/unison.res.lib: win32rc/unison.res
+ 	-$(RM) $@
+ 	ocamllex $<
+ 
++compat%.cmi: compat%.mli
++	@echo "$(CAMLC): $< ---> $@"
++	$(CAMLC) $(CAMLFLAGS) $(COMPATCAMLFLAGS) -c $(CWD)/$<
++
+ %.cmi : %.mli
+ 	@echo "$(CAMLC): $< ---> $@"
+ 	$(CAMLC) $(CAMLFLAGS) $(COMPATCAMLFLAGS) -c $(CWD)/$<
+@@ -451,7 +464,7 @@ compat%.cmx: compat%.ml
  
  %.o %.obj: %.c
  	@echo "$(CAMLC): $< ---> $@"