git: 31ec0266e319 - main - math/sound-of-sorting: fix build on -CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Jan 2024 12:42:41 UTC
The branch main has been updated by se:
URL: https://cgit.FreeBSD.org/ports/commit/?id=31ec0266e31910c16b0f69e16a2a693aae20abdf
commit 31ec0266e31910c16b0f69e16a2a693aae20abdf
Author: Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2024-01-05 12:42:00 +0000
Commit: Stefan Eßer <se@FreeBSD.org>
CommitDate: 2024-01-05 12:42:00 +0000
math/sound-of-sorting: fix build on -CURRENT
---
math/sound-of-sorting/Makefile | 2 +-
math/sound-of-sorting/files/patch-src_SortAlgo.h | 31 ++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/math/sound-of-sorting/Makefile b/math/sound-of-sorting/Makefile
index 9d400e75d572..782354a8691d 100644
--- a/math/sound-of-sorting/Makefile
+++ b/math/sound-of-sorting/Makefile
@@ -1,7 +1,7 @@
PORTNAME= sound-of-sorting
PORTVERSION= 0.6.5
DISTVERSIONPREFIX= ${PORTNAME}-
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= math
MAINTAINER= se@FreeBSD.org
diff --git a/math/sound-of-sorting/files/patch-src_SortAlgo.h b/math/sound-of-sorting/files/patch-src_SortAlgo.h
new file mode 100644
index 000000000000..8bdbf006f020
--- /dev/null
+++ b/math/sound-of-sorting/files/patch-src_SortAlgo.h
@@ -0,0 +1,31 @@
+--- src/SortAlgo.h.orig 2017-12-23 08:39:32 UTC
++++ src/SortAlgo.h
+@@ -164,22 +164,22 @@ class MyIterator : public std::iterator<std::random_ac
+ reference operator[](const difference_type& n) const
+ { return m_array->get_mutable(m_pos + n); }
+
+- bool operator==(const MyIterator& r)
++ bool operator==(const MyIterator& r) const
+ { return (m_array == r.m_array) && (m_pos == r.m_pos); }
+
+- bool operator!=(const MyIterator& r)
++ bool operator!=(const MyIterator& r) const
+ { return (m_array != r.m_array) || (m_pos != r.m_pos); }
+
+- bool operator<(const MyIterator& r)
++ bool operator<(const MyIterator& r) const
+ { return (m_array == r.m_array ? (m_pos < r.m_pos) : (m_array < r.m_array)); }
+
+- bool operator>(const MyIterator& r)
++ bool operator>(const MyIterator& r) const
+ { return (m_array == r.m_array ? (m_pos > r.m_pos) : (m_array > r.m_array)); }
+
+- bool operator<=(const MyIterator& r)
++ bool operator<=(const MyIterator& r) const
+ { return (m_array == r.m_array ? (m_pos <= r.m_pos) : (m_array <= r.m_array)); }
+
+- bool operator>=(const MyIterator& r)
++ bool operator>=(const MyIterator& r) const
+ { return (m_array == r.m_array ? (m_pos >= r.m_pos) : (m_array >= r.m_array)); }
+
+ difference_type operator+(const MyIterator& r2) const