aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-10-24 02:53:50 +0300
committerAndy Postnikov <apostnikov@gmail.com>2021-10-23 23:57:49 +0000
commitb5cc044a801a9ef08b5cc7de7806a5b2b9de39ae (patch)
treeb0fa060646aeaed5e98c4c521aa5da8445f0c77a
parente452799c6718643d7a2cdf24c13974a9877c981d (diff)
downloadaports-b5cc044a801a9ef08b5cc7de7806a5b2b9de39ae.tar.gz
aports-b5cc044a801a9ef08b5cc7de7806a5b2b9de39ae.tar.bz2
aports-b5cc044a801a9ef08b5cc7de7806a5b2b9de39ae.tar.xz
community/doctest: fix warning
-rw-r--r--community/doctest/APKBUILD10
-rw-r--r--community/doctest/fix-warning.patch12
2 files changed, 19 insertions, 3 deletions
diff --git a/community/doctest/APKBUILD b/community/doctest/APKBUILD
index e4dcb65e03..9b3cb89469 100644
--- a/community/doctest/APKBUILD
+++ b/community/doctest/APKBUILD
@@ -2,14 +2,15 @@
# Maintainer: Nick Black <dankamongmen@gmail.com>
pkgname=doctest
pkgver=2.4.6
-pkgrel=0
+pkgrel=1
pkgdesc="Fast header-only C++ unit testing"
url="https://github.com/onqtam/doctest"
arch="noarch"
license="MIT"
subpackages="$pkgname-dev"
makedepends="cmake"
-source="$pkgname-$pkgver.tar.gz::https://github.com/onqtam/doctest/archive/$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/onqtam/doctest/archive/$pkgver.tar.gz
+ fix-warning.patch"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
@@ -32,4 +33,7 @@ package() {
DESTDIR="$pkgdir" cmake --build "$pkgname-$pkgver" --target install
}
-sha512sums="a5cccf085af946003140af688f071a6407d42fc685324a537e3b704ef9de0f2228bd06eabfd1df8da70dec001420dd0b2813e5e4320b5c1da450cb0aadd63788 doctest-2.4.6.tar.gz"
+sha512sums="
+a5cccf085af946003140af688f071a6407d42fc685324a537e3b704ef9de0f2228bd06eabfd1df8da70dec001420dd0b2813e5e4320b5c1da450cb0aadd63788 doctest-2.4.6.tar.gz
+653813bdd2766a50f89a3a1cdc9f703c749220f9091f269e3197a9a47abce7fa8adb7de8acaa1add49c113a5461fc9bb327e6b0b537eac528f52507b91b24d7e fix-warning.patch
+"
diff --git a/community/doctest/fix-warning.patch b/community/doctest/fix-warning.patch
new file mode 100644
index 0000000000..a8c4442f4b
--- /dev/null
+++ b/community/doctest/fix-warning.patch
@@ -0,0 +1,12 @@
+--- a/examples/all_features/stringification.cpp 2021-10-24 02:51:18.387049593 +0300
++++ b/examples/all_features/stringification.cpp 2021-10-24 02:51:35.319213554 +0300
+@@ -103,9 +103,6 @@
+ MyTypeInherited<int> bla1;
+ bla1.one = 5;
+ bla1.two = 4u;
+- MyTypeInherited<int> bla2;
+- bla2.one = 5;
+- bla2.two = 6u;
+
+ Bar::Foo f1;
+ Bar::Foo f2;