From nobody Thu Jul 07 10:24:56 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 2797F12AD307; Thu, 7 Jul 2022 10:24:58 +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 4Ldswn2HgVz3Jg2; Thu, 7 Jul 2022 10:24:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657189497; 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=Gu3TUhxJoRSRk2nfATDEspI48GvmZui+Gzh7zs+6Q+U=; b=NSSYQAqrsr+8CYWP3ILqa7IiWpfEqJEns7CW1aGyq/42WrGGkHIYuNuXwt40fIajBUDKhi K4DxeD0FFCfEZnQP/rrZNOv79VxLts6HnKq1gmkq6dkFeLHX/5RQeKA8g5bNLKevYyNyY4 5mMSY1aZdbFkbM9OB/X8g0XUwiBehRGVThvULjU9/yxvfVi7jaByDZsUsMNWQ+D/uXQVuO cQrXyO1aG4X2WDvY0xBkMG79t4vLM01hXKzdvK0nC32lT9rCJOsAAZk9vnh2CRxmjZ1Yz3 g9lhTJMSrdV/16YfzkN6U8RuHnprCvDMbH1R0gQ2S5vneCt9BjskMhpRNKZXgg== 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 4Ldswn1Cr0zg2j; Thu, 7 Jul 2022 10:24:57 +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 267AOudg094803; Thu, 7 Jul 2022 10:24:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 267AOu3e094802; Thu, 7 Jul 2022 10:24:56 GMT (envelope-from git) Date: Thu, 7 Jul 2022 10:24:56 GMT Message-Id: <202207071024.267AOu3e094802@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 2d7aef8d9ce1 - main - lang/ghc: Add cpuset_t related patch. 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: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2d7aef8d9ce1280eae5c445d1b06ba68b5997487 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657189497; 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=Gu3TUhxJoRSRk2nfATDEspI48GvmZui+Gzh7zs+6Q+U=; b=wDfWKUX1rwuGxjmSMqqlnKHJ1tDvHxUDH6cq0lD1x5Aic2duTcHVtY8zTEcFRNETO0xFwh Q7pM74VTOKBOs/jDcIDPEdz788AGAdMlL0DUXnIyID0RxtbsCAV3hWyKvOfRWCyIp4MB4r tCuVfyQIMwKUjB/ZXCVG36jPWTpnfXmktPD+RAYBOz8ZHsuKHNj4GO5MfAP4qL+R+KMNsL HRsPQYeTCuxKtG9W2Db+bWgQpnzNtO6PvHWNSmODw1TumBafUJPUQ1gpVK72ZiO3EO0g5j Bysg+riVSr3Ilc2zBW8Jcfr66n8AsTBpG7hptZFXqy64TS7sVRuhzuzrXHUh3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657189497; a=rsa-sha256; cv=none; b=jXC1AGwSBYwlN/tNMzpoZhULSIlwGyysnHQuL67i4MZkGjptYz2saEjhN1hXRY6jGbTUhx 2y0FTLAvTsAXEGKeBfAXkSRiMzGedAF1/7HeXce9fJVZ58uyfHnW04+AHdr1EwCAigSrRB kdCr56CX4Qs8juBB8Kiguni7nN9+CA8o9z1RfEdO92NbjaCYHZJhPfjgh1zZtHXa2SXwUg 52P6kUWACA6i/2NwlRiA4jjQ8XXsXNON9rOiP9w0Z0YRd+4hxwPeNeCIJLFEmK6orxVA2m l8PnmtQYsC1AU+ojSYPtLObSbY7tB2XJNyuVsXTLsE+QA9fz4fb/LG3KXGM77Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=2d7aef8d9ce1280eae5c445d1b06ba68b5997487 commit 2d7aef8d9ce1280eae5c445d1b06ba68b5997487 Author: Gleb Popov AuthorDate: 2021-12-26 17:51:54 +0000 Commit: Gleb Popov CommitDate: 2022-07-07 10:19:09 +0000 lang/ghc: Add cpuset_t related patch. --- lang/ghc/files/patch-rts_posix_OSThreads.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lang/ghc/files/patch-rts_posix_OSThreads.c b/lang/ghc/files/patch-rts_posix_OSThreads.c new file mode 100644 index 000000000000..95f328e2fbc7 --- /dev/null +++ b/lang/ghc/files/patch-rts_posix_OSThreads.c @@ -0,0 +1,11 @@ +--- rts/posix/OSThreads.c.orig 2021-10-28 20:41:34 UTC ++++ rts/posix/OSThreads.c +@@ -325,7 +325,7 @@ getNumberOfProcessors (void) + nproc = 1; + } + } +-#elif defined(freebsd_HOST_OS) ++#elif defined(freebsd_HOST_OS) && !defined(HAVE_SCHED_GETAFFINITY) + cpuset_t mask; + CPU_ZERO(&mask); + if(cpuset_getaffinity(CPU_LEVEL_CPUSET, CPU_WHICH_PID, -1, sizeof(mask), &mask) == 0) {