Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 2024 12:42:41 GMT
From:      Stefan =?utf-8?Q?E=C3=9Fer?= <se@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 31ec0266e319 - main - math/sound-of-sorting: fix build on -CURRENT
Message-ID:  <202401051242.405Cgfd8067718@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401051242.405Cgfd8067718>