meson.build: Disallow libnfs v6 to fix the broken macOS build
PATCH 1/1 meson.build: Disallow libnfs v6 to fix the broken macOS build
The macOS build in our CI is currently broken since homebrew updated libnfs to version 6 - and that version apparently comes with a big API breakage. Disallow that version for now to get the broken CI job working again. Once somebody had enough time to adapt our code in block/nfs.c, we can revert this change again.
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -1145,7 +1145,7 @@ endif libnfs = not_found if not get_option('libnfs').auto() or have_block - libnfs = dependency('libnfs', version: '>=1.9.3', + libnfs = dependency('libnfs', version: ['>=1.9.3', '<6.0.0'], required: get_option('libnfs'), method: 'pkg-config') endif
Signature · 1 line
2.47.1
Quoted 5 lines · Thomas Huth
The macOS build in our CI is currently broken since homebrew updated libnfs to version 6 - and that version apparently comes with a big API breakage. Disallow that version for now to get the broken CI job working again. Once somebody had enough time to adapt our code in
block/nfs.c, we can revert this change again.
Correct. Maybe mention:
"v5.0.3 is the final release of the old API." [*]
[*] https://github.com/sahlberg/libnfs/commit/4379837
Quoted 10 lines
Signed-off-by Thomas Huth <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +0
-0
meson.build endif · line 1151
Quoted 8 lines
meson.build +1
-1@@ -1145,7 +1145,7 @@ endif libnfs = not_found if not get_option('libnfs').auto() or have_block - libnfs = dependency('libnfs', version: '>=1.9.3', + libnfs = dependency('libnfs', version: ['>=1.9.3', '<6.0.0'], required: get_option('libnfs'), method: 'pkg-config') endif
Per https://github.com/sahlberg/libnfs/commit/976a9ae we'll need to check for LIBNFS_API_V2 and adapt API calls...
Quoted 5 lines · Thomas Huth
The macOS build in our CI is currently broken since homebrew updated libnfs to version 6 - and that version apparently comes with a big API breakage. Disallow that version for now to get the broken CI job working again. Once somebody had enough time to adapt our code in
block/nfs.c, we can revert this change again.
NB This isn't limited to macOS. We've already been broken by this in Fedora:
https://lists.nongnu.org/archive/html/qemu-block/2024-12/msg00151.html
other distros will no doubt break too soon enough.
Quoted 4 lines
Signed-off-by Thomas Huth <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
meson.build +1
-1@@ -1145,7 +1145,7 @@ endif libnfs = not_found if not get_option('libnfs').auto() or have_block - libnfs = dependency('libnfs', version: '>=1.9.3', + libnfs = dependency('libnfs', version: ['>=1.9.3', '<6.0.0'], required: get_option('libnfs'), method: 'pkg-config') endifSignature · 1 line
2.47.1
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 7 lines · Daniel P. Berrangé
Quoted 5 lines · Thomas Huth
The macOS build in our CI is currently broken since homebrew updated libnfs to version 6 - and that version apparently comes with a big API breakage. Disallow that version for now to get the broken CI job working again. Once somebody had enough time to adapt our code in
block/nfs.c, we can revert this change again.
Quoted 6 lines
NB This isn't limited to macOS. We've already been broken by this in Fedora:
https://lists.nongnu.org/archive/html/qemu-block/2024-12/msg00151.htmlother distros will no doubt break too soon enough.
Ah, that discussion was on qemu-block, not on qemu-devel, that's why I didn't notice it :-/ Thanks for the pointer!
Thomas