Since version 2.9.2, libxml2 provides its own cmake module. Install it
to avoid packages built with cmake and requiring libxml2 to fall back to
cmake's FindLibXml2 module, which seems to detect host libxml2 instead
of the one in staging_dir.
Fixes#4917.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git
(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
Host compilation overwrites "$(STAGING_DIR)/host/bin/xml2-config
with an unpatched variant. So apply the same sed expression before
installing the file during host install.
Thanks to @zyxmon for spotting this.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Beside some improvements, this also fixes several CVEs, for full
list see upstream changelog at:
https://mail.gnome.org/archives/xml/2015-November/msg00012.html
The patch needed for musl was accepted upstream, so we can remove it.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
The previous fix (#557) forced -lz into LDFLAGS instead of fixing the
real issue where configure was failing to detect zlib in the first
place. This was happening because it was looking in /lib, resulting in
conflicts with the host libraries.
Signed-off-by: James Le Cuirot <james.le-cuirot@yakara.com>
Compilation of libxml2 on some distributions is problematic (at least
archlinux) for OpenWrt. This commit fixes the issue. Issue is caused
because configuration for some reason does not find gzopen from zlib.
This patch issues linker to include zlib anyway, if host system doesn't
have this issue, it is not a problem as linker should not link libs
twice anyway.
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
[ Slightly modified commit message ]
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Several packages may depend on host compiled packages during
the build time (such as the new LTS versions of telephony packages).
This commit adds an option to use the libxml2 to be built as
a host package. Usage would be following:
PKG_BUILD_DEPENDS:=libxml2/host
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>