configure --without-default-features confusion
Hi all,
I'm a bit confused about the intended scope of ./configure --without-default-features. When I try it here there's still lots of stuff enabled:
$ ./configure --without-default-features
...
VNC support : YES
VNC SASL support : YES
VNC JPEG support : YES
VNC PNG support : YES
brlapi support : YES
vde support : NO
netmap support : NO
Linux AIO support : NO
Linux io_uring support : YES
ATTR/XATTR support : YES
RDMA support : NO
PVRDMA support : NO
...So rdma/pvrdma, which I have libs for, are disabled, but brlapi, which I have libs for, is auto enabled. VNC is not dependent on any external libraries, but it's still enabled. Etc.
...okay now that I poke at this a bit, the brlapi bit and most (but not all) other features are disabled if I fix this:
configure if test "$skip_meson" = no; then · line 5195
Quoted 13 lines
configure +1
-1@@ -5189,7 +5189,7 @@ if test "$skip_meson" = no; then -Ddocs=$docs -Dsphinx_build=$sphinx_build -Dinstall_blobs=$blobs \ -Dvhost_user_blk_server=$vhost_user_blk_server -Dmultiprocess=$multiprocess \ -Dfuse=$fuse -Dfuse_lseek=$fuse_lseek -Dguest_agent_msi=$guest_agent_msi -Dbpf=$bpf\ - $(if test "$default_features" = no; then echo "-Dauto_features=disabled"; fi) \ + $(if test "$default_feature" = no; then echo "-Dauto_features=disabled"; fi) \ -Dtcg_interpreter=$tcg_interpreter \ $cross_arg \ "$PWD" "$source_path"
But there's still a handful of things that are left enabled, for example
VNC, xen, vhost-vdpa, ...
Is the intention for this knob to be a 'disable everything'? If so maybe it should be renamed to --disable-everything to make it less ambiguous, and make it trigger every single --disable-XXX knob. That would be useful for Fedora + RHEL qemu building where we enumerate every --disable-XXX knob already, then build the configure invocation back up with everything we explicitly want to --enable.
There would need to be some extra work done like adding --enable-XXX counterparts for things that lack them, like --enable-blobs. Also it's unclear if we would want it to trigger stuff like --disable-strip, --disable-werror, etc
Thanks,
Cole
Quoted 29 lines · Cole Robinson
Hi all,
I'm a bit confused about the intended scope of ./configure --without-default-features. When I try it here there's still lots of stuff enabled:
$ ./configure --without-default-features ... VNC support : YES VNC SASL support : YES VNC JPEG support : YES VNC PNG support : YES brlapi support : YES vde support : NO netmap support : NO Linux AIO support : NO Linux io_uring support : YES ATTR/XATTR support : YES RDMA support : NO PVRDMA support : NO ...So rdma/pvrdma, which I have libs for, are disabled, but brlapi, which I have libs for, is auto enabled. VNC is not dependent on any external libraries, but it's still enabled. Etc.
...okay now that I poke at this a bit, the brlapi bit and most (but not all) other features are disabled if I fix this:
Quoted 10 lines
configure if test "$skip_meson" = no; then · line 5192
Quoted 10 lines
configure +1
-1@@ -5189,7 +5189,7 @@ if test "$skip_meson" = no; then -Ddocs=$docs -Dsphinx_build=$sphinx_build -Dinstall_blobs=$blobs \ -Dvhost_user_blk_server=$vhost_user_blk_server -Dmultiprocess=$multiprocess \ -Dfuse=$fuse -Dfuse_lseek=$fuse_lseek -Dguest_agent_msi=$guest_agent_msi -Dbpf=$bpf\ - $(if test "$default_features" = no; then echo "-Dauto_features=disabled"; fi) \ + $(if test "$default_feature" = no; then echo "-Dauto_features=disabled"; fi) \
Looks like you've found a bug... Could you please send this as a proper patch to the mailing list?
Quoted 4 lines
But there's still a handful of things that are left enabled, for example
VNC, xen, vhost-vdpa, ...Is the intention for this knob to be a 'disable everything'?
I guess yes, but I think it's still work in progress ... not every feature has been revisited since this switch has been introduced.
Thomas
Quoted 47 lines · Thomas Huth
Quoted 29 lines · Cole Robinson
Hi all,
I'm a bit confused about the intended scope of ./configure --without-default-features. When I try it here there's still lots of stuff enabled:
$ ./configure --without-default-features ... VNC support : YES VNC SASL support : YES VNC JPEG support : YES VNC PNG support : YES brlapi support : YES vde support : NO netmap support : NO Linux AIO support : NO Linux io_uring support : YES ATTR/XATTR support : YES RDMA support : NO PVRDMA support : NO ...So rdma/pvrdma, which I have libs for, are disabled, but brlapi, which I have libs for, is auto enabled. VNC is not dependent on any external libraries, but it's still enabled. Etc.
...okay now that I poke at this a bit, the brlapi bit and most (but not all) other features are disabled if I fix this:
Quoted 14 lines
Quoted 6 lines
configure +0
-0@@ -5189,7 +5189,7 @@ if test "$skip_meson" = no; then -Ddocs=$docs -Dsphinx_build=$sphinx_build -Dinstall_blobs=$blobs \Quoted 8 lines
-Dvhost_user_blk_server=$vhost_user_blk_server -Dmultiprocess=$multiprocess \
-Dfuse=$fuse -Dfuse_lseek=$fuse_lseek -Dguest_agent_msi=$guest_agent_msi -Dbpf=$bpf\
- $(if test "$default_features" = no; then echo "-Dauto_features=disabled"; fi) \
+ $(if test "$default_feature" = no; then echo "-Dauto_features=disabled"; fi) \Looks like you've found a bug... Could you please send this as a proper patch to the mailing list?
Quoted 6 lines
Quoted 4 lines
But there's still a handful of things that are left enabled, for example VNC, xen, vhost-vdpa, ...
Is the intention for this knob to be a 'disable everything'?
I guess yes, but I think it's still work in progress ... not every feature has been revisited since this switch has been introduced.
Ok, scratch that sentence. After looking at configure and meson.build in more details, these rather seem like bugs to me. I'm hacking some patches, will post them later today.
Thomas