configure: avoid screening of --{en, dis}able-usb-redir options
PATCH 1/1 configure: avoid screening of --{en, dis}able-usb-redir options
--*dir) option pattern precede --{en,dis}able-usb-redir) patterns in the option analysis switch, making the latter options have no effect.
--- configure | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
@@ -759,8 +759,6 @@ for opt do ;; --enable-opengl) opengl="yes" ;; - --*dir) - ;; --disable-rbd) rbd="no" ;; --enable-rbd) rbd="yes"
@@ -783,6 +781,8 @@ for opt do ;; --disable-guest-agent) guest_agent="no" ;; + --*dir) + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac
Signature · 1 line
1.7.6.4
Quoted 4 lines · Max Filippov
--*dir) option pattern precede --{en,dis}able-usb-redir) patterns in the option analysis switch, making the latter options have no effect.
Signed-off-by Max Filippov <[email protected]>
I just said this in the other thread, but to repeat it in the right place: I think we should expand out the case statement to explicitly list the --thingydir options it is supposed to be matching, and drop the wildcard: as this bug demonstrates it's rather easy to accidentally shoot yourself in the foot with it.
In fact, what cases is this supposed to be matching? All the documented --thingydir options are handled explicitly earlier in the case statement.
Paolo, you added this case in commit 6bde81cb0, but the commit message doesn't give any rationale; what's it for?
-- PMM
Quoted 7 lines · Peter Maydell
I just said this in the other thread, but to repeat it in the right place: I think we should expand out the case statement to explicitly list the --thingydir options it is supposed to be matching, and drop the wildcard: as this bug demonstrates it's rather easy to accidentally shoot yourself in the foot with it.
Quoted 6 lines
In fact, what cases is this supposed to be matching? All the documented --thingydir options are handled explicitly earlier in the case statement.
Paolo, you added this case in commit
6bde81cb0, but the commit message doesn't give any rationale; what's it for?
There were some --*dir that are supported by Autoconf and not by QEMU configure. The aim was to let QEMU packagers use the rpm (or similar) macro that overrides directories for their distribution.
Quoted 5 lines · Paolo Bonzini
Quoted 4 lines · Peter Maydell
In fact, what cases is this supposed to be matching? All the documented --thingydir options are handled explicitly earlier in the case statement.
Quoted 7 lines
Quoted 2 lines
Paolo, you added this case in commit
6bde81cb0, but the commit message doesn't give any rationale; what's it for?There were some --*dir that are supported by Autoconf and not by QEMU configure. The aim was to let QEMU packagers use the rpm (or similar) macro that overrides directories for their distribution.
Ah. Can we list them explicitly with a comment about why we accept but ignore them, please?
-- PMM
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
In fact, what cases is this supposed to be matching? All the documented --thingydir options are handled explicitly earlier in the case statement.
Paolo, you added this case in commit
6bde81cb0, but the commit message doesn't give any rationale; what's it for?
Quoted 7 lines
Quoted 4 lines
There were some --*dir that are supported by Autoconf and not by QEMU configure. The aim was to let QEMU packagers use the rpm (or similar) macro that overrides directories for their distribution.
Ah. Can we list them explicitly with a comment about why we accept but ignore them, please?
I guess the list is the following:
--mandir=PATH install man pages in PATH --datadir=PATH install firmware in PATH --docdir=PATH install documentation in PATH --bindir=PATH install binaries in PATH --sysconfdir=PATH install config in PATH/qemu
http://www.gnu.org/prep/standards/html_node/Configuration.html says that it should also handle the following list:
--bindir --sbindir --libexecdir --sysconfdir --sharedstatedir --localstatedir --libdir --includedir --oldincludedir --datarootdir --datadir --infodir --localedir --mandir --docdir --htmldir --dvidir --pdfdir --psdir
Do we need anything of these?
Signature · 2 lines
Thanks. -- Max
Quoted 8 lines · Max Filippov
Quoted 7 lines
Quoted 4 lines
There were some --*dir that are supported by Autoconf and not by QEMU configure. The aim was to let QEMU packagers use the rpm (or similar) macro that overrides directories for their distribution.
Ah. Can we list them explicitly with a comment about why we accept but ignore them, please?
Quoted 7 lines
http://www.gnu.org/prep/standards/html_node/Configuration.html says that it should also handle the following list:
--bindir --sbindir --libexecdir --sysconfdir --sharedstatedir --localstatedir --libdir --includedir --oldincludedir --datarootdir --datadir --infodir --localedir --mandir --docdir --htmldir --dvidir --pdfdir --psdir
So the ones we don't already support are:
--sbindir
--libexecdir
--datarootdir
--infodir
--localedir
--htmldir
--dvidir
--pdfdir
--psdir
-- PMM