summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2023-10-24 17:00:45 +0200
committerBart Ribbers <bribbers@disroot.org>2023-10-24 15:04:52 +0000
commit26367a34abb18184bf9ad5651f754b6413544f86 (patch)
tree77d70313dc4b65e903b4cee2ff4715252097d094
parent471b07ffbd8e654dac16c38e8431ae4b645c125d (diff)
downloadaports-26367a34abb18184bf9ad5651f754b6413544f86.zip
community/spdlog: fix volatile patch
-rw-r--r--community/spdlog/APKBUILD5
-rw-r--r--community/spdlog/spdlog-1.12.0-tests.patch24
2 files changed, 27 insertions, 2 deletions
diff --git a/community/spdlog/APKBUILD b/community/spdlog/APKBUILD
index 50804f33ef1..5af82cc26dc 100644
--- a/community/spdlog/APKBUILD
+++ b/community/spdlog/APKBUILD
@@ -11,7 +11,8 @@ makedepends="cmake fmt-dev samurai"
checkdepends="catch2-3"
subpackages="$pkgname-dev"
source="https://github.com/gabime/spdlog/archive/v$pkgver/spdlog-v$pkgver.tar.gz
- $pkgname-$pkgver-tests.patch::https://github.com/gabime/spdlog/commit/6a508d3d7e9af6e8b60eb00f77c2721ddf0e7ea1.patch"
+ spdlog-1.12.0-tests.patch
+ "
build() {
cmake -B build -G Ninja \
@@ -39,5 +40,5 @@ package() {
sha512sums="
db9a4f13b6c39ffde759db99bcdfe5e2dbe4231e73b29eb906a3fa78d6b8ec66920b8bd4371df17ae21b7b562472a236bc4435678f3af92b6496be090074181d spdlog-v1.12.0.tar.gz
-64ab9ede790b72da11437bec9f1d9da7d8ffd8ba562f5c71ceff3de7ae2a135db042971cd61f23c30a8b7373b996742fe6aae75a1d99915d9915174139b231b2 spdlog-1.12.0-tests.patch
+13c5acf1a69190e98b1e67d0684f5ba35fc794aba8dc1101ed73df3285ebb5c7d59414254bd5b47c950679479c7152799a8382bfab7659351a57ac24622d93a5 spdlog-1.12.0-tests.patch
"
diff --git a/community/spdlog/spdlog-1.12.0-tests.patch b/community/spdlog/spdlog-1.12.0-tests.patch
new file mode 100644
index 00000000000..aa97b3277f4
--- /dev/null
+++ b/community/spdlog/spdlog-1.12.0-tests.patch
@@ -0,0 +1,24 @@
+Patch-Source: https://github.com/gabime/spdlog/commit/6a508d3d7e9af6e8b60eb00f77c2721ddf0e7ea1
+From 6a508d3d7e9af6e8b60eb00f77c2721ddf0e7ea1 Mon Sep 17 00:00:00 2001
+From: Vitaly Zaitsev <vitaly@easycoding.org>
+Date: Sun, 23 Jul 2023 10:11:37 +0200
+Subject: [PATCH] Added missing square bracket to fix the level_to_string_view
+ test.
+
+---
+ tests/test_misc.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_misc.cpp b/tests/test_misc.cpp
+index 9f3cb1744d..6199641ff2 100644
+--- a/tests/test_misc.cpp
++++ b/tests/test_misc.cpp
+@@ -43,7 +43,7 @@ TEST_CASE("log_levels", "[log_levels]")
+ REQUIRE(log_info("Hello", spdlog::level::trace) == "Hello");
+ }
+
+-TEST_CASE("level_to_string_view", "[convert_to_string_view")
++TEST_CASE("level_to_string_view", "[convert_to_string_view]")
+ {
+ REQUIRE(spdlog::level::to_string_view(spdlog::level::trace) == "trace");
+ REQUIRE(spdlog::level::to_string_view(spdlog::level::debug) == "debug");