[arch-commits] Commit in libxml2/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu May 13 16:06:44 UTC 2021


    Date: Thursday, May 13, 2021 @ 16:06:43
  Author: anthraxx
Revision: 415279

upgpkg: libxml2 2.9.11-1

Modified:
  libxml2/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++------------------------------
 1 file changed, 16 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-13 16:06:37 UTC (rev 415278)
+++ PKGBUILD	2021-05-13 16:06:43 UTC (rev 415279)
@@ -4,8 +4,8 @@
 # Contributor: John Proctor <jproctor at prium.net>
 
 pkgname=libxml2
-pkgver=2.9.10
-pkgrel=9
+pkgver=2.9.11
+pkgrel=1
 pkgdesc='XML parsing library, version 2'
 url='http://www.xmlsoft.org/'
 arch=(x86_64)
@@ -12,31 +12,17 @@
 license=(MIT)
 depends=(zlib readline ncurses xz icu)
 makedepends=(python2 python git)
-_commit=41a34e1f4ffae2ce401600dbb5fe43f8fe402641  # tags/v2.9.10^0
+_commit=e1bcffea180d6cc0651757bb64284a763e0e2239  # tags/v2.9.11^0
 source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit"
         libxml2-2.9.8-python3-unicode-errors.patch
-        fix-relaxed-approach-to-nested-documents.patch
-        libxml2-2.9.10-CVE-2019-20388.patch
-        libxml2-2.9.10-CVE-2020-7595.patch
-        libxml2-2.9.10-parenthesize-type-checks.patch
-        libxml2-2.9.10-CVE-2020-24977.patch
-        libxml2-2.9.10-fix-integer-overflow.patch
-        libxml2-2.9.10-icu68.patch
         https://www.w3.org/XML/Test/xmlts20130923.tar.gz)
 sha256sums=('SKIP'
             '37eb81a8ec6929eed1514e891bff2dd05b450bcf0c712153880c485b7366c17c'
-            '50f04807b86a179d051fb86755e82f55ba7aac9d0c005eefea93d2599a911d01'
-            'cfe1b3e0f026df6f979dbd77c1dcd1268e60acf3d7a8ff3f480b4e67bfcc19d6'
-            'c6105ff40d7b1b140fcd821b5d64ab8c7b596708071c26964727e7352b07ac7e'
-            'b63c161e4c8a6f0a65ba091c3d3ed09d3110d21f997ee61077c782b311fd4b33'
-            '62eafffc2b4949489c261c63883d27c2e83d688f1d4c899000b283e4c2a682be'
-            'fd227780ad5699bebca7ef412d2d50fb1d21a54f6e3fdcad0bda5bdc8f8b2525'
-            'f02a435761f26ff664041d49f9d05924dc627bf103c7f542feee891f69aa84a2'
             '9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f')
 
 pkgver() {
   cd $pkgname
-  git describe --always --tags | sed 's/-rc/rc/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+  git describe --tags | sed 's/-rc/rc/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }
 
 prepare() {
@@ -43,18 +29,18 @@
   mkdir build-py{2,3}
   cd $pkgname
 
-  # From https://src.fedoraproject.org/rpms/libxml2/tree/master
-  patch -Np1 -i ../libxml2-2.9.8-python3-unicode-errors.patch
-  patch -Np1 -i ../fix-relaxed-approach-to-nested-documents.patch
-  patch -Np1 -i ../libxml2-2.9.10-CVE-2019-20388.patch
-  patch -Np1 -i ../libxml2-2.9.10-CVE-2020-7595.patch
-  patch -Np1 -i ../libxml2-2.9.10-parenthesize-type-checks.patch
-  patch -Np1 -i ../libxml2-2.9.10-CVE-2020-24977.patch
-  patch -Np1 -i ../libxml2-2.9.10-fix-integer-overflow.patch
+  # Take patches from https://src.fedoraproject.org/rpms/libxml2/tree/master
+  local src
+  for src in "${source[@]}"; do
+    src="${src%%::*}"
+    src="${src##*/}"
+    [[ $src = *.patch ]] || continue
+    echo "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
 
-  patch -Np1 -i ../libxml2-2.9.10-icu68.patch
-
-  NOCONFIGURE=1 ./autogen.sh
+  sed -e '/cd fuzz; /d' -e 's/fuzz //g' -i Makefile.am
+  autoreconf -fiv
 }
 
 _build() (
@@ -76,7 +62,7 @@
 }
 
 check() {
-  cd build-py2
+  cd build-py3
   ln -s ../xmlconf
   make check
 }



More information about the arch-commits mailing list