aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxml2/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-28 15:56:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-28 15:56:27 +0000
commit924600203af8728926fcd03d44e983d247cd438d (patch)
tree22420033cc37b712d2c29cdfa6f2d81c62eacdad /main/libxml2/APKBUILD
parente5fda1cfc016cb1b5e8b3bfef053e1e332f68b52 (diff)
downloadaports-924600203af8728926fcd03d44e983d247cd438d.tar.bz2
aports-924600203af8728926fcd03d44e983d247cd438d.tar.xz
main/libxml2: security fix (CVE-2012-0841)
fixes #1026
Diffstat (limited to 'main/libxml2/APKBUILD')
-rw-r--r--main/libxml2/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/libxml2/APKBUILD b/main/libxml2/APKBUILD
index e7b2cc262a..b3160ee179 100644
--- a/main/libxml2/APKBUILD
+++ b/main/libxml2/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libxml2
pkgver=2.7.8
-pkgrel=7
+pkgrel=8
pkgdesc="XML parsing library, version 2"
url="http://www.xmlsoft.org/"
arch="all"
@@ -13,15 +13,18 @@ makedepends="zlib-dev python-dev"
subpackages="$pkgname-doc $pkgname-dev py-$pkgname:py $pkgname-utils"
source="ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
largefile64.patch
- libxml2-2.7.8-CVE-2011-1944.patch"
+ libxml2-2.7.8-CVE-2011-1944.patch
+ cve-2012-0841.patch"
options="!strip"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
- for _i in "$srcdir"/*.patch; do
- patch -p1 -i "$_i"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
done
}
@@ -60,4 +63,5 @@ utils() {
md5sums="8127a65e8c3b08856093099b52599c86 libxml2-2.7.8.tar.gz
5ad4915665608ebfa5b89f7908467a72 largefile64.patch
-49cba5245dfa6f2ec710324df947fff9 libxml2-2.7.8-CVE-2011-1944.patch"
+49cba5245dfa6f2ec710324df947fff9 libxml2-2.7.8-CVE-2011-1944.patch
+045c7f25e46de3127a6061e273de3f7b cve-2012-0841.patch"