[Bug 284661] math/py-pystan: commit b55acab768e0c2d229adb542eca20815ccd7bef9 breaks flavor check

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 08 Feb 2025 16:26:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284661

            Bug ID: 284661
           Summary: math/py-pystan: commit
                    b55acab768e0c2d229adb542eca20815ccd7bef9 breaks flavor
                    check
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: chris.torek@gmail.com

Build with synth encounters a problem:

Regenerating flavor index: this may take a while ...
Scanning entire ports tree.
 progress: 57.50%              
culprit: math/py-pystan
  Scan aborted because 'make' encounted an error in the Makefile.
  math/py-pystan (return code = 1)
Flavor index generation failed: ports scan

This is due to the port Makefile no longer including all the parts: it had been
split into bsd.port.pre.mk and bsd.port.post.mk to test ${PYTHON_REL}, but
commit b55acab768e0c2d229adb542eca20815ccd7bef9 snipped out the bsd.port.pre.mk
section without changing the final include to use bsd.port.mk.

The fix is trivial:

diff --git a/math/py-pystan/Makefile b/math/py-pystan/Makefile
index 5a87ea982c6f..aef88595349b 100644
--- a/math/py-pystan/Makefile
+++ b/math/py-pystan/Makefile
@@ -32,4 +32,4 @@ SHEBANG_FILES=       
${WRKSRC}/pystan/stan/lib/stan_math/lib/upgrade-sundials.sh \
 NO_ARCH=       yes
 NO_ARCH_IGNORE=        _api.so _chains.so _misc.so

-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainer informed via mail

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