From nobody Fri Dec 29 13:59:28 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T1n746thGz569CC for ; Fri, 29 Dec 2023 13:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T1n745pflz4GRM for ; Fri, 29 Dec 2023 13:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703858368; a=rsa-sha256; cv=none; b=TKz+6PV1RzWOXT3taDI/xQgK254F81LWzol3xLT2DTalQXOePJXh2cv03zgvVgl+mPLunx lJB4U6iKBdkkKbr/RKninsGodfxjO04z1H/cIoFlMAKaPrTENC42lw95UiDEItZulOMbMY xVgUoZRreb3lv+0gkJvDWPFPZcBEHfc/9rDz83Lv45yKcLMXHW5na7NamWax0EpHHcN5wf muma5MamTbUOaEtMzU3N/XLha05k7qqJSTvnfBsLjWPGAilC+mILqdpgqcsV0SkTTsPMrW FT+mLUB8102A+Sn/fI/Zgs9Moi/fll0cYfNVg3e9xISvruAR7/h6C9z1OkFs7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703858368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UELISHIxtbs5IICewm/g2WzPL6S+QH/pm/riolVyl2E=; b=eo0tXozdhrcadOR7pjdWeIyO8U3XSzx6/mFs4RrosCHU+bqfZJLSWWldEI8W4xlGBJziKa vB/P1fy/gWPToDN5izPJKo10BW9kRnxwWDTZixWwR74PJLkchYLy3z4+rN4AcGCwYBxVCd 6x833+74E+1Pu10lg1US9+mPDonCzAAHGVP6lhvHJlg/Tu7bdvkdVO/aAhJIKqCHofbB9N Pm1oY7CYuHILhBoRQN7uBjhvwRgjzZ4DVM39uGNeofGWGwGdic6RjUwagMhSKIjqAu7ZzB +IeE3cY2X3oQ8QBKzWNuSr8T1iwoWwLHL2/6GiHIiZEc6p9x2jzG2MG1DbODyQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T1n744nNRz17Sl for ; Fri, 29 Dec 2023 13:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BTDxSgJ009967 for ; Fri, 29 Dec 2023 13:59:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BTDxSLL009966 for ports-bugs@FreeBSD.org; Fri, 29 Dec 2023 13:59:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 275997] devel/py-joblib: Add BSD support to CPU count check Date: Fri, 29 Dec 2023 13:59:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jwb@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: skreuzer@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275997 Bug ID: 275997 Summary: devel/py-joblib: Add BSD support to CPU count check Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: skreuzer@FreeBSD.org Reporter: jwb@freebsd.org Flags: maintainer-feedback?(skreuzer@FreeBSD.org) Assignee: skreuzer@FreeBSD.org --- /usr/ports/devel/py-joblib/files/patch-joblib_externals_loky_backend_contex= t.py 1969-12-31 18:00:00.000000000 -0600 +++ /usr/ports/wip/py-joblib/files/patch-joblib_externals_loky_backend_context.= py=20=20 2023-12-29 07:58:36.334877000 -0600 @@ -0,0 +1,18 @@ +--- joblib/externals/loky/backend/context.py.orig 2023-06-29 15:14:21= UTC ++++ joblib/externals/loky/backend/context.py +@@ -274,6 +274,15 @@ def _count_physical_cores(): + ) + cpu_info =3D cpu_info.stdout + cpu_count_physical =3D int(cpu_info) ++ # Maybe also openbsd, dragonfly, etc? ++ elif sys.platform.startswith('freebsd') or sys.platform.startswith('netbsd'): ++ cpu_info =3D subprocess.run( ++ "sysctl -n hw.ncpu".split(), ++ capture_output=3DTrue, ++ text=3DTrue, ++ ) ++ cpu_info =3D cpu_info.stdout ++ cpu_count_physical =3D int(cpu_info) + else: + raise NotImplementedError(f"unsupported platform: {sys.platform}") + --=20 You are receiving this mail because: You are the assignee for the bug.=