This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new e464ab0093 gnu: qcodeeditor: Build with newer cmake.
e464ab0093 is described below

commit e464ab0093749492be940fd1d439131585e0417d
Author: Sughosha <[email protected]>
AuthorDate: Fri Jul 24 11:31:49 2026 +0530

    gnu: qcodeeditor: Build with newer cmake.
    
    * gnu/packages/qt.scm (qcodeeditor)[source]<patches>: Add
    "qcodeeditor-fix-build-with-c++17.patch".
    [arguments]<#:cmake>: Remove (use the default cmake).
    * gnu/packages/patches/qcodeeditor-fix-build-with-c++17.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Register it.
    
    Signed-off-by: Andreas Enge <[email protected]>
---
 .../patches/qcodeeditor-fix-build-with-c++17.patch | 27 ++++++++++++++++++++++
 gnu/packages/qt.scm                                |  5 ++--
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/patches/qcodeeditor-fix-build-with-c++17.patch 
b/gnu/packages/patches/qcodeeditor-fix-build-with-c++17.patch
new file mode 100644
index 0000000000..f9bedf8663
--- /dev/null
+++ b/gnu/packages/patches/qcodeeditor-fix-build-with-c++17.patch
@@ -0,0 +1,27 @@
+This patch is not upstreamed. It followed the suggestion in
+https://github.com/Megaxela/QCodeEditor/pull/50#issuecomment-3188359371.
+
+From 4de40b23ffc1af37c72ac3b3263e1457b9fe1efb Mon Sep 17 00:00:00 2001
+From: Sughosha <[email protected]>
+Date: Fri, 24 Jul 2026 11:05:39 +0530
+Subject: [PATCH] Fix build with C++17.
+
+---
+ CMakeLists.txt | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 40d5617..64d35b9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -92,7 +92,6 @@ target_include_directories(QCodeEditor PUBLIC
+ if(CMAKE_COMPILER_IS_GNUCXX)
+     target_compile_options(QCodeEditor
+               PRIVATE
+-              -ansi
+               -pedantic
+               -Wall
+               -Wextra
+-- 
+2.54.0
+
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 976bf6f5b9..fd8f64d022 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -5464,11 +5464,12 @@ a binding language:
                  (base32
                   "1bpvfwbgp275w79dzrd7d9k3md1ch7n88rh59mxdfj8s911n42j8"))
                 (patches
-                 (search-patches "qcodeeditor-qt6.patch"))))
+                 (search-patches
+                  "qcodeeditor-qt6.patch"
+                  "qcodeeditor-fix-build-with-c++17.patch"))))
       (build-system qt-build-system)
       (arguments
        (list #:qtbase qtbase
-             #:cmake cmake-3.25
              #:tests? #f ;no tests
              #:configure-flags
              #~(list "-DBUILD_EXAMPLE=ON"

Reply via email to