ports@,

I've noticed that portcheck fails when subpkg has +, see:

make: don't know how to make RUN_DEPENDS-c++=
Stop in /usr/ports/lang/gcc/15

here a hack which fixes it:

Index: infrastructure/bin/portcheck
===================================================================
RCS file: /home/cvs/ports/infrastructure/bin/portcheck,v
diff -u -p -r1.149 portcheck
--- infrastructure/bin/portcheck        26 Feb 2025 14:22:53 -0000      1.149
+++ infrastructure/bin/portcheck        16 Aug 2025 13:15:04 -0000
@@ -1448,7 +1448,8 @@ check_lib_depends() {
        # get deep list of LDEPs
        local lmake_args="${make_args[@]}"
        lmake_args[${#lmake_args[@]}]="RUN_DEPENDS="
-       lmake_args[${#lmake_args[@]}]="RUN_DEPENDS$subpkg="
+       local esubpkg=$(echo "$subpkg" | sed 's/+/\\\\+/g')
+       lmake_args[${#lmake_args[@]}]="RUN_DEPENDS$esubpkg="
        # Rely on the fact we're already in the port directory, see 
sub_checks().
        # XXX ignoring make errors for now
        local pure_lib_deps=$(make "${lmake_args[@]}" show-run-depends | sort)


Ok?

-- 
wbr, Kirill

Reply via email to