From nobody Sun Jan 02 20:50:43 2022 X-Original-To: dev-commits-ports-main@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 D3958193736B; Sun, 2 Jan 2022 20:50:43 +0000 (UTC) (envelope-from git@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 4JRrcg3hZKz4vGw; Sun, 2 Jan 2022 20:50:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 5ED0D18CD3; Sun, 2 Jan 2022 20:50:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 202KohDr098812; Sun, 2 Jan 2022 20:50:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 202KohEj098811; Sun, 2 Jan 2022 20:50:43 GMT (envelope-from git) Date: Sun, 2 Jan 2022 20:50:43 GMT Message-Id: <202201022050.202KohEj098811@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: 507c189b2876 - main - math/py-numpy: work around build issue on -CURRENT List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 507c189b2876043654568b15715b9d40b3bc87c3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641156643; 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=6aws2/iWqhieggXDv/15wVw0cbuobgJb1Lm6wT+nCXs=; b=quav18o2u7LTKyrXOHlX0jQ/TvCbXgXL86Y10d/yQA064ewjrhG7xPzkWLZhO6Sd38Jjcu NmSgRs11CVYCC7rglFbd0no8wdNnP+UF4xP4c55O+ovmJ7HKVTc80Uy8MB8ZfcUkQcRach RXas32CQxwDvW0pI04Qr8oTFsrqndOi84sbPH18NhyxoCiYM3+FagQ9d+s3w6W0jmskg9p W44exqq6dSx5BTD9tybIgN+hPXEPpYHL/S76bsLlNMMu6enNa9QI1l7fXLBfYt22RNiXpi jc1tb4L7by40Apyx7JwEWnvaeDY5iMhJYol4rN9cSA/qE3OlcLvAn/Sav94JhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641156643; a=rsa-sha256; cv=none; b=ZBxvpPNI8mC5cUsUn/hAHntGzTfYc9oc3NHOGJuofayPolitFTB2qdx4YGsbiFE2nbwU7n 3Qm/AB3p+W9ejapvr1+F+V9m3yBb0FCPk9QtMT8EdaojCrpO2U3wvAhhHf83dqW4yCJuW3 PQHFsF7gtzCnQCA2E2gt5j8dFq4ZpAx0KrlcQB9NUJZEFgFxWhzJhXknyhGF03DJB8+ixn umUhJpfoKR0iDeyteFAuJGftmombjWDyNS7nOhC5KrpXPIILY00pEarx+ztR4CFQmOkO8U cFfTOij46hm38QWU7Bl2qIWzKzbPQS1Zskw9QoWgLV3jvmWUKKRzh0DOnHZP8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=507c189b2876043654568b15715b9d40b3bc87c3 commit 507c189b2876043654568b15715b9d40b3bc87c3 Author: Stefan Eßer AuthorDate: 2022-01-02 20:43:00 +0000 Commit: Stefan Eßer CommitDate: 2022-01-02 20:43:00 +0000 math/py-numpy: work around build issue on -CURRENT A sched_getaffinity function has been added to -CURRENT and the Python build detects it presence and provides a Python function os.sched_getaffinity(). Apparently the C library function is not correctly wrapped and returns an out of buounds result. Comment out the call of os.sched_getaffinity() call until this function works correctly in the Python interpreter. No port revision bump, since this is just a temporary fix for the broken build on -CURRENT. Reported by: antoine --- math/py-numpy/files/patch-numpy_distutils_misc__util.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/math/py-numpy/files/patch-numpy_distutils_misc__util.py b/math/py-numpy/files/patch-numpy_distutils_misc__util.py new file mode 100644 index 000000000000..36f46dc3ae15 --- /dev/null +++ b/math/py-numpy/files/patch-numpy_distutils_misc__util.py @@ -0,0 +1,16 @@ +--- numpy/distutils/misc_util.py.orig 2022-01-02 20:27:35 UTC ++++ numpy/distutils/misc_util.py +@@ -92,9 +92,9 @@ def get_num_build_jobs(): + + """ + from numpy.distutils.core import get_distribution +- try: +- cpu_count = len(os.sched_getaffinity(0)) +- except AttributeError: +- cpu_count = multiprocessing.cpu_count() ++# try: ++# cpu_count = len(os.sched_getaffinity(0)) ++# except AttributeError: ++ cpu_count = multiprocessing.cpu_count() + cpu_count = min(cpu_count, 8) + envjobs = int(os.environ.get("NPY_NUM_BUILD_JOBS", cpu_count))