Perry Myers
2008-Dec-02 21:07 UTC
[Ovirt-devel] [PATCH release] Add check for minimum version of Fedora for building
Builds on F9 will not work, so we check to make sure that minimum version if 10 Signed-off-by: Perry Myers <pmyers at redhat.com> --- ovirt.mk | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ovirt.mk b/ovirt.mk index b0f7977..ee99f5a 100644 --- a/ovirt.mk +++ b/ovirt.mk @@ -15,12 +15,19 @@ SUBDIRS ?= release server node node-image recipe docs appliance SUBDIR_SEP = =========================================================== +FEDORA = $(shell rpm --eval '%{fedora}') +MIN_FEDORA = 10 + export OVIRT_CACHE_DIR ?= $(HOME)/ovirt-cache SRC_KS = $(OVIRT_CACHE_DIR)/src.ks F_REL = $(shell rpm -q --qf '%{VERSION}' fedora-release) BUILD_DIR := $(shell pwd) define subdir_gen_and_make + if [ "$(FEDORA)" -lt "$(MIN_FEDORA)" ]; then \ + echo "Minimum version of Fedora to build with is $(MIN_FEDORA)." ; \ + exit 1 ; \ + fi ; \ echo $(SUBDIR_SEP) $$dir; \ (cd $$dir && test ! -f Makefile.in && test -f autogen.sh && ./autogen.sh) \ || :; \ -- 1.6.0.4
Perry Myers
2008-Dec-02 21:19 UTC
[Ovirt-devel] Re: [PATCH release] Add check for minimum version of Fedora for building
Perry Myers wrote:> Builds on F9 will not work, so we check to make sure that minimum > version if 10This patch should have a bit more explanation to it :) Fedora 10 is officially released as of last week, and for the .96 release that is upcoming for oVirt we'll be moving to F10 as a base for the oVirt Node, Appliance and for building. There are several things that are broken on F9 that will probably not be fixed, and there aren't compelling reasons to continue supporting F9 as a base for oVirt as we're rapidly moving forward on the bleeding edge of functionality. The F9 repos on ovirt.org will be moved to an archive for historical purposes once .96 is released. Perry