[libvirt PATCH 0/1] meson: Fix XDR check for GNU/Hurd

The inability of libvirt to successfully build on GNU/Hurd has been, I'm sure we all agree, a major sticking point for the project. No more! Note that there are a bunch of known issues in the storage driver and elsewhere, some of which I'm going to address in future patches, but this one-liner is enough to get a working client-only build going. This patch has already been added to the Debian package[1], resulting in the first known successful build ever[2] for the platform. [1] https://salsa.debian.org/libvirt-team/libvirt/-/merge_requests/208 [2] https://buildd.debian.org/status/fetch.php?pkg=libvirt&arch=hurd-i386&ver=9.8.0-2&stamp=1697204567&raw=0 Andrea Bolognani (1): meson: Fix XDR check for GNU/Hurd meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.41.0

The situation is the same as Linux: since glibc no longer includes the RPC functionality, libtirpc must be used to complement it. Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index de23fbda1e..47748febb8 100644 --- a/meson.build +++ b/meson.build @@ -867,7 +867,7 @@ if not get_option('driver_remote').disabled() # use extra library as it's provided by libc directly. if host_machine.system() == 'windows' xdr_dep = cc.find_library('portablexdr', required: get_option('driver_remote')) - elif host_machine.system() == 'linux' + elif host_machine.system() in [ 'linux', 'gnu' ] xdr_dep = dependency('libtirpc', required: get_option('driver_remote')) elif host_machine.system() in [ 'freebsd', 'darwin' ] xdr_dep = cc.find_library('c', required: get_option('driver_remote')) -- 2.41.0

On 10/24/23 18:54, Andrea Bolognani wrote:
The situation is the same as Linux: since glibc no longer includes the RPC functionality, libtirpc must be used to complement it.
Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Michal
participants (2)
-
Andrea Bolognani
-
Michal Prívozník