add --confdir option to configure
cover add --confdir option to configure
This series change the Makefile to use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.
Eduardo Habkost (3):
Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu qemu-options.hx: refer to confdir instead of sysconfdir on docs
configure: make full config dir path configurable
Makefile | 4 ++-- configure | 15 ++++++++++----- qemu-options.hx | 4 ++-- 3 files changed, 14 insertions(+), 9 deletions(-)
Signature · 1 line
1.7.3.2
PATCH 2/3 qemu-options.hx: refer to confdir instead of sysconfdir on docs
--- qemu-options.hx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
qemu-options.hx +2 -2
@@ -2676,8 +2676,8 @@ DEF("nodefconfig", 0, QEMU_OPTION_nodefconfig, STEXI @item -nodefconfig @findex -nodefconfig -Normally QEMU loads a configuration file from @var{sysconfdir}/qemu.conf and -@var{sysconfdir}/target-@var{ARCH}.conf on startup. The @code{-nodefconfig} +Normally QEMU loads a configuration file from @var{confdir}/qemu.conf and +@var{confdir}/target-@var{ARCH}.conf on startup. The @code{-nodefconfig} option will prevent QEMU from loading these configuration files at startup. ETEXI DEF("trace", HAS_ARG, QEMU_OPTION_trace,
Signature · 1 line
1.7.3.2
PATCH 3/3 configure: make full config dir path configurable
In reply to Eduardo HabkostInstead of hardcoding $sysconfdir/qemu, let the user choose the full path.
--- configure | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-)
configure +10 -5
@@ -162,6 +162,7 @@ libdir="\${prefix}/lib" includedir="\${prefix}/include" sysconfdir="\${prefix}/etc" confsuffix="/qemu" +fullconfdir="" slirp="yes" fmod_lib="" fmod_inc=""
@@ -595,6 +596,8 @@ for opt do ;; --sysconfdir=*) sysconfdir="$optarg" ;; + --confdir=*) fullconfdir="$optarg" + ;; --sbindir=*|--libexecdir=*|--sharedstatedir=*|--localstatedir=*|\ --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\ --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
@@ -1010,7 +1013,8 @@ echo " --mandir=PATH install man pages in PATH" echo " --datadir=PATH install firmware in PATH" echo " --docdir=PATH install documentation in PATH" echo " --bindir=PATH install binaries in PATH" -echo " --sysconfdir=PATH install config in PATH/qemu" +echo " --sysconfdir=PATH install config in PATH$confsuffix" +echo " --confdir=PATH install config in PATH (overrides --sysconfdir)" echo " --enable-debug-tcg enable TCG debugging" echo " --disable-debug-tcg disable TCG debugging (default)" echo " --enable-debug enable common debug build options"
@@ -2830,7 +2834,9 @@ if test "$mingw32" = "yes" ; then done fi -confdir=$sysconfdir$confsuffix +if [ -z "$fullconfdir" ];then + fullconfdir=$sysconfdir$confsuffix +fi tools= if test "$softmmu" = yes ; then
@@ -2869,7 +2875,7 @@ echo "BIOS directory `eval echo $datadir`" echo "binary directory `eval echo $bindir`" echo "library directory `eval echo $libdir`" echo "include directory `eval echo $includedir`" -echo "config directory `eval echo $sysconfdir`" +echo "config directory `eval echo $fullconfdir`" if test "$mingw32" = "no" ; then echo "Manual directory `eval echo $mandir`" echo "ELF interp prefix $interp_prefix"
@@ -2974,9 +2980,8 @@ echo "libdir=$libdir" >> $config_host_mak echo "includedir=$includedir" >> $config_host_mak echo "mandir=$mandir" >> $config_host_mak echo "datadir=$datadir" >> $config_host_mak -echo "sysconfdir=$sysconfdir" >> $config_host_mak echo "docdir=$docdir" >> $config_host_mak -echo "confdir=$confdir" >> $config_host_mak +echo "confdir=$fullconfdir" >> $config_host_mak echo "libexecdir=\${prefix}/libexec" >> $config_host_mak echo "CONFIG_QEMU_SHAREDIR=\"$prefix$datasuffix\"" >> $config_host_mak echo "CONFIG_QEMU_HELPERDIR=\"$prefix/libexec\"" >> $config_host_mak
Signature · 1 line
1.7.3.2
PATCH 1/3 Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu
In reply to Eduardo Habkost--- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
@@ -279,8 +279,8 @@ ifdef CONFIG_VIRTFS $(INSTALL_DATA) fsdev/virtfs-proxy-helper.1 "$(DESTDIR)$(mandir)/man1" endif install-sysconfig: - $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu" - $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu" + $(INSTALL_DIR) "$(DESTDIR)$(confdir)" + $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(confdir)" install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
Signature · 1 line
1.7.3.2
Re: [Qemu-devel] [PATCH 3/3] configure: make full config dir path configurable
In reply to Eduardo HabkostQuoted 30 lines · Eduardo Habkost
Instead of hardcoding $sysconfdir/qemu, let the user choose the full path.
Signed-off-by Eduardo Habkost<[email protected]>--- configure | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-)configure +3
-0@@ -162,6 +162,7 @@ libdir="\${prefix}/lib" includedir="\${prefix}/include" sysconfdir="\${prefix}/etc" confsuffix="/qemu" +fullconfdir="" slirp="yes" fmod_lib="" fmod_inc=""@@ -595,6 +596,8 @@ for opt do ;; --sysconfdir=*) sysconfdir="$optarg" ;; + --confdir=*) fullconfdir="$optarg" + ;; --sbindir=*|--libexecdir=*|--sharedstatedir=*|--localstatedir=*|\ --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\ --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
configure echo " --mandir=PATH install man pages in PATH" · line 1017
Quoted 6 lines
configure +2
-1@@ -1010,7 +1013,8 @@ echo " --mandir=PATH install man pages in PATH" echo " --datadir=PATH install firmware in PATH" echo " --docdir=PATH install documentation in PATH" echo " --bindir=PATH install binaries in PATH" -echo " --sysconfdir=PATH install config in PATH/qemu" +echo " --sysconfdir=PATH install config in PATH$confsuffix" +echo " --confdir=PATH install config in PATH (overrides --sysconfdir)"
These semantics seem odd to me, is this similar to what autotools does? I think that's what we're trying to match here.
Regards,
Anthony Liguori
Quoted 3 lines · Eduardo Habkost
This series change the
Makefileto use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.
What's the use case here? Is this to allow $(sysconfdir)/qemu-kvm?
I'd rather we use a PACKAGE_NAME define to do that and have qemu-kvm change PACKAGE_NAME.
Regards,
Anthony Liguori
Quoted 11 lines
Eduardo Habkost (3):
Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu qemu-options.hx: refer to confdir instead of sysconfdir on docs
configure: make full config dir path configurableMakefile | 4 ++-- configure | 15 ++++++++++----- qemu-options.hx | 4 ++-- 3 files changed, 14 insertions(+), 9 deletions(-)
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost
This series change the
Makefileto use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.What's the use case here? Is this to allow $(sysconfdir)/qemu-kvm?
Yes. On RHEL we usually package qemu-kvm only, but we try to avoid conflicts in case other flavors of qemu be provided by third-parties (read: EPEL).
Quoted 3 lines
I'd rather we use a
PACKAGE_NAMEdefine to do that and have qemu-kvm changePACKAGE_NAME.
I tried to mimic --mandir, --datadir, --docdir, and all other options that expect full paths instead of trying to building one itself.
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
Signature · 1 line
Eduardo
Quoted 16 lines · Eduardo Habkost
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost
This series change the
Makefileto use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.What's the use case here? Is this to allow $(sysconfdir)/qemu-kvm?
Yes. On RHEL we usually package qemu-kvm only, but we try to avoid conflicts in case other flavors of qemu be provided by third-parties (read: EPEL).
Quoted 3 lines
I'd rather we use a
PACKAGE_NAMEdefine to do that and have qemu-kvm changePACKAGE_NAME.
Quoted 7 lines
I tried to mimic --mandir, --datadir, --docdir, and all other options that expect full paths instead of trying to building one itself.
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed PACKAGE_NAME define.
Regards,
Anthony Liguori
Quoted 1 line
Re: [Qemu-devel] [PATCH 3/3] configure: make full config dir path configurable
In reply to Anthony LiguoriIl 19/03/2012 16:13, Anthony Liguori ha scritto:
Quoted 7 lines
configure echo " --mandir=PATH install man pages in PATH"
Quoted 5 lines
configure +2
-2-echo " --sysconfdir=PATH install config in PATH/qemu" +echo " --sysconfdir=PATH install config in PATH$confsuffix" +echo " --confdir=PATH install config in PATH (overrides --sysconfdir)"These semantics seem odd to me, is this similar to what autotools does?
No, autotools don't have confdir at all.
This stuff is outside the scope of autotools. The latest fad is to look for files in /usr/share/PACKAGE/foo (or /usr/lib, depending on whether they depend on the host arch---for QEMU they shouldn't), /etc/PACKAGE/foo and ~/.local/share/PACKAGE/foo. That's likely what we should do here (except perhaps ~/.local): start with --datadir and --sysconfdir, tack /qemu at the end and look in the two resulting directories.
Paolo
Quoted 20 lines · Anthony Liguori
Quoted 19 lines · Eduardo Habkost
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost
This series change the
Makefileto use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.What's the use case here? Is this to allow $(sysconfdir)/qemu-kvm?
Yes. On RHEL we usually package qemu-kvm only, but we try to avoid conflicts in case other flavors of qemu be provided by third-parties (read: EPEL).
Quoted 3 lines
I'd rather we use a
PACKAGE_NAMEdefine to do that and have qemu-kvm changePACKAGE_NAME.I tried to mimic --mandir, --datadir, --docdir, and all other options that expect full paths instead of trying to building one itself.
Quoted 8 lines
Quoted 4 lines
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.
Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
Signature · 1 line
Eduardo
Quoted 26 lines · Eduardo Habkost
Quoted 25 lines · Anthony Liguori
Quoted 23 lines · Eduardo Habkost
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost
This series change the
Makefileto use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.What's the use case here? Is this to allow $(sysconfdir)/qemu-kvm?
Yes. On RHEL we usually package qemu-kvm only, but we try to avoid conflicts in case other flavors of qemu be provided by third-parties (read: EPEL).
Quoted 3 lines
I'd rather we use a
PACKAGE_NAMEdefine to do that and have qemu-kvm changePACKAGE_NAME.I tried to mimic --mandir, --datadir, --docdir, and all other options that expect full paths instead of trying to building one itself.
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
To change the package name? Absolutely!
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
Changing the package name is a Big Deal. It's not that we should provide a friendly interface for.
If you're already a downstream, I don't see the problem carrying a one liner for something this significant.
Regards,
Anthony Liguori
Quoted 8 lines · Eduardo Habkost
Quoted 8 lines
Quoted 4 lines
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.
Actually, the idea of an explicit --package-name is not that bad: the upstream automake list recently had a discussion on whether it should be possible to alter the PACKAGE_NAME at configure or even make time, and the conclusion was that it might be a useful idea, but we'd need to pursue getting the GNU Coding Standards, autoconf, and automake all updated to make it a reality, as it is not necessarily a trivial task from the outset.
https://lists.gnu.org/archive/html/automake/2012-02/msg00034.html
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
Obviously, since qemu doesn't use automake, we aren't quite in the same position as that automake thread; and even though we are not bound by GNU Coding Standards, it might be interesting to see what happens on that front, to make sure we are not proposing an incompatible solution.
Signature · 2 lines
Eric Blake [email protected] +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 27 lines · Anthony Liguori
Quoted 26 lines · Eduardo Habkost
Quoted 25 lines · Anthony Liguori
Quoted 23 lines · Eduardo Habkost
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost
This series change the
Makefileto use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu.What's the use case here? Is this to allow $(sysconfdir)/qemu-kvm?
Yes. On RHEL we usually package qemu-kvm only, but we try to avoid conflicts in case other flavors of qemu be provided by third-parties (read: EPEL).
Quoted 3 lines
I'd rather we use a
PACKAGE_NAMEdefine to do that and have qemu-kvm changePACKAGE_NAME.I tried to mimic --mandir, --datadir, --docdir, and all other options that expect full paths instead of trying to building one itself.
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
To change the package name? Absolutely!
Why?
Quoted 8 lines
Quoted 5 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
Changing the package name is a Big Deal. It's not that we should provide a friendly interface for.
Why is it a Big Deal?
Quoted 3 lines
If you're already a downstream, I don't see the problem carrying a one liner for something this significant.
Why it is so significant?
Why is /etc/qemu so different from mandir, docdir, and datadir?
Signature · 1 line
Eduardo
Il 19/03/2012 16:43, Eduardo Habkost ha scritto:
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
Not downstream as in RHEL; downstream as in qemu-kvm which is a fork anyway.
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
I think the package name is a pretty special case. Even with autotools, it's pretty much the only thing that requires configure-by-sed to change it.
Paolo
Quoted 10 lines · Paolo Bonzini
Il 19/03/2012 16:43, Eduardo Habkost ha scritto:
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
Not downstream as in RHEL; downstream as in qemu-kvm which is a fork anyway.
Quoted 7 lines
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
I think the package name is a pretty special case. Even with autotools, it's pretty much the only thing that requires configure-by-sed to change it.
I still don't understand why, except that it's a limitation of the build system implementation. If we don't have that restriction, I don't see why this should be restricted by design.
Anyway, even if we decide that package name shouldn't be changed: why changing mandir, docdir and datadir doesn't require changing the package name, but changing /etc/qemu has to?
Signature · 1 line
Eduardo
Quoted 16 lines · Eduardo Habkost
Quoted 15 lines · Paolo Bonzini
Il 19/03/2012 16:43, Eduardo Habkost ha scritto:
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
Not downstream as in RHEL; downstream as in qemu-kvm which is a fork anyway.
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
Quoted 6 lines
Quoted 2 lines
I think the package name is a pretty special case. Even with autotools, it's pretty much the only thing that requires configure-by-sed to change it.
I still don't understand why, except that it's a limitation of the build system implementation. If we don't have that restriction, I don't see why this should be restricted by design.
Because rebranding QEMU is not something we want to actively encourage downstreams to do. The fact that qemu-kvm does this is a historical artifact that we'll hopefully kill off in the near future.
Regards,
Anthony Liguori
Quoted 4 lines
Anyway, even if we decide that package name shouldn't be changed: why changing mandir, docdir and datadir doesn't require changing the package name, but changing
/etc/qemuhas to?
Quoted 18 lines · Eric Blake
Quoted 8 lines · Eduardo Habkost
Quoted 8 lines
Quoted 4 lines
A --package-name option could be provided to make it easier to override all the defaults at the same time, but I don't see why not include an option to define the full path for confdir, just like we allow for datadir, docdir, and mandir.
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Actually, the idea of an explicit --package-name is not that bad: the upstream automake list recently had a discussion on whether it should be possible to alter the
PACKAGE_NAMEat configure or even make time, and the conclusion was that it might be a useful idea, but we'd need to pursue getting the GNU Coding Standards, autoconf, and automake all updated to make it a reality, as it is not necessarily a trivial task from the outset.
That's interesting, thanks for point it out.
But I think for qemu, we should stick to not making PACKAGE_NAME configurable.
I would hope that qemu-kvm would stop being packaged separate from qemu in most distributions in the not so distance future.
Regards,
Anthony Liguori
Quoted 11 lines
Quoted 5 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
Obviously, since qemu doesn't use automake, we aren't quite in the same position as that automake thread; and even though we are not bound by GNU Coding Standards, it might be interesting to see what happens on that front, to make sure we are not proposing an incompatible solution.
Il 19/03/2012 17:20, Eduardo Habkost ha scritto:
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
I think the package name is a pretty special case. Even with autotools, it's pretty much the only thing that requires configure-by-sed to change it.
I still don't understand why, except that it's a limitation of the build system implementation. If we don't have that restriction, I don't see why this should be restricted by design.
Because our configure is half-compatible, half-incompatible with autotools. This can be confusing, I don't think it's good to add to the differences.
Quoted 2 lines
Anyway, even if we decide that package name shouldn't be changed: why changing mandir,
This one is because all manpages are under /usr/man/manSECT
Quoted 2 lines
docdir and datadir doesn't require changing the package name, but changing
/etc/qemuhas to?
The pedantic answer is "because our meaning of --datadir differ from the one of autotools", and it cannot really be changed because it would break backwards-compatibility. However, I guess that's not an entirely satisfying answer.
However, the package name and the directory suffix need not be exactly the same. Why don't you add --with-conf-suffix or something like that, and make it apply to both datadir and sysconfdir?
Paolo
Quoted 19 lines · Eduardo Habkost
Quoted 10 lines · Paolo Bonzini
Il 19/03/2012 16:43, Eduardo Habkost ha scritto:
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
Not downstream as in RHEL; downstream as in qemu-kvm which is a fork anyway.
Quoted 7 lines
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
I think the package name is a pretty special case. Even with autotools, it's pretty much the only thing that requires configure-by-sed to change it.
Quoted 7 lines
I still don't understand why, except that it's a limitation of the build system implementation. If we don't have that restriction, I don't see why this should be restricted by design.
Anyway, even if we decide that package name shouldn't be changed: why changing mandir, docdir and datadir doesn't require changing the package name, but changing
/etc/qemuhas to?
This is simply autotools semantics that we're emulating.
Regards,
Anthony Liguori
Quoted 1 line
Il 19/03/2012 17:32, Anthony Liguori ha scritto:
Quoted 9 lines
Quoted 7 lines
I still don't understand why, except that it's a limitation of the build system implementation. If we don't have that restriction, I don't see why this should be restricted by design.
Anyway, even if we decide that package name shouldn't be changed: why changing mandir, docdir and datadir doesn't require changing the package name, but changing
/etc/qemuhas to?This is simply autotools semantics that we're emulating.
Actually we're not (in the case of datadir).
Paolo
Quoted 20 lines · Anthony Liguori
Quoted 19 lines · Eduardo Habkost
Quoted 17 lines · Paolo Bonzini
Il 19/03/2012 16:43, Eduardo Habkost ha scritto:
Quoted 6 lines
Quoted 3 lines
No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed
PACKAGE_NAMEdefine.Are you really suggesting that forcing downstream to carry a patch is better than having a configure option?
Not downstream as in RHEL; downstream as in qemu-kvm which is a fork anyway.
Quoted 4 lines
If you suggest making it configurable using a variable on the 'make' command-line it would be OK, but I kind of hoped that no modern software project would ever require packagers to use configure-by-sed methods to set build parameters.
I think the package name is a pretty special case. Even with autotools, it's pretty much the only thing that requires configure-by-sed to change it.
Quoted 7 lines
Quoted 3 lines
I still don't understand why, except that it's a limitation of the build system implementation. If we don't have that restriction, I don't see why this should be restricted by design.
Because rebranding QEMU is not something we want to actively encourage downstreams to do. The fact that qemu-kvm does this is a historical artifact that we'll hopefully kill off in the near future.
I don't think this will ever be killed. Note that this has nothing to do with the fact that qemu-kvm is a separate upstream tree, but with build-time options. The problem is:
- RHEL provides Qemu, but only with the build options we support;
- I want to avoid conflicting with third-party packages (read: the qemu package on EPEL) that use different build options.
The main difference happens to be the fact that we build only qemu-kvm, but there are all other build-time options we enable/disable and that may be chosen differently by a third-party Qemu package.
The purpose of this is not rebranding, it's storing binaries, data, and configuration files in separate places to avoid unnecessary conflicts and pain for the user.
Signature · 1 line
Eduardo
Quoted 9 lines · Paolo Bonzini
Il 19/03/2012 17:20, Eduardo Habkost ha scritto:
Quoted 2 lines
Anyway, even if we decide that package name shouldn't be changed: why changing mandir,
This one is because all manpages are under
/usr/man/manSECTQuoted 2 lines
docdir and datadir doesn't require changing the package name, but changing
/etc/qemuhas to?
Quoted 8 lines
The pedantic answer is "because our meaning of --datadir differ from the one of autotools", and it cannot really be changed because it would break backwards-compatibility. However, I guess that's not an entirely satisfying answer.
However, the package name and the directory suffix need not be exactly the same. Why don't you add --with-conf-suffix or something like that, and make it apply to both datadir and sysconfdir?
That would work. I don't care about the package name, I just want to allow the config path to be configured. Why were we all assuming that the configuration path suffix has to match the package name, in the first place?
I mean, autotools don't prohibit software from looking at a /etc subdirectories /etc/PACKAGE, right? Deciding where exactly to look is out of the scope of autotools, isn't it? It's just configurable Qemu behavior.
Signature · 1 line
Eduardo