forked from pool/libvirt
Workaround for missing pkgconfig file in device-mapper-devel
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=7
This commit is contained in:
parent
b29caba4ca
commit
7a53c8ed23
@ -2,7 +2,7 @@ Index: libvirt-0.7.1/src/xend_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.1.orig/src/xend_internal.c
|
||||
+++ libvirt-0.7.1/src/xend_internal.c
|
||||
@@ -5875,7 +5875,7 @@ virDomainXMLDevID(virDomainPtr domain,
|
||||
@@ -5877,7 +5877,7 @@ virDomainXMLDevID(virDomainPtr domain,
|
||||
return -1;
|
||||
xenUnifiedLock(priv);
|
||||
xref = xenStoreDomainGetDiskID(domain->conn, domain->id,
|
||||
|
32
devmap-no-pkgconfig.patch
Normal file
32
devmap-no-pkgconfig.patch
Normal file
@ -0,0 +1,32 @@
|
||||
diff --git a/configure.in b/configure.in
|
||||
index cb5ce55..d1711fd 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1227,11 +1227,22 @@ if test "$with_storage_mpath" = "yes"; then
|
||||
DEVMAPPER_REQUIRED=0.0
|
||||
DEVMAPPER_CFLAGS=
|
||||
DEVMAPPER_LIBS=
|
||||
- PKG_CHECK_MODULES(DEVMAPPER, devmapper >= $DEVMAPPER_REQUIRED,
|
||||
- [], [
|
||||
- AC_MSG_ERROR(
|
||||
- [You must install device-mapper-devel >= $DEVMAPPER_REQUIRED to compile libvirt])
|
||||
- ])
|
||||
+ PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= $DEVMAPPER_REQUIRED], [], [DEVMAPPER_FOUND=no])
|
||||
+ if test "$DEVMAPPER_FOUND" = "no"; then
|
||||
+ # devmapper is missing pkg-config files in ubuntu, suse, etc
|
||||
+ save_LIBS="$LIBS"
|
||||
+ save_CFLAGS="$CFLAGS"
|
||||
+ DEVMAPPER_FOUND=yes
|
||||
+ AC_CHECK_HEADER([libdevmapper.h],,[DEVMAPPER_FOUND=no])
|
||||
+ AC_CHECK_LIB([devmapper], [dm_task_run],,[DEVMAPPER_FOUND=no])
|
||||
+ DEVMAPPER_LIBS="-ldevmapper"
|
||||
+ LIBS="$save_LIBS"
|
||||
+ CFLAGS="$save_CFLAGS"
|
||||
+ fi
|
||||
+ if test "$DEVMAPPER_FOUND" = "no" ; then
|
||||
+ AC_MSG_ERROR([You must install device-mapper-devel/libdevmapper >= $DEVMAPPER_REQUIRED to compile libvirt])
|
||||
+ fi
|
||||
+
|
||||
fi
|
||||
AC_SUBST([DEVMAPPER_CFLAGS])
|
||||
AC_SUBST([DEVMAPPER_LIBS])
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 23 11:10:37 MDT 2009 - jfehlig@novell.com
|
||||
|
||||
- Workaround for missing pkgconfig file in device-mapper-devel
|
||||
devmap-no-pkgconfig.patch
|
||||
bnc#540942
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 21 10:30:02 MDT 2009 - jfehlig@novell.com
|
||||
|
||||
|
20
libvirt.spec
20
libvirt.spec
@ -83,14 +83,19 @@ Requires: PolicyKit >= 0.6
|
||||
%endif
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: libvirtd.init
|
||||
Patch0: socat.patch
|
||||
Patch1: libvirtd-defaults.patch
|
||||
# Upstream patches
|
||||
Patch0: devmap-no-pkgconfig.patch
|
||||
# Need to go upstream
|
||||
Patch1: socat.patch
|
||||
Patch2: clone.patch
|
||||
Patch3: xen-pv-cdrom.patch
|
||||
Patch4: detach-disk.patch
|
||||
Patch5: migrate-params.patch
|
||||
Patch6: suse-network.patch
|
||||
Patch7: snapshots.patch
|
||||
Patch3: migrate-params.patch
|
||||
Patch4: xen-pv-cdrom.patch
|
||||
Patch5: detach-disk.patch
|
||||
# Our patches
|
||||
Patch6: libvirtd-defaults.patch
|
||||
Patch7: suse-network.patch
|
||||
Patch8: snapshots.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -190,6 +195,7 @@ Authors:
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%build
|
||||
%if ! %{with_xen}
|
||||
|
@ -2,7 +2,7 @@ Index: libvirt-0.7.1/src/xend_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.1.orig/src/xend_internal.c
|
||||
+++ libvirt-0.7.1/src/xend_internal.c
|
||||
@@ -5304,7 +5304,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
||||
@@ -5306,7 +5306,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
||||
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
||||
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user