From 4235031d5427dea020b273444b3101f3e441188fe90d796d82ff8f1aa9524a13 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 29 Nov 2012 19:27:20 +0000 Subject: [PATCH] - update BuildRequire ext4-writeable-kmp-default handling enable it unconditional in sles11 builds, but not in the Virtualization repo because its a private package. OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=166 --- libguestfs.changes | 7 +++++++ libguestfs.spec | 11 ++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/libguestfs.changes b/libguestfs.changes index c25cf30..d1de9df 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 29 20:25:33 CET 2012 - ohering@suse.de + +- update BuildRequire ext4-writeable-kmp-default handling + enable it unconditional in sles11 builds, but not in the + Virtualization repo because its a private package. + ------------------------------------------------------------------- Thu Nov 29 20:15:11 CET 2012 - ohering@suse.de diff --git a/libguestfs.spec b/libguestfs.spec index 55ef527..6b31182 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -281,9 +281,18 @@ BuildRequires: cryptsetup BuildRequires: diffutils BuildRequires: dosfstools BuildRequires: e2fsprogs -%if "%_project" == "Devel:Virt:SLE-11-SP3" +# ext4 in the sles11 kernel-binary.rpm packages operates only in read-only mode. +# The generated initrd operates inside the temporary guest on image files. +# For that reason it needs to make modifications to any kind of filesystems. +# Make use of an ext4 driver with write support. But: +# This package exists only in the internal buildservice, so require it only there. +%if %suse_version == 1110 +%if "%_project" == "Virtualization" +# package does not exist in OBS main repo +%else BuildRequires: ext4-writeable-kmp-default %endif +%endif BuildRequires: file BuildRequires: findutils BuildRequires: gawk