libxslt: fix build breakage after libxml2 CVE fix updates
authorPetr Štetiar <[email protected]>
Wed, 2 Apr 2025 13:48:58 +0000 (13:48 +0000)
committerJiri Slachta <[email protected]>
Fri, 4 Apr 2025 08:22:03 +0000 (10:22 +0200)
commit8a8fe344323249eaa265ce453459c503f6390c35
tree6f5a220bc28a1343ad5185ec1fd594a1e9185d62
parentf89b8a3eac7ed586359c31d80774ad3815661807
libxslt: fix build breakage after libxml2 CVE fix updates

libxml2 was updated in OpenWrt Git tree with commit dec59db8fb1f
("libxml2: update to 2.13.6"), which fixed several CVEs.

Unfortunately this version bump included removal of some features, which
leads to build issues of libxslt:

  libxslt-1.1.37/xsltproc/xsltproc.c:733:39: error: assignment of read-only variable 'xmlParserMaxDepth'
   733 |                     xmlParserMaxDepth = value;

So lets fix it by backporting an upstream "fix", which removes that
deprecated functionality.

Fixes: dec59db8fb1f ("libxml2: update to 2.13.6")
References: https://github.com/openwrt/openwrt/pull/18280
Signed-off-by: Petr Štetiar <[email protected]>
libs/libxslt/Makefile
libs/libxslt/patches/0001-xsltproc-remove-maxparserdepth-option.patch [new file with mode: 0644]