diff options
Diffstat (limited to 'main/libxml2/APKBUILD')
-rw-r--r-- | main/libxml2/APKBUILD | 69 |
1 files changed, 32 insertions, 37 deletions
diff --git a/main/libxml2/APKBUILD b/main/libxml2/APKBUILD index c7f1da8cb1a..6ff9ac0e451 100644 --- a/main/libxml2/APKBUILD +++ b/main/libxml2/APKBUILD @@ -1,31 +1,42 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> pkgname=libxml2 -pkgver=2.9.12 +pkgver=2.12.6 pkgrel=2 pkgdesc="XML parsing library, version 2" -url="http://www.xmlsoft.org/" +url="https://gitlab.gnome.org/GNOME/libxml2" arch="all" license="MIT" -depends_dev="zlib-dev xz-dev" +depends_dev="zlib-dev xz-dev $pkgname-utils=$pkgver-r$pkgrel" checkdepends="perl tar" makedepends_host="$depends_dev" -subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev $pkgname-utils" +subpackages="$pkgname-dbg $pkgname-doc $pkgname-static $pkgname-dev $pkgname-utils" if [ -z "$BOOTSTRAP" ]; then - makedepends_build="python3-dev" - subpackages="$subpackages py3-$pkgname:_py3" - py_configure="--with-python=/usr/bin/python3" + makedepends_build="$makedepends_build python3-dev" + subpackages="$subpackages py3-$pkgname-pyc py3-$pkgname:_py3" + _py_configure="--with-python=/usr/bin/python3" +else + _py_configure="--with-python=no" fi -options="!strip" -source="http://xmlsoft.org/sources/libxml2-$pkgver.tar.gz - revert-Make-xmlFreeNodeList-non-recursive.patch - libxml2-2.9.8-python3-unicode-errors.patch - work-around-lxml-api-abuse.patch - whitespace-when-serializing-empty-html-documents.patch - " +source="https://download.gnome.org/sources/libxml2/${pkgver%.*}/libxml2-$pkgver.tar.xz" # secfixes: +# 2.12.5-r0: +# - CVE-2024-25062 +# 2.10.4-r0: +# - CVE-2023-28484 +# - CVE-2023-29469 +# 2.10.3-r0: +# - CVE-2022-40303 +# - CVE-2022-40304 +# 2.10.0-r0: +# - CVE-2022-2309 +# 2.9.14-r0: +# - CVE-2022-29824 +# 2.9.13-r0: +# - CVE-2022-23308 # 2.9.11-r0: +# - CVE-2016-3709 # - CVE-2021-3517 # - CVE-2021-3518 # - CVE-2021-3537 @@ -50,9 +61,6 @@ source="http://xmlsoft.org/sources/libxml2-$pkgver.tar.gz prepare() { default_prepare - # setup.py is generated - rm python/setup.py - # We don't build libxml2 with icu. rm test/icu_parse_test.xml } @@ -65,9 +73,10 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ + --enable-static \ --with-lzma \ --with-zlib \ - $py_configure + $_py_configure make } @@ -78,36 +87,22 @@ check() { package() { make -j1 DESTDIR="$pkgdir" install - - # We don't need static lib for python bindings. - if [ -z "$BOOTSTRAP" ]; then - rm "$pkgdir"/usr/lib/python*/site-packages/*.a - fi -} - -dev() { - default_dev - mv "$pkgdir"/usr/lib/*.sh "$subpkgdir"/usr/lib/ } _py3() { depends="python3" pkgdesc="$pkgname python3 bindings" - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ + + amove usr/lib/python3* } utils() { pkgdesc="XML utilities" replaces="libxml2" - mkdir -p "$subpkgdir"/usr - mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ + + amove usr/bin } sha512sums=" -df1c6486e80f0fcf3c506f3599bcfb94b620c00d0b5d26831bc983daa78d58ec58b5057b1ec7c1a26c694f40199c6234ee2a6dcabf65abfa10c447cb5705abbd libxml2-2.9.12.tar.gz -347178e432379d543683cba21b902e7305202c03e8dbd724ae395963d677096a5cfc4e345e208d498163ca5174683c167610fc2b297090476038bc2bb7c84b4f revert-Make-xmlFreeNodeList-non-recursive.patch -a205c97fa1488fb8907cfa08b5f82e2055c80b86213dc3cc5c4b526fe6aa786bcc4e4eeb226c44635a1d021307b39e3940f706c42fb60e9e3e9b490a84164df7 libxml2-2.9.8-python3-unicode-errors.patch -5e2a80038cb7085fce27dfff2d92f651259124b1a899ce3b5dbb0f6f8e815e30d5256e447cd1dff227f535be0c13ce8cff0234cf0bee7ff75cd2245a8b65130a work-around-lxml-api-abuse.patch -c8dab6cf3556f7ee73da7dd57d07b567c248371bee25679c8f98c2f599c45e0a6fc476d5f3fe4bb40a3b735d9b35fbc4b1da0506d0f16a17c71644ead2204beb whitespace-when-serializing-empty-html-documents.patch +19d6901c0f189813e8bd20ffdfbb29d8545ca30154d1f3cc82624d64e4db3cfbe8eef7e8ccc1e195289f1bf94bb50fefcf11a95badb0ddeb845b4e4ea5a819ac libxml2-2.12.6.tar.xz " |