public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libsemigroups/files/, sci-libs/libsemigroups/
Date: Mon, 07 Apr 2025 14:42:34 +0000 (UTC)	[thread overview]
Message-ID: <1744036294.ef823d5aa9b4afa2de955304a4e3da48b126b2a9.mjo@gentoo> (raw)

commit:     ef823d5aa9b4afa2de955304a4e3da48b126b2a9
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  7 14:30:52 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Apr  7 14:31:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef823d5a

sci-libs/libsemigroups: fix the test suite build with gcc-15

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../files/libsemigroups-3.0.2-gcc15-testfix.patch  | 34 ++++++++++++++++++++++
 sci-libs/libsemigroups/libsemigroups-3.0.2.ebuild  |  2 ++
 2 files changed, 36 insertions(+)

diff --git a/sci-libs/libsemigroups/files/libsemigroups-3.0.2-gcc15-testfix.patch b/sci-libs/libsemigroups/files/libsemigroups-3.0.2-gcc15-testfix.patch
new file mode 100644
index 000000000000..9047066c51bc
--- /dev/null
+++ b/sci-libs/libsemigroups/files/libsemigroups-3.0.2-gcc15-testfix.patch
@@ -0,0 +1,34 @@
+From 2575288a19cc9f75f239b777b327e0807debb62d Mon Sep 17 00:00:00 2001
+From: "James D. Mitchell" <jdm3@st-andrews.ac.uk>
+Date: Mon, 7 Apr 2025 14:30:27 +0200
+Subject: [PATCH] Try to resolve #557
+
+---
+ include/libsemigroups/detail/todd-coxeter-impl.hpp | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/include/libsemigroups/detail/todd-coxeter-impl.hpp b/include/libsemigroups/detail/todd-coxeter-impl.hpp
+index a8e66af50..253b0ba19 100644
+--- a/include/libsemigroups/detail/todd-coxeter-impl.hpp
++++ b/include/libsemigroups/detail/todd-coxeter-impl.hpp
+@@ -505,13 +505,16 @@ namespace libsemigroups {
+       ////////////////////////////////////////////////////////////////////////
+ 
+ #ifndef LIBSEMIGROUPS_PARSED_BY_DOXYGEN
+-      // This is documented in Runner, so we don't duplicate the doc here.
+-      template <typename T>
+-      void report_every(T val) {
++      // This is documented in Reporter, so we don't duplicate the doc here.
++      template <typename Time>
++      void report_every(Time val) {
+         detail::CongruenceCommon::report_every(val);
+         _word_graph.report_every(val);
+       }
+-      using Reporter::report_every;
++
++      [[nodiscard]] nanoseconds report_every() const noexcept {
++        return Reporter::report_every();
++      }
+ #endif
+ 
+       //! \ingroup todd_coxeter_class_settings_group

diff --git a/sci-libs/libsemigroups/libsemigroups-3.0.2.ebuild b/sci-libs/libsemigroups/libsemigroups-3.0.2.ebuild
index c463836802d5..b5db4bb9cba4 100644
--- a/sci-libs/libsemigroups/libsemigroups-3.0.2.ebuild
+++ b/sci-libs/libsemigroups/libsemigroups-3.0.2.ebuild
@@ -24,6 +24,8 @@ BDEPEND="eigen? ( dev-cpp/eigen )"
 DEPEND="dev-libs/libfmt"
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}-gcc15-testfix.patch" )
+
 src_prepare() {
 	# Remove bundled deps that we should not be using.
 	rm -rf third_party/fmt-* \


             reply	other threads:[~2025-04-07 14:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-07 14:42 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-30 20:11 [gentoo-commits] repo/gentoo:master commit in: sci-libs/libsemigroups/files/, sci-libs/libsemigroups/ Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1744036294.ef823d5aa9b4afa2de955304a4e3da48b126b2a9.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox