Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2021 11:46:35 GMT
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d79cf73321c1 - main - devel/libvirt: fix build on -CURRENT
Message-ID:  <202112151146.1BFBkZ9V022331@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by novel:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d79cf73321c1097af0296352eee807aae601dd74

commit d79cf73321c1097af0296352eee807aae601dd74
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2021-12-15 11:37:34 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
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)
+ {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112151146.1BFBkZ9V022331>