From nobody Wed Dec 15 11:46:35 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 1A87C18F1C2C; Wed, 15 Dec 2021 11:46:36 +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 4JDYP75MBJz3G63; Wed, 15 Dec 2021 11:46:35 +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 93FB31B7A8; Wed, 15 Dec 2021 11:46:35 +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 1BFBkZou022332; Wed, 15 Dec 2021 11:46:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BFBkZ9V022331; Wed, 15 Dec 2021 11:46:35 GMT (envelope-from git) Date: Wed, 15 Dec 2021 11:46:35 GMT Message-Id: <202112151146.1BFBkZ9V022331@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Roman Bogorodskiy Subject: git: d79cf73321c1 - main - devel/libvirt: fix build 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: novel X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d79cf73321c1097af0296352eee807aae601dd74 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639568795; 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=onkPBwycqroauIvJLczO0MaN/6Carb2RPhoaTK8JDQ0=; b=ZbZ3mklnErOfFX+c3x3v60UWJik9OtlYwE8JLHyosxnjbc3eN0rRPy8Ag/0y+UA2jBJIYv LxmuXaa6NbAW+U+LDStqnZoTS/LbN3blk5d6bSRP+RsfR1JGx2T3iFLByj0BwwAq4BEGsS eh+Qtaho/7YDuMUH16MOwbHB8J3BrUFxv8B4QAsOf15o+IInvUuPiqo5hmzrpQi75drqXo x6Nfr165LHUB7LOd6pQKF+9x2YV2PCTbkLx1r8+ftiByNBmM3e9m5Mv1f+kXIlSN1TUv8c TgB5gn1nHoNpf9cqIEk4ef+es62ny1HKht0nV9lcf2+qavZwXZdIy6+GJbrvSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639568795; a=rsa-sha256; cv=none; b=K8uwByrSJmApQY/VNEkhXV9pqBrqlBFuTisRYyaNOYVTUnZK+zhel9J6FoENA2XZC21+kf qEKqRJxhCOXFTdgI9T11wlX3HmNYGjcPHFlePdmqXBaJ/GiXf3HNL5WUYM3sB/GknPoX7b LkYLmBQk/4Pmxdz+rrmr708w/j3jo/tMZMDCJrrpxmY7TEkXt177J3suCTd3RaULm3sRuj x9jr21n2SRAMyDVwbfiISXxSCjuQ111brOH+1Snrv7qcNUpsmUxoi5gr+0lNHHw+rZRKKi Paq6x0jMQo0JwGVemZl+K3FznliDuOcxprcdTAdDUkzD9M66zXI4rOHR10Ne1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by novel: URL: https://cgit.FreeBSD.org/ports/commit/?id=d79cf73321c1097af0296352eee807aae601dd74 commit d79cf73321c1097af0296352eee807aae601dd74 Author: Roman Bogorodskiy AuthorDate: 2021-12-15 11:37:34 +0000 Commit: Roman Bogorodskiy CommitDate: 2021-12-15 11:46:16 +0000 devel/libvirt: fix build on -CURRENT The src commit 5e04571cf3cf made sched.h types such as cpu_set_t visible without the -D_WITH_CPU_SET_T. This enables building glibc-compatible code, but fails as some of the macros are missing on the FreeBSD side. Temporarily fix that by disabling building this glibc compatible code on non-Linux. --- devel/libvirt/files/patch-src_util_virprocess.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/devel/libvirt/files/patch-src_util_virprocess.c b/devel/libvirt/files/patch-src_util_virprocess.c new file mode 100644 index 000000000000..a3668f357617 --- /dev/null +++ b/devel/libvirt/files/patch-src_util_virprocess.c @@ -0,0 +1,11 @@ +--- src/util/virprocess.c.orig 2021-12-14 12:38:57 UTC ++++ src/util/virprocess.c +@@ -480,7 +480,7 @@ int virProcessKillPainfully(pid_t pid, bool force) + return virProcessKillPainfullyDelay(pid, force, 0, false); + } + +-#if WITH_DECL_CPU_SET_T ++#if WITH_DECL_CPU_SET_T && defined(__linux__) + + int virProcessSetAffinity(pid_t pid, virBitmap *map, bool quiet) + {