libxml2: do not detect zlib/lzma when not available
PATCH 1/1 libxml2: do not detect zlib/lzma when not available
The host-libxml2 package does not depend on zlib or lzma, but may detect versions available on the host. This can cause problems in the following situation:
1 host-libxml2 is built, finds an available lzma library in the
system, enables lzma support by using it.
2 host-xz is built, which installs a different version of the lzma
library into $(HOST_DIR)
3 host-libxslt is built, tries to link against libxml2, which fails
because now the visible lzma library is the one from $(HOST_DIR)/usr/lib and no longer the one libxml2 was built agains.
To fix this, this patch passes --without-zlib and --without-lzma to the host package.
In addition, since the target variant of libxml2 does not have provisions to depend on the target lzma, we also pass --without-lzma for the target variant. The case of zlib for the target was already properly taken into account.
Fixes:
http://autobuild.buildroot.org/results/6dc/6dcef647eb0f0db7de3f34194eb15ceebc645b39/
--- package/libxml2/libxml2.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
package/libxml2/libxml2.mk +5 -3
@@ -16,15 +16,17 @@ ifneq ($(BR2_LARGEFILE),y) LIBXML2_CONF_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE" endif -LIBXML2_CONF_OPT = --with-gnu-ld --without-python --without-debug +LIBXML2_CONF_OPT = --with-gnu-ld --without-python --without-debug --without-lzma HOST_LIBXML2_DEPENDENCIES = host-pkgconf +HOST_LIBXML2_CONF_OPT = --without-zlib --without-lzma + # mesa3d uses functions that are only available with debug ifeq ($(BR2_PACKAGE_MESA3D),y) -HOST_LIBXML2_CONF_OPT = --with-debug +HOST_LIBXML2_CONF_OPT += --with-debug else -HOST_LIBXML2_CONF_OPT = --without-debug +HOST_LIBXML2_CONF_OPT += --without-debug endif ifeq ($(BR2_PACKAGE_HOST_LIBXML2_PYTHON),y)
Signature · 1 line
1.8.3.2
PATCH 1/1 libxml2: do not detect zlib/lzma when not available
Quoted 24 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
The host-libxml2 package does not depend on zlib or lzma, but may detect versions available on the host. This can cause problems in the following situation:
1 host-libxml2 is built, finds an available lzma library in the
system, enables lzma support by using it.2 host-xz is built, which installs a different version of the lzma
library into $(HOST_DIR)3 host-libxslt is built, tries to link against libxml2, which fails
because now the visible lzma library is the one from $(HOST_DIR)/usr/lib and no longer the one libxml2 was built agains.To fix this, this patch passes --without-zlib and --without-lzma to the host package.
In addition, since the target variant of libxml2 does not have provisions to depend on the target lzma, we also pass --without-lzma for the target variant. The case of zlib for the target was already properly taken into account.
Quoted 5 lines
Fixes:
http://autobuild.buildroot.org/results/6dc/6dcef647eb0f0db7de3f34194eb15ceebc645b39/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard