libvirt: fix build error caused by host 'xmllint'
PATCH 1/1 libvirt: fix build error caused by host 'xmllint'
There is host contamination in that we force XMLLINT to be '/usr/bin/xmllint' via ac_cv_path_XMLLINT. This results in the error:
/bin/bash: /usr/bin/xmllint: No such file or directory
We only use XMLLINT during the build, it is present in two Makefiles included with ptest package but they are unused. So we drop the setting of ac_cv_path_XMLLINT to ensure we are using xmllint in the recipe sysroot instead of the host's. Should the ptest package ever evolve to make use of the Makefiles we need to update not only the XMLLINT path but that for XSLTPROC and others too. (I would suggest that the Makefiles may have been used on the target as part of ptest at one point, but are no longer and should be removed, though I haven't investigated further).
--- recipes-extended/libvirt/libvirt_4.3.0.bb | 1 - 1 file changed, 1 deletion(-)
recipes-extended/libvirt/libvirt_4.3.0.bb +0 -1
@@ -43,7 +43,6 @@ SRC_URI[libvirt.sha256sum] = "a531e22c8b985ecb2d1223b913fd6ec0f1800e3ebe02351924 inherit autotools gettext update-rc.d pkgconfig ptest systemd CACHED_CONFIGUREVARS += "\ -ac_cv_path_XMLLINT=/usr/bin/xmllint \ ac_cv_path_XMLCATLOG=/usr/bin/xmlcatalog \ ac_cv_path_AUGPARSE=/usr/bin/augparse \ ac_cv_path_DNSMASQ=/usr/bin/dnsmasq \
Signature · 1 line
2.7.4
merged.
Bruce
Quoted 33 lines · Mark Asselstine
There is host contamination in that we force XMLLINT to be '
/usr/bin/xmllint' viaac_cv_path_XMLLINT. This results in the error:
/bin/bash:/usr/bin/xmllint: No such file or directoryWe only use XMLLINT during the build, it is present in two Makefiles included with ptest package but they are unused. So we drop the setting of
ac_cv_path_XMLLINTto ensure we are using xmllint in the recipe sysroot instead of the host's. Should the ptest package ever evolve to make use of the Makefiles we need to update not only the XMLLINT path but that for XSLTPROC and others too. (I would suggest that the Makefiles may have been used on the target as part of ptest at one point, but are no longer and should be removed, though I haven't investigated further).Signed-off-by Mark Asselstine <[email protected]>--- recipes-extended/libvirt/libvirt_4.3.0.bb | 1 - 1 file changed, 1 deletion(-)recipes-extended/libvirt/libvirt_4.3.0.bb +0
-1@@ -43,7 +43,6 @@ SRC_URI[libvirt.sha256sum] = "a531e22c8b985ecb2d1223b913fd6ec0f1800e3ebe02351924 inherit autotools gettext update-rc.d pkgconfig ptest systemd CACHED_CONFIGUREVARS += "\ -ac_cv_path_XMLLINT=/usr/bin/xmllint \ ac_cv_path_XMLCATLOG=/usr/bin/xmlcatalog \ ac_cv_path_AUGPARSE=/usr/bin/augparse \ ac_cv_path_DNSMASQ=/usr/bin/dnsmasq \