[fedora-virt] [qemu RPM PATCH] use --with variables for build-time settings

Eduardo Habkost ehabkost at redhat.com
Wed Mar 28 20:14:51 UTC 2012


On Wed, Mar 28, 2012 at 07:50:52PM +0100, Daniel P. Berrange wrote:
> On Wed, Mar 28, 2012 at 11:30:17AM -0300, Eduardo Habkost wrote:
> > This keeps the Fedora and RHEL defaults as-is, but makes the spec code
> > clearer.
> > 
> > I would like to get some review before committing this to the fedpkg
> > repository.
> 
> This looks ok to me. You'll have to rebase though, since I just pushed
> a couple of fixes to master, related to the x86only conditional.

OK, rebased, changed the new %{with_x86only} lines to use %{with
x86only}, and pushed.

> 
> > +# = fdt =
> > +# Enable fdt support.
> > +#
> > +# Enabled by default, except on RHEL.
> 
> Fdt is only used by the PPC emulators, so if x86only is set,
> we should disable fdt too.

To do that, the code would have to look like:

%if 0%{?rhel}
# RHEL-specific defaults:
%bcond_without exclusive_x86_64
%bcond_with    rbd
%bcond_with    fdt
%else
# General defaults:
%bcond_without exclusive_x86_64
%bcond_without rbd
%if %{with x86only}
%bcond_with    fdt
%else
%bcond_without fdt
%endif
%endif

That looks really confusing, IMO. Considering that having the extra
BuildRequires is harmless and can be easily fixed by the build submitter
using --without fdt, it doesn't seem to be worth the effort, to me.

But if you have a simpler solution or you think the above solution is
worth it, I won't oppose it.

-- 
Eduardo


More information about the virt mailing list