[Bug 279316] Mk/Uses/cmake.mk: Make parallel level adjustable for tests

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 May 2024 08:47:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279316

            Bug ID: 279316
           Summary: Mk/Uses/cmake.mk: Make parallel level adjustable for
                    tests
           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: diizzy@FreeBSD.org
                CC: mandree@FreeBSD.org, portmgr@FreeBSD.org,
                    tcberner@freebsd.org

Created attachment 250976
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=250976&action=edit
Patch for cmake.mk

Some projects don't support running tests in parallel (example
chinese/libchewing) and currently there's no way of disabling it.

Add CMAKE_TESTING_PARALLEL_LEVEL and default to MAKE_JOBS_NUMBER
Switch to MAKE_JOBS_NUMBER as _MAKE_JOBS_NUMBER is unset if MAKE_JOBS_UNSAFE is
defined.

Reference:
https://git.alpinelinux.org/aports/tree/community/libchewing/APKBUILD#n44

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