guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/24: gnu: enblend-enfuse: Fix build.


From: guix-commits
Subject: 03/24: gnu: enblend-enfuse: Fix build.
Date: Sat, 7 May 2022 16:57:43 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 51b716f7f2cf519273371c294ab03d310a246369
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sat Dec 18 02:07:10 2021 +0100

    gnu: enblend-enfuse: Fix build.
    
    * gnu/packages/photo.scm (enblend-enfuse)[arguments]: Rewrite as a
    keyword/gexp list.  Add a new 'add-missing-include phase to build with a
    recent GCC.
---
 gnu/packages/photo.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index da67d2352e..a7286fcf9a 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -32,6 +32,7 @@
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
+  #:use-module (guix gexp)
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
@@ -404,7 +405,16 @@ overlapping images, as well as some command line tools.")
            vigra
            zlib))
     (arguments
-     `(#:configure-flags `("--enable-openmp")))
+     (list #:configure-flags
+           #~(list "--enable-openmp")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'add-missing-include
+                 (lambda _
+                   (substitute* "src/minimizer.h"
+                     ;; Fix error: ‘numeric_limits’ is not a member of ‘std’.
+                     (("#include <vector>" line)
+                      (string-append line "\n#include <limits>"))))))))
     (home-page "http://enblend.sourceforge.net/";)
     (synopsis "Tools for combining and blending images")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]