git: a4a9f75641c1 - main - graphics/xpaint: Fix race condition

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 14 Jul 2023 18:20:32 UTC
The branch main has been updated by eduardo:

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

commit a4a9f75641c15079469454c885f94d7a01953695
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-07-14 18:17:38 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-07-14 18:20:19 +0000

    graphics/xpaint: Fix race condition
    
    Reaply fix used in earlier versions
    
    See also:
    https://lists.freebsd.org/archives/freebsd-ports/2023-July/004114.html
    
    Reported by:    danilo
---
 graphics/xpaint/files/patch-Makefile.am | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/graphics/xpaint/files/patch-Makefile.am b/graphics/xpaint/files/patch-Makefile.am
index bf353ecd376a..7d59e5a284f0 100644
--- a/graphics/xpaint/files/patch-Makefile.am
+++ b/graphics/xpaint/files/patch-Makefile.am
@@ -1,5 +1,6 @@
 Fix app-defaults install path.
 Fix link to libxaw3dxft path.
+Fix race condition (See also: https://lists.freebsd.org/archives/freebsd-ports/2023-July/004114.html)
 
 --- Makefile.am.orig	2021-01-07 14:18:14 UTC
 +++ Makefile.am
@@ -21,3 +22,12 @@ Fix link to libxaw3dxft path.
  	echo "#define XPAINT_VERSION \"$(PACKAGE_VERSION)\"" > version.h
  
  substads: substads.c
+@@ -100,7 +100,7 @@ messages.h: preproc
+ messages.h: preproc
+ 	./preproc > messages.h
+ 
+-XPaint.ad: app-defaults
++XPaint.ad: substads app-defaults
+ 	$(CC) $(CFLAGS) substads.c -o substads
+ 	cd app-defaults ; \
+ 	../substads -appdefs \