Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2026 15:29:25 +0000
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5de84cc476a0 - main - devel/spirv-llvm-translator: properly check for multiple patch-*
Message-ID:  <69987dd5.25705.7be2c81b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by jbeich:

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

commit 5de84cc476a00ccd1ea0c933e35275882d8b8db4
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2026-02-20 15:22:23 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2026-02-20 15:27:56 +0000

    devel/spirv-llvm-translator: properly check for multiple patch-*
    
    $ touch files/patch-foo
    $ touch files/patch-bar
    $ make
    [: /usr/ports/devel/spirv-llvm-translator/files/patch-bar: unexpected operator
    ...
---
 devel/spirv-llvm-translator/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/spirv-llvm-translator/Makefile b/devel/spirv-llvm-translator/Makefile
index ff5af048a958..9c574fcd95fd 100644
--- a/devel/spirv-llvm-translator/Makefile
+++ b/devel/spirv-llvm-translator/Makefile
@@ -55,10 +55,10 @@ PLIST_FILES=	${_PLIST_FILES:S,^,${FLAVOR}/,}
 SOVERSION=	${${FLAVOR:S/llvm//}<18:?${DISTVERSION:R:R}:${DISTVERSION:R}}
 
 pre-everything::
-	@if [ -e ${.CURDIR}/files/patch-* ]; then \
+	@for f in ${.CURDIR}/files/patch-*; do if [ -e $$f ]; then \
 		${ECHO_MSG} "Error: patch-* under \"files\" aren't supported. Move under \"files.<flavor>\" instead."; \
 		exit 1; \
-	fi
+	fi; done
 
 post-patch:
 	@${REINPLACE_CMD} -e '/pkgconfig/s/lib/&data/' \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69987dd5.25705.7be2c81b>