git: 703aba48b720 - main - cad/surelog: Fix build by removing package directrory

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 05 May 2024 19:11:36 UTC
The branch main has been updated by yuri:

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

commit 703aba48b720e02a38ae9f17bc1d00e5d79c5eff
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-05 19:10:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-05 19:11:32 +0000

    cad/surelog: Fix build by removing package directrory
    
    This is a workaround for the yet unsolved problem that surelog
    silently fails to create package files.
    
    Reported by:    fallout
---
 cad/surelog/Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/cad/surelog/Makefile b/cad/surelog/Makefile
index dcd033c4ec87..8b7e874d1c73 100644
--- a/cad/surelog/Makefile
+++ b/cad/surelog/Makefile
@@ -63,10 +63,11 @@ TCMALLOC_LIB_DEPENDS=	libtcmalloc.so:devel/google-perftools
 
 PORTSCOUT=	limit:^.*[0-9]\.[0-9] # prevent tags like 'show'
 
-post-install: # workaround for https://github.com/chipsalliance/Surelog/issues/3596
-	@${RMDIR} \
-		${STAGEDIR}${DATADIR}/pkg/work \
-		${STAGEDIR}${DATADIR}/pkg \
+post-install:
+	# workaround for https://github.com/chipsalliance/Surelog/issues/3965
+	# - surelog fails to create package files on some systems, and succeeds on others
+	# - so we remove this directory altogether for now
+	@${RM} -r \
 		${STAGEDIR}${DATADIR}
 
 post-test: