From nobody Thu Dec 09 21:20:17 2021 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 B48EE18CFF74; Thu, 9 Dec 2021 21:20:18 +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 4J96Ps5kl4z3J3Y; Thu, 9 Dec 2021 21:20:17 +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 6359F60B7; Thu, 9 Dec 2021 21:20:17 +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 1B9LKH13040337; Thu, 9 Dec 2021 21:20:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9LKHN1040333; Thu, 9 Dec 2021 21:20:17 GMT (envelope-from git) Date: Thu, 9 Dec 2021 21:20:17 GMT Message-Id: <202112092120.1B9LKHN1040333@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: 0435eab9f039 - main - lang/mono5.10: Invoke CPU_COUNT properly 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: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0435eab9f0396fceaa33339240604e740b00a858 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639084818; 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=909zvKSfnCA/IYhVHGpzEPk9+LnZBkoh10gGoFsRs9I=; b=l06H0ioYkDzWnQmmEjQKG0wSksBl/LWFeeoUFRdoW2OPnjOZgUs136Sw7K7mMwrGcU0PEt ek8bCNOCGLUC+7LRzuQC9T6MgyXcp34o5vZ/b6fPe59+m5bcMDp5bDV5cvLdbIxjskwdzB T4CC7ajRjRaxMxT/HQdPQYd4Ur7VI+/3vzl/LbEd1skqSYGzX9Wicmq5ZieP3IHkNbCW1j 2G1XbCHBa4mhAClzXn5TiKO6GMT6Gl9zR1cpNcArMnkJIz2LooXu2SrSTqe0VGFOEz1+44 4A1Exd41z/rkX78s6KdmrhuLuqoMgEBHjj0qfY7sJd7FUFqYwk4zbjb+Lolnrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639084818; a=rsa-sha256; cv=none; b=hYKp1rDImGwS76qB96R/f3pjJe05M0RthySWcBa44sfWYnpve96nx8RkmPyFxmdKPEztsK du28cx+0UoyAoPvt899/SxN0naf7RO8GlIGyosE/b6bhRY9pP6vKK8EUUMze/DevJg+6OJ hjRNuIDKk63dY6/yPRPZ+W+cSryVmE1altOFDomH6E/URFh3Om8A1ik+UcZfZJzXuZ9MeN 1vwjRFgmtVOmgMXcndFR8AlqChv/RLJ8UFW/CMM7c181687uGGCSr2gN8Ti1l21ovoAp6r fdGbpP7JKWgOsAx2ScFaHcDYc2eLGrPohhOTik4a203/pOg96LOSIDmanLRqPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=0435eab9f0396fceaa33339240604e740b00a858 commit 0435eab9f0396fceaa33339240604e740b00a858 Author: Cy Schubert AuthorDate: 2021-12-09 18:40:20 +0000 Commit: Cy Schubert CommitDate: 2021-12-09 20:37:13 +0000 lang/mono5.10: Invoke CPU_COUNT properly 3a278c7add6265e6d545f3014d7f6a6e9c222fa7 did not include a patch to configure.ac that allowed it to properly detect CPU_COUNT. Fixes: 3a278c7add6265e6d545f3014d7f6a6e9c222fa7 MFH: 2021Q4 --- lang/mono5.10/files/patch-configure.ac | 36 +++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/lang/mono5.10/files/patch-configure.ac b/lang/mono5.10/files/patch-configure.ac index 4f52bab098b9..6c0365d0e3a5 100644 --- a/lang/mono5.10/files/patch-configure.ac +++ b/lang/mono5.10/files/patch-configure.ac @@ -1,6 +1,6 @@ ---- configure.ac.orig 2018-08-24 17:19:14.000000000 +0200 -+++ configure.ac 2021-10-17 17:15:00.295997000 +0200 -@@ -201,6 +201,12 @@ case "$host" in +--- configure.ac.orig 2018-08-24 08:19:14.000000000 -0700 ++++ configure.ac 2021-12-09 10:35:50.670421000 -0800 +@@ -201,6 +201,12 @@ libdl= libgc_threads=pthreads use_sigposix=yes @@ -13,7 +13,29 @@ has_dtrace=yes with_sgen_default_concurrent=yes ;; -@@ -3298,6 +3304,8 @@ case "$host" in +@@ -1668,7 +1674,8 @@ + dnl *** won't always indicate the interface sched_affinity has. *** + dnl **************************************************************** + AC_MSG_CHECKING(for sched_setaffinity from glibc < 2.3.4) +- AC_TRY_COMPILE([#include ], [ ++ AC_TRY_COMPILE([#define _WITH_CPU_SET_T ++#include ], [ + int mask = 1; + sched_setaffinity(0, &mask); + return 0; +@@ -1680,8 +1687,9 @@ + # We have the new, three-parameter version + AC_MSG_RESULT(no) + ]) +- AC_TRY_COMPILE([#include ], [ +- CPU_COUNT((void *) 0); ++ AC_TRY_COMPILE([#define _WITH_CPU_SET_T ++#include ], [ ++ CPU_COUNT((cpuset_t *) 0); + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(GLIBC_HAS_CPU_COUNT, 1, [GLIBC has CPU_COUNT macro in sched.h]) +@@ -3298,6 +3306,8 @@ BTLS_PLATFORM=i386 ;; openbsd*|freebsd*|kfreebsd-gnu*) @@ -22,7 +44,7 @@ ;; esac ;; -@@ -3322,6 +3330,8 @@ case "$host" in +@@ -3322,6 +3332,8 @@ boehm_supported=false ;; openbsd*|freebsd*|kfreebsd-gnu*) @@ -31,7 +53,7 @@ ;; mingw*) ;; -@@ -3355,11 +3365,10 @@ case "$host" in +@@ -3355,11 +3367,10 @@ INTL="intl" ;; macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \ @@ -44,7 +66,7 @@ else TARGET=POWERPC; CPPFLAGS="$CPPFLAGS -D__mono_ppc__" -@@ -4425,6 +4434,7 @@ if test "x$enable_btls" = "xyes"; then +@@ -4425,6 +4436,7 @@ ;; aarch64) btls_arch=aarch64