GNU bug report logs -
#78419
[PATCH] daemon: Add const qualifier to comparison call operator.
Previous Next
Reported by: Dariqq <dariqq <at> posteo.net>
Date: Wed, 14 May 2025 07:42:02 UTC
Severity: normal
Tags: patch
Done: Dariqq <dariqq <at> posteo.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 78419 in the body.
You can then email your comments to 78419 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#78419
; Package
guix-patches
.
(Wed, 14 May 2025 07:42:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dariqq <dariqq <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 14 May 2025 07:42:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* nix/libstore/build.cc (CompareGoalPtrs::operator()): Add const qualifier.
Change-Id: Ieccea071db53715ef808fe59c69429fe228b5f77
---
Hello,
I had to add this patch to build guix on Fedora 42 and got a template error without it.
It corresponds to this commit in nix from 2017:
https://github.com/NixOS/nix/commit/00e0c416ffccf6edb63fe7f4b01422915ff12f86
nix/libstore/build.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index a1f39d9a8bf..f80f69f2bb6 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -94,7 +94,7 @@ typedef std::shared_ptr<Goal> GoalPtr;
typedef std::weak_ptr<Goal> WeakGoalPtr;
struct CompareGoalPtrs {
- bool operator() (const GoalPtr & a, const GoalPtr & b);
+ bool operator() (const GoalPtr & a, const GoalPtr & b) const;
};
/* Set of goals. */
@@ -192,7 +192,7 @@ protected:
};
-bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) {
+bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) const{
string s1 = a->key();
string s2 = b->key();
return s1 < s2;
base-commit: 5f5d84beccc180f1b51474c0e47eb6e0d0c9175f
--
2.49.0
bug closed, send any further explanations to
78419 <at> debbugs.gnu.org and Dariqq <dariqq <at> posteo.net>
Request was from
Dariqq <dariqq <at> posteo.net>
to
control <at> debbugs.gnu.org
.
(Sun, 01 Jun 2025 14:48:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78419
; Package
guix-patches
.
(Sun, 01 Jun 2025 14:56:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 78419-done <at> debbugs.gnu.org (full text, mbox):
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 30 Jun 2025 11:24:16 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.