From 852c117c60f7ec8b36bcd02e3f79901f7143dde0 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 27 May 2020 11:01:03 +0300 Subject: [PATCH 1/2] libs: libxslt: allow profiler to be enabled The lxml package depends on the xsltGetProfileInformation() symbol to be available. Without it, the library is unusable at newer versions. Signed-off-by: Alexandru Ardelean --- libs/libxslt/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/libxslt/Makefile b/libs/libxslt/Makefile index 6361bcb47..699fba5d8 100644 --- a/libs/libxslt/Makefile +++ b/libs/libxslt/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libxslt PKG_VERSION:=1.1.34 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ @@ -73,7 +73,6 @@ CONFIGURE_ARGS += \ --without-debug \ --without-mem-debug \ --without-debugger \ - --without-profiler \ --without-plugins HOST_CONFIGURE_ARGS += \ From 43403ccb4682a314b9be37aed1bbcf43b70f9afe Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 17 Apr 2020 11:40:30 +0300 Subject: [PATCH 2/2] python-lxml: bump to version 4.5.1 This took a while to get running. It turns out, the fix is mostly in libxslt. lxml uses the xsltGetProfileInformation() function, which is disabled from libxslt via --without-profiler. This causes a runtime error, since it cannot find the symbol. So, libxslt is also updated to re-enable the profiler. Signed-off-by: Alexandru Ardelean --- lang/python/python-lxml/Makefile | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/lang/python/python-lxml/Makefile b/lang/python/python-lxml/Makefile index 3b9fe00d8..0c38979a3 100644 --- a/lang/python/python-lxml/Makefile +++ b/lang/python/python-lxml/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-lxml -PKG_VERSION:=4.4.2 -PKG_RELEASE:=3 +PKG_VERSION:=4.5.1 +PKG_RELEASE:=1 PYPI_NAME:=lxml -PKG_HASH:=eff69ddbf3ad86375c344339371168640951c302450c5d3e9936e98d6459db06 +PKG_HASH:=27ee0faf8077c7c1a589573b1450743011117f1aa1a91d5ae776bbc5ca6070f2 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSES.txt @@ -41,17 +41,6 @@ define Package/python3-lxml/description XPath, RelaxNG, XML Schema, XSLT, C14N and much more. endef -TARGET_LDFLAGS += -lxml2 -lxslt -lexslt - -PYTHON3_PKG_SETUP_ARGS += \ - --static - -PYTHON3_PKG_SETUP_VARS += \ - INCLUDE="$(STAGING_DIR)/usr/include/ $(STAGING_DIR)/usr/include/libxml2" \ - LIBRARY="$(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib" \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" - $(eval $(call Py3Package,python3-lxml)) $(eval $(call BuildPackage,python3-lxml)) $(eval $(call BuildPackage,python3-lxml-src))