aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2021-01-18 09:22:42 +0000
committerMilan P. Stanić <mps@arvanta.net>2021-01-18 21:12:05 +0000
commitdd685a4f3afcf809387bc210d3f13395d03b19cd (patch)
tree7224494f8c7da03873831a49c6d7779e168e591b
parent1b93f51c4fce39e726b1e681817840e8025277f2 (diff)
downloadaports-dd685a4f3afcf809387bc210d3f13395d03b19cd.tar.gz
aports-dd685a4f3afcf809387bc210d3f13395d03b19cd.tar.bz2
aports-dd685a4f3afcf809387bc210d3f13395d03b19cd.tar.xz
main/gptfdisk: security upgrade to 1.0.6
secfix: CVE-2021-0308 refactor fix-wrong-include.patch to apply with current version
-rw-r--r--main/gptfdisk/APKBUILD9
-rw-r--r--main/gptfdisk/fix-wrong-include.patch2
2 files changed, 7 insertions, 4 deletions
diff --git a/main/gptfdisk/APKBUILD b/main/gptfdisk/APKBUILD
index 0e93d5b98f..2d4c161c4b 100644
--- a/main/gptfdisk/APKBUILD
+++ b/main/gptfdisk/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gptfdisk
-pkgver=1.0.5
+pkgver=1.0.6
pkgrel=0
pkgdesc="Text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks"
arch="all"
@@ -12,6 +12,9 @@ subpackages="$pkgname-doc sgdisk"
source="https://downloads.sourceforge.net/project/gptfdisk/gptfdisk/$pkgver/gptfdisk-$pkgver.tar.gz
fix-wrong-include.patch
"
+# secfixes:
+# 1.0.6-r0:
+# - CVE-2021-0308
build() {
make CXX="${CXX:-g++}" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
@@ -31,5 +34,5 @@ sgdisk() {
mv "$pkgdir"/usr/bin/sgdisk "$subpkgdir"/usr/bin/
}
-sha512sums="3d3a59e3488dd3d6bda5d103b9ad8b7936752210346b9787ddc936681498fba90577b6ae950c471d09a01bf6405fce32038ff1777c52db0b21e5277737fe3703 gptfdisk-1.0.5.tar.gz
-7bb67d132e53cd66a4ae954b4a78f6841c3cdb60bee7cbbecbe1667b95292513fc1561261861607d79164e592faf2045ae51b08ff74ebb5097ad760280307995 fix-wrong-include.patch"
+sha512sums="a3bf95c813f707d9d41513295c3419916301a0e88b4c6ade70ad7d9422a507d519e092e68a3868d53092428d159bdbb248817c4f40d8ac88b0175d5afbd79dbc gptfdisk-1.0.6.tar.gz
+9b64c0e565137b4d4275bd6e8b050f98a73ff5593093b54d43736e6aabd24abf6e35d88ea27be17c5fee70aada4ad05a70fe5af3523212aad114f05aaf82356f fix-wrong-include.patch"
diff --git a/main/gptfdisk/fix-wrong-include.patch b/main/gptfdisk/fix-wrong-include.patch
index d2d601731f..069ae24f50 100644
--- a/main/gptfdisk/fix-wrong-include.patch
+++ b/main/gptfdisk/fix-wrong-include.patch
@@ -6,7 +6,7 @@ index 1b18cf2..4ebfde1 100644
#include <iostream>
#include <string>
#include <sstream>
--#ifdef __APPLE__
+-#if defined (__APPLE__) || (__FreeBSD__)
#include <ncurses.h>
-#else
-#include <ncursesw/ncurses.h>