diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-08-08 06:27:48 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-08-08 06:29:51 +0000 |
commit | 095fae596fc49100874f93b298316eb4f6d24f0f (patch) | |
tree | 7ff4c7105cc63b93b7b352cbc51cd11316f6efcf /main/patch/APKBUILD | |
parent | c2c48f7368e24b9468874c9f0a654af0d78ec393 (diff) | |
download | aports-095fae596fc49100874f93b298316eb4f6d24f0f.tar.bz2 aports-095fae596fc49100874f93b298316eb4f6d24f0f.tar.xz |
main/patch: security fixes
Diffstat (limited to 'main/patch/APKBUILD')
-rw-r--r-- | main/patch/APKBUILD | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/main/patch/APKBUILD b/main/patch/APKBUILD index ef3c04144c..0e02115e46 100644 --- a/main/patch/APKBUILD +++ b/main/patch/APKBUILD @@ -2,26 +2,31 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=patch pkgver=2.7.6 -pkgrel=5 +pkgrel=6 pkgdesc="Utility to apply diffs to files" url="https://www.gnu.org/software/patch/patch.html" arch="all" -license="GPL-3.0+" +license="GPL-3.0-or-later" depends="" -makedepends="" +makedepends="autoconf automake" # testsuite needs coreutils due to bug in busybox `cat -ve` # http://lists.busybox.net/pipermail/busybox/2018-April/086401.html checkdepends="coreutils bash ed" -install="" subpackages="$pkgname-doc" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz CVE-2018-6951.patch CVE-2018-6952.patch + 0001-Allow-input-files-to-be-missing-for-ed-style-patches.patch + 0002-Fix-arbitrary-command-execution-in-ed-style-patches-.patch CVE-2019-13636.patch + CVE-2019-13638.patch " builddir="$srcdir"/$pkgname-$pkgver # secfixes: +# 2.7.6-r6: +# - CVE-2018-1000156 +# - CVE-2019-13638 # 2.7.6-r5: # - CVE-2019-13636 # 2.7.6-r2: @@ -29,8 +34,12 @@ builddir="$srcdir"/$pkgname-$pkgver # 2.7.6-r4: # - CVE-2018-6952 +prepare() { + default_prepare + aclocal && autoheader && autoconf && automake --add-missing +} + build() { - cd "$builddir" gl_cv_func_gettimeofday_clobber=no \ gl_cv_func_tzset_clobber=no \ ./configure \ @@ -39,13 +48,11 @@ build() { --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --localstatedir=/var \ - --disable-nls + --localstatedir=/var make } check() { - cd "$builddir" make SHELL=bash check } @@ -61,4 +68,7 @@ package() { sha512sums="fcca87bdb67a88685a8a25597f9e015f5e60197b9a269fa350ae35a7991ed8da553939b4bbc7f7d3cfd863c67142af403b04165633acbce4339056a905e87fbd patch-2.7.6.tar.xz db51d0b791d38dd4f1b373621ee18620ae339b172f58a79420fdaa4a4b1b1d9df239cf61bbddc4e6a4896b28b8cffc7c99161eb5e2facaec8df86a1bf7755bc0 CVE-2018-6951.patch 5d2eaef629bae92e5b4e5e57d140c24a73e2811306d5f2854858f846646b034d2da315071f478bcf6f8d856a065b9bb073f76322e8e3a42616bc212281ce6945 CVE-2018-6952.patch -029b92bb899d0b1165cfe7f55b5a4c2d7090852f52e5c85a6bb1cf5913c914a5c68c6c34517e84f0a020a56d21814f8c18b934c8ebe059ba4eddece78a3a258c CVE-2019-13636.patch" +33e8a82f5ee6b896fd434e7de1ca9e16e8d317941a021bea8c53afd5bf210774e8727df22f8d8f63f255de10de5a26428047bc710b033423d1e7a459cbbaf83a 0001-Allow-input-files-to-be-missing-for-ed-style-patches.patch +d0d46e28c5fdcd5fe16826cbcf39d5a74fdf2593375d5206aa7bad759f16dbebeca3bf259239f99c13344579044a3de1000d705065cc19e917266bca6e5c0630 0002-Fix-arbitrary-command-execution-in-ed-style-patches-.patch +029b92bb899d0b1165cfe7f55b5a4c2d7090852f52e5c85a6bb1cf5913c914a5c68c6c34517e84f0a020a56d21814f8c18b934c8ebe059ba4eddece78a3a258c CVE-2019-13636.patch +d60f8c2364fca9b73aa73b5914cfd6571d11528d13fa7703ccfa93730cbdf8a6e4c9ca04cb7d02a40d33c38075890790b490052d5217e728b0948991da937980 CVE-2019-13638.patch" |