[libvirt] 0.7.1 compile fails on opensuse 11.1

Hi it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed. Regards Dominik 1 https://bugzilla.novell.com/show_bug.cgi?id=54094

it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed.
Hi All, Just fixed this for ubuntu (should work now for suse as well) with some help from danpb and DV. The patch is attached below. Regards, Pritesh

Pritesh Kothari wrote:
it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed.
Hi All,
Just fixed this for ubuntu (should work now for suse as well) with some help from danpb and DV.
The patch is attached below.
It does not work for me. After applying the patch, configure still fails with checking for DEVMAPPER... no configure: error: You must install device-mapper-devel >= 0.0 to compile libvirt config.log says: configure:48143: checking for DEVMAPPER configure:48150: $PKG_CONFIG --exists --print-errors "devmapper >= $DEVMAPPER_REQUIRED" Package devmapper was not found in the pkg-config search path. Perhaps you should add the directory containing `devmapper.pc' to the PKG_CONFIG_PATH environment variable No package 'devmapper' found configure:48153: $? = 1 configure:48166: $PKG_CONFIG --exists --print-errors "devmapper >= $DEVMAPPER_REQUIRED" Package devmapper was not found in the pkg-config search path. Perhaps you should add the directory containing `devmapper.pc' to the PKG_CONFIG_PATH environment variable No package 'devmapper' found configure:48169: $? = 1 No package 'devmapper' found configure:48196: result: no configure:48199: error: You must install device-mapper-devel >= 0.0 to compile libvirt Version info: rpm -qa|grep device-mapper device-mapper-1.02.27-7.1 device-mapper-devel-1.02.27-7.1 Regards Dominik

Hi Dominik,
The patch is attached below.
It does not work for me. After applying the patch, configure still fails with
checking for DEVMAPPER... no configure: error: You must install device-mapper-devel >= 0.0 to compile libvirt
Since it is still showing the old message, I guess the patch was not applied properly or you are still using the old generated configure file, you can try deleting the old configure file and building again Regards, Pritesh

Pritesh Kothari wrote:
it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed.
Hi All,
Just fixed this for ubuntu (should work now for suse as well) with some help from danpb and DV.
The patch is attached below.
ACK to this patch btw, it does solve the problem in SuSE distros where device-mapper-devel is missing pkgconfig file. But the problem is really a bug in the devel package, so will this workaround be committed to libvirt configure script? Thanks, Jim

ACK to this patch btw, it does solve the problem in SuSE distros where device-mapper-devel is missing pkgconfig file. But the problem is really a bug in the devel package, so will this workaround be committed to libvirt configure script?
Afaics, the opensuse patch has been sent and is now being reviewed. So hopefully this patch will not be needed (at least not for opensuse). Regards Dominik

Jim Fehlig wrote:
Pritesh Kothari wrote:
it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed.
Hi All,
Just fixed this for ubuntu (should work now for suse as well) with some help from danpb and DV.
The patch is attached below.
ACK to this patch btw, it does solve the problem in SuSE distros where device-mapper-devel is missing pkgconfig file. But the problem is really a bug in the devel package, so will this workaround be committed to libvirt configure script?
Hi Daniel, Any plans to apply this patch? I can keep it locally for environments with broken dev-mapper-devel package if need be. Thanks! Jim

On Mon, Oct 26, 2009 at 09:37:48AM -0600, Jim Fehlig wrote:
Jim Fehlig wrote:
Pritesh Kothari wrote:
it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed.
Hi All,
Just fixed this for ubuntu (should work now for suse as well) with some help from danpb and DV.
The patch is attached below.
ACK to this patch btw, it does solve the problem in SuSE distros where device-mapper-devel is missing pkgconfig file. But the problem is really a bug in the devel package, so will this workaround be committed to libvirt configure script?
Hi Daniel,
Any plans to apply this patch? I can keep it locally for environments with broken dev-mapper-devel package if need be.
Ah right ! I had forgotten about it, it's pushed ! thanks for the reminder :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

Dominik Klein wrote:
Hi
it seems openSuSE 11.1 does not come with a pkgconfig for the device-mapper-devel package. I created a bug [1] for opensuse but was also told to mention it here so configure.in could be patched once the bug was fixed.
Regards Dominik
That bug # is incorrect and I had no luck searching bugzilla for such a bug description. Can you check the bug id again? Interestingly, I just uploaded 0.7.1 to Virtualization project in openSUSE build service. It built fine against Factory, after adjusting spec file to account for polkit-1. The Virtualization project has 11.1 and SLE11 builds enabled, which I expect will fail once the scheduled build jobs are executed. My timing couldn't be better though as I see a follow-up which contains a patch :-). Regards, Jim

That bug # is incorrect and I had no luck searching bugzilla for such a bug description. Can you check the bug id again?
I missed a 2 there. Copy/paste error. Sorry. https://bugzilla.novell.com/show_bug.cgi?id=540942 Regards Dominik
Interestingly, I just uploaded 0.7.1 to Virtualization project in openSUSE build service. It built fine against Factory, after adjusting spec file to account for polkit-1. The Virtualization project has 11.1 and SLE11 builds enabled, which I expect will fail once the scheduled build jobs are executed. My timing couldn't be better though as I see a follow-up which contains a patch :-).
Regards, Jim
participants (4)
-
Daniel Veillard
-
Dominik Klein
-
Jim Fehlig
-
Pritesh Kothari