[Bug 292587] Mk/Uses/gssapi.mk: Malformed conditional using legacy -o operator breaks on 15.0-STABLE

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 19 Jan 2026 16:15:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292587

            Bug ID: 292587
           Summary: Mk/Uses/gssapi.mk: Malformed conditional using legacy
                    -o operator breaks on 15.0-STABLE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: transitive@gmail.com

Created attachment 267304
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267304&action=edit
Fix that works on 15-stable to correct my issue

While gathering ports metadata on FreeBSD 15.0-STABLE (OSVERSION 1500505),
Poudriere (and make describe) fails with a fatal error in Mk/Uses/gssapi.mk.

The error is: make: /usr/ports/Mk/Uses/gssapi.mk:131: Malformed conditional
"${_local} == "mit" -o ${_local} == "mit-devel""

This appears to be caused by the use of the legacy -o operator, which the
stricter bmake parser in 15-STABLE is no longer accepting in this context.

Fix: Updating the syntax to use the modern || operator resolves the issue.


--- Mk/Uses/gssapi.mk.orig
+++ Mk/Uses/gssapi.mk
@@ -128,7 +128,7 @@
 GSSAPILIBS=    -lkrb5 -lgssapi
 GSSAPILDFLAGS= -L"${GSSAPILIBDIR}"
 _RPATH=                ${GSSAPILIBDIR}
-.    elif ${_local} == "mit" -o ${_local} == "mit-devel"
+.    elif ${_local} == "mit" || ${_local} == "mit-devel"
        # MIT KRB5 port selected
 KRB5_HOME?=    ${LOCALBASE}
 GSSAPIBASEDIR= ${KRB5_HOME}

-- 
You are receiving this mail because:
You are the assignee for the bug.